A marketplace for Claude Code skills including ast-grep structural code search
npx claudepluginhub ast-grep/agent-skillGuide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search.
No description available.
Claude Code marketplace entries for the plugin-safe Antigravity Awesome Skills library and its compatible editorial bundles.
Production-ready workflow orchestration with 79 focused plugins, 184 specialized agents, and 150 skills - optimized for granular installation and minimal token usage
A Claude Code plugin marketplace containing the ast-grep skill for powerful structural code search using Abstract Syntax Tree (AST) patterns. Search your codebase based on code structure rather than just text matching.
This is a Claude Code plugin marketplace that provides the ast-grep plugin. The plugin includes a skill that teaches Claude how to write and use ast-grep rules to perform advanced code searches. Unlike traditional text-based search (grep, ripgrep), ast-grep understands the structure of your code, allowing you to find patterns like:
You need to have ast-grep installed on your system:
# macOS
brew install ast-grep
# npm
npm install -g @ast-grep/cli
# cargo
cargo install ast-grep
Verify installation:
ast-grep --version
npx skills add ast-grep/agent-skill
/plugin marketplace add ast-grep/agent-skill
/plugin install ast-grep
Restart Claude Code to activate the plugin
Verify installation: Use /help to see if ast-grep skill is available
If you're developing or testing locally:
# Clone the repository
git clone https://github.com/ast-grep/claude-skill.git /path/to/local-marketplace
# Add as local marketplace
/plugin marketplace add /path/to/local-marketplace
# Install the plugin
/plugin install ast-grep
You will need to ask Claude to use this skill explicitly in your queries, like "Use ast-grep to find...". Claude Code, as of Nov 2025, cannot automatically detect when to use ast-grep for all appropriate use cases.
Once installed, simply ask Claude to search your code using structural patterns. Claude will automatically use this skill when appropriate.
Find async functions with await:
Find all async functions in this project that use await
Find missing error handling:
Show me async functions that don't have try-catch blocks
Find specific function calls:
Find all places where we call console.log with more than one argument
Find code in specific contexts:
Find all setState calls inside useEffect hooks
When you ask Claude to search for code patterns:
ast-grep supports many programming languages including:
$VAR to match any expression, statement, or identifierWhile Claude will handle most use cases automatically, you can also use ast-grep directly:
# Simple pattern search
ast-grep run --pattern 'console.log($ARG)' --lang javascript .
# Complex rule-based search
ast-grep scan --inline-rules "id: my-rule
language: javascript
rule:
kind: function_declaration
has:
pattern: await \$EXPR
stopBy: end" .
If a search isn't working as expected, ask Claude to:
This is a Claude Code plugin marketplace repository with the following structure:
claude-skill/
├── .claude-plugin/
│ └── marketplace.json # Marketplace manifest
├── ast-grep/ # ast-grep plugin
│ ├── .claude-plugin/
│ │ └── plugin.json # Plugin manifest
│ └── skills/
│ └── ast-grep/
│ ├── SKILL.md # Skill instructions for Claude
│ └── references/
│ └── rule_reference.md # ast-grep rule documentation
├── ast-grep.zip # Archived version
└── README.md # This file