·tool-ast-grep-rules
</>

tool-ast-grep-rules

heyvhuang/ship-faster

Write AST-based code search and rewrite rules using ast-grep YAML. Create linting rules, code modernizations, and API migrations with auto-fix. Use when the user mentions ast-grep, tree-sitter patterns, code search rules, lint rules with YAML, AST matching, or code refactoring patterns.

6Installs·0Trend·@heyvhuang

Installation

$npx skills add https://github.com/heyvhuang/ship-faster --skill tool-ast-grep-rules

SKILL.md

ast-grep uses tree-sitter to parse code into AST, enabling precise pattern matching. Rules are defined in YAML for linting, searching, and rewriting code.

Note: ast-grep scan command requires sgconfig.yml, while ast-grep run -p can be used standalone.

| Single node | $VAR | console.log($MSG) | | Multiple nodes | $$$ARGS | fn($$$ARGS) | | Same content | Use same name | $A == $A | | Non-capturing | $VAR | $FN($FN) |

Write AST-based code search and rewrite rules using ast-grep YAML. Create linting rules, code modernizations, and API migrations with auto-fix. Use when the user mentions ast-grep, tree-sitter patterns, code search rules, lint rules with YAML, AST matching, or code refactoring patterns. Source: heyvhuang/ship-faster.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/heyvhuang/ship-faster --skill tool-ast-grep-rules
Category
</>Dev Tools
Verified
First Seen
2026-02-17
Updated
2026-02-18

Quick answers

What is tool-ast-grep-rules?

Write AST-based code search and rewrite rules using ast-grep YAML. Create linting rules, code modernizations, and API migrations with auto-fix. Use when the user mentions ast-grep, tree-sitter patterns, code search rules, lint rules with YAML, AST matching, or code refactoring patterns. Source: heyvhuang/ship-faster.

How do I install tool-ast-grep-rules?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/heyvhuang/ship-faster --skill tool-ast-grep-rules Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/heyvhuang/ship-faster