🔍 Ast Grep

This skill translates natural language queries into ast-grep rules to perform structural code searches across large codebases.

QUICK INSTALL
npx playbooks add skill ast-grep/agent-skill --skill ast-grep

About Ast Grep

This skill translates natural language queries into ast-grep rules to perform structural code searches across large codebases.

This compact 17-word instruction set is purpose-built for code review & quality work in AI coding agents. Install with a single command.

Use Cases

  • Catching bugs and security vulnerabilities before merge
  • Enforcing code style and architectural consistency
  • Reviewing PRs for performance and maintainability
  • Generating detailed code review comments

Example Prompts

Get started Help me use the Ast Grep skill effectively.

System Prompt (17 words)

This skill translates natural language queries into ast-grep rules to perform structural code searches across large codebases.

Frequently Asked Questions

What is Ast Grep?

Ast Grep is a free code review & quality skill for AI coding agents. This skill translates natural language queries into ast-grep rules to perform structural code searches across large codebases.. It provides a specialized system prompt that configures your agent with code review & quality expertise.

How do I use Ast Grep with Claude Code?

Run npx playbooks add skill ast-grep/agent-skill --skill ast-grep in your terminal to install Ast Grep into your Claude Code session. It works immediately after installation.

Which AI coding agents work with Ast Grep?

Ast Grep is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.

Is Ast Grep free to use?

Yes, Ast Grep is completely free and open source. The full source is available on GitHub at https://github.com/ast-grep/agent-skill/tree/main/ast-grep/skills/ast-grep. You only need a subscription to the AI agent you use it with.

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.