ast-grep

Installation
SKILL.md

Non-negotiable rules:

  1. Verify ast-grep is installed before relying on it.
  2. Create a minimal example of the desired pattern before searching the repository.
  3. Inspect the AST with --debug-query when node kinds or match shape are uncertain.
  4. Add stopBy: end to relational rules unless there is a specific reason not to.
  5. Test the rule on the example before running it across the codebase.

ast-grep Code Search

Inputs

  • $request: The structural pattern to find, plus any known language, exclusions, or edge cases

Goal

Related skills
Installs
59
Repository
ulpi-io/skills
First Seen
Mar 16, 2026