howto-ast-grep
CommunitySearch and transform code by AST structure.
Authorpbdeuchler
Version1.0.0
Installs0
System Documentation
What problem does it solve?
ast-grep matches code by AST structure, not text, enabling precise searches and safe rewrites across languages.
Core Features & Use Cases
- AST-based pattern matching with metavariables
- Language-specific patterns for JavaScript/TypeScript, Python, Go, and Rust
- JSON output options and YAML rules for complex matching
Quick Start
Run sg with a language flag to search for an AST pattern in your codebase, for example sg run -p 'use$HOOK($$$)' -l typescript src/.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: howto-ast-grep Download link: https://github.com/pbdeuchler/llm-plugins/archive/main.zip#howto-ast-grep Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.