ast-grep-cli
CommunityAst-based code search, rewrite, and test via CLI.
Authorhafley66
Version1.0.0
Installs0
System Documentation
What problem does it solve?
AST-driven code search, rewrite, and rule testing can be verbose and error-prone when done manually. This skill provides a cohesive CLI to locate patterns, apply safe transformations, and validate rules against codebases.
Core Features & Use Cases
- Run one-off searches and rewrites using AST patterns to automate refactoring.
- Manage projects with sgconfig.yml to organize rule directories and tests.
- Scan codebases and validate rules with snapshot tests to ensure stability.
- Debug pattern parsing and tune queries with advanced options to improve accuracy.
Quick Start
Run a sample search with a pattern to locate matches in your codebase.
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: ast-grep-cli Download link: https://github.com/hafley66/claude-research/archive/main.zip#ast-grep-cli 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 471,000+ vetted skills library on demand.