tool-ast-grep-rules

Community

Automate AST-based code rules with YAML.

AuthorHeyvhuang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enables teams to define and reuse AST-based code search and rewrite rules using ast-grep YAML. It helps coders implement automated linting, code modernization, and API migrations with precise pattern matching.

Core Features & Use Cases

  • Pattern-based code search: Define YAML rules that find specific AST patterns across large codebases.
  • Automated refactors & migrations: Apply safe rewrites and migrations across projects to modernize code.
  • Use Case: Quickly migrate API usage from old APIs to new ones by creating rules that match patterns and provide fixes.

Quick Start

Create a rules directory with YAML files under rules/ and run the tool to generate and apply rules using ast-grep. Then run ast-grep scan to locate patterns across your codebase.

Dependency Matrix

Required Modules

None required

Components

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: tool-ast-grep-rules
Download link: https://github.com/Heyvhuang/ship-faster/archive/main.zip#tool-ast-grep-rules

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.