Ast Grep Agent Skill
ast-grep-agent-skill is a Claude Code plugin for the Ship phase that supplies a skill marketplace for ast-grep structural code search, rules, and refactoring.
Run syntax-aware structural search and refactors via ast-grep skills from a Claude Code marketplace when grep and regex miss real code shape.
Add it to Claude Code
Install the plugin in Claude Code. One command, paste-ready.
/plugin install ast-grep-agent-skill@ast-grep/agent-skillBuilt to be called by your agent
Skillselion is itself an MCP server. Your agent can pull this entry and a paste-ready install config straight from the API - no copy-paste.
Retrieve this entry with skillselion.get_details("plugin:ast-grep/agent-skill") and the paste-ready config with skillselion.get_install_config("plugin:ast-grep/agent-skill").
What it does
ast-grep-agent-skill is a Claude Code plugin that distributes a marketplace of skills centered on ast-grep, the structural search tool that matches code by syntax and rules instead of fragile regular expressions. Solo builders install it when they need to find every instance of a pattern—hooks misuse, deprecated APIs, import shapes—across a growing repo and then drive refactors with confidence. The catalog description emphasizes codebases, pattern-matching, queries, and refactoring guides, which fits shipping discipline: review passes, mechanical migrations, and audit-style searches before release. It is agent-facing tooling: skills teach Claude how to write and run ast-grep rules, not a hosted SaaS dashboard. Compared with plain ripgrep in the terminal, you gain abstract-syntax precision at the cost of learning rule syntax. One plugin in the bundle keeps install simple; you browse skills for structural search workflows rather than installing a loose script collection. Best paired with Claude Code during code review and pre-release cleanup on TypeScript, JavaScript, and other ast-grep-supported languages.
Highlights
- Claude Code skill marketplace bundle with ast-grep structural search
- Pattern-matching and rules beyond text grep on syntax trees
- Refactoring, queries, and large-codebase structural analysis
- Keywords cover ast-grep, structural-search, refactoring, and code-search
- Single-plugin marketplace entry (plugin count: 1)
Why builders use it
Text grep misses structurally similar code and makes large refactors error-prone for a solo builder under ship pressure.
After install, your agent can run ast-grep-backed structural queries and refactors during review instead of manual search-and-replace hunts.
At a glance
- Type - Plugin in Development Tools.
- Adoption - 0 installs, 611 stars, 0 votes.
FAQ
Who is ast-grep-agent-skill for?
It is for Claude Code users who want structural code search and refactor skills powered by ast-grep from a bundled marketplace.
When should I use ast-grep-agent-skill?
Use it in Ship during review when you need syntax-aware pattern finds, rule-based queries, or refactors across a large codebase.
How do I add ast-grep-agent-skill to my agent?
Add the ast-grep/agent-skill Claude Code plugin from the repository listing, then invoke the marketplace ast-grep skills from your Claude Code session.
Comments
Share how you use ast-grep-agent-skill, gotchas, or tips for other indie builders.
No comments yet - be the first to share how you use it.