SkillClaude CodeCursorClineOpenClawWindsurfVS CodeChatGPT
agent-skill
ast-grep
Features
- ✓Advanced structural code search with AST patterns
- ✓Teaches Claude to write ast-grep rules for precise searches
- ✓Enhances grep with code structure understanding
- ✓Find patterns like async functions without error handling
- ✓Integrate with Claude Code for seamless usage
Installation Guide
Option 1: Install via skills.sh (Recommended)
text
npx skills add ast-grep/agent-skillOption 2: Install via Marketplace
bash
/plugin marketplace add ast-grep/agent-skillbash
/plugin install ast-grep/help to see if ast-grep skill is availableOption 3: Install Locally for Development
If you're developing or testing locally:
bash
# 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-grepUsage Notes
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.