← All skills

ast-grep

Turns a plain-English code question into an ast-grep rule, tests it on a sample, then searches the codebase by syntax tree, not text.

Cross-platformiOS / SwiftAndroid / KotlinReact NativeAgent ToolingArchitecture

Install

Installs through Popy — it fetches the skill from the author's repo and prints the credit. Works with any agent.

$ curl -fsSL https://skills.popy.app/i/ast-grep-structural-search | sh

Inspect what it runs first: skills.popy.app/i/ast-grep-structural-search

Prefer to do it by hand?

  1. 1Open the source repo: https://github.com/ast-grep/agent-skill/tree/main/ast-grep/skills/ast-grep
  2. 2Copy its SKILL.md (and any supporting files) into ~/.claude/skills/ast-grep-structural-search/
  3. 3Restart your agent so it picks up the new skill.

Related skills