Plugin · Claude Code · Development Tools

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.

by ast-grep · github.com/ast-grep/agent-skill

Run syntax-aware structural search and refactors via ast-grep skills from a Claude Code marketplace when grep and regex miss real code shape.

611
GitHub stars
0
Installs
0
Community votes
One vote per signed-in builder - it helps surface the tools the community actually relies on.
Install

Add it to Claude Code

Install the plugin in Claude Code. One command, paste-ready.

Install the plugin
/plugin install ast-grep-agent-skill@ast-grep/agent-skill
Add to ClaudeUse the Agent APISkillselion is itself an MCP server - your agent can fetch this config directly.
Agent API

Built 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").

About

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.

Discussion

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.

This week for builders

Five minutes, every Monday — the tools, releases and tactics for shipping solo.

unsubscribe anytime.