tool-ast-grep-rules
✓使用 ast-grep YAML 編寫基於 AST 的程式碼搜尋並重寫規則。透過自動修復建立 linting 規則、程式碼現代化和 API 遷移。當使用者提到 ast-grep、tree-sitter 模式、程式碼搜尋規則、YAML 的 lint 規則、AST 匹配或程式碼重構模式時使用。
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) |
使用 ast-grep YAML 編寫基於 AST 的程式碼搜尋並重寫規則。透過自動修復建立 linting 規則、程式碼現代化和 API 遷移。當使用者提到 ast-grep、tree-sitter 模式、程式碼搜尋規則、YAML 的 lint 規則、AST 匹配或程式碼重構模式時使用。 來源:heyvhuang/ship-faster。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/heyvhuang/ship-faster --skill tool-ast-grep-rules- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-17
- 更新時間
- 2026-02-18
快速解答
什麼是 tool-ast-grep-rules?
使用 ast-grep YAML 編寫基於 AST 的程式碼搜尋並重寫規則。透過自動修復建立 linting 規則、程式碼現代化和 API 遷移。當使用者提到 ast-grep、tree-sitter 模式、程式碼搜尋規則、YAML 的 lint 規則、AST 匹配或程式碼重構模式時使用。 來源:heyvhuang/ship-faster。
如何安裝 tool-ast-grep-rules?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/heyvhuang/ship-faster --skill tool-ast-grep-rules 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/heyvhuang/ship-faster
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-17