Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search.

version
1.0.0
GitHub stars
898

Install

/plugin install ast-grep@ast-grep-marketplace

Run it inside Claude Code after adding the marketplace with /plugin marketplace add ast-grep/agent-skill.

Sponsors

Details

Marketplace
ast-grep/agent-skill
Source
ast-grep
Category
community
Keywords
ast-grep, code-search, ast, structural-search, pattern-matching, refactoring