agent-skillast-grep/agent-skill
Enables AI agents to search and rewrite code by structure rather than plain text, and guides users in authoring high-qua…
No ratings yet
Rate this skill
Stars890
Forks36
Watchers890
Open Issues2
InstallOne-line install
UnconfirmedWhether this repository follows the Agent Skills spec (that is, whether it contains a SKILL.md) has not been verified yet. Until that is settled, clone it and use what you need:
git clone https://github.com/ast-grep/agent-skill.git
OverviewOverview
Key Features
Enables AI agents to search and rewrite code by structure rather than plain text, and guides users in authoring high-quality skills. Key capabilities include: 1. Structure-aware search: matches code patterns based on AST structure, ignoring formatting and naming differences to precisely locate target code; 2. Metavariables and relational queries: captures code nodes with metavariables and supports cross-file, cross-node relational queries to express complex code constraints; 3. Composite logic: combines multiple structural patterns and relational conditions into composite queries to filter code satisfying multiple constraints at once; 4. Test-driven iteration: provides a test-driven approach to skill authoring, writing cases first and iterating fixes to ensure verifiable skill behavior; 5. Specificity and examples: requires concrete skill descriptions with runnable examples to reduce agent misuse; 6. Marketplace onboarding: provides steps to add skills to the Claude Code marketplace for distribution and installation.
RatingUser ratings
Nobody has rated this skill yet. Yours would be the first on the site — your vote becomes the initial average.
RepositoryRepository
| Skill ID | 1802 |
|---|---|
| Data source | GitHub |
| Repository | ast-grep/agent-skill |
| Category | AI & Agent Skills / Code Search & Refactoring Skills |
| Primary language | Other |
| License | Not specified |
| Default branch | main |
| GitHub repository ID | 1097687797 |
| Node ID | R_kgDOQW1i9Q |
| Rank | #828 (position within the source ranking) |
| Site-wide popularity rank | #939 (computed live from Stars, across all 5833 entries) |
GrowthStar / Fork growth
One snapshot per day, tracking how Stars and Forks changed
- Now890
- Previous point · 09-28 883
- vs previous point +7
- 2 data points 13 days
- Now36
- Previous point · 09-28 36
- vs previous point ±0
- 2 data points 13 days
TimelineTimeline
Repository created2025-11-16 16:45:422025-11-16
Data last updated2026-10-26 12:04:4221 days ago
Last commit2026-09-13 02:58:572 months ago
CommitLatest commit
Committed by ddelange. Update Category: Documentation Updates. Commit details: docs: distinguish skill discovery from skill preference, document the AGENTS.md default (#12). This update refines the documentation for easier onboarding.