ast-grep Code Search

ast-grep/agent-skill

Turn a code search request into an ast-grep pattern or rule, test it against an example, and search the project.

Latest update at:

View on GitHub
npx skills add ast-grep/agent-skill
900Stars37ForksRepository last pushed

About this Skill

Build syntax-aware searches from examples using ast-grep patterns and YAML rules, then inspect matches with paths and line numbers. The Skill includes a rule reference and guidance for debugging zero matches.

Why we picked it

Includes guidance for rule syntax, debugging and interpreting results.

What it helps with

  • Find a function call within a particular syntactic context across a codebase.

Before you use it

  • The separately installed ast-grep CLI and source code in a supported language.

Sources & references

Original sources are linked below. Practical starting points are editorial suggestions from SkillHey.