Skip to content
  1. Home
  2. Agent skills
  3. ast-grep

ast-grep

AST-aware structural code search and rewrite

What it is

Uses the ast-grep tool for structural search and codemod-style rewrites that understand syntax, not just text.

Good for

  • Rename an API across a codebase
  • Find all uses of a pattern
  • Write a codemod

Install or run

hermes skills install official/software-development/ast-grep

Command as given in the project README. Read the repository before you run anything on your machine.

What you need

ast-grep installed

Worth knowingRewrites touch many files; run on a clean git tree.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for coding

See the topic →
  • diagnosing-bugs

    mattpocock/skills

    Debugging discipline that starts by building a tight pass/fail feedback loop

    SkillGitHub stars: 323k
  • Skills For Real Engineers

    mattpocock/skills

    Small composable engineering skills from Matt Pocock's own agent setup

    SkillGitHub stars: 323k
  • Superpowers

    obra/superpowers

    Skill set that makes coding agents spec, plan, test and review before coding

    SkillGitHub stars: 317k
  • Systematic Debugging (Superpowers)

    obra/superpowers

    Forces root-cause investigation before an agent proposes any fix

    SkillGitHub stars: 317k