·tool-ast-grep-rules
</>

tool-ast-grep-rules

heyvhuang/ship-faster

使用 ast-grep YAML 编写基于 AST 的代码搜索并重写规则。通过自动修复创建 linting 规则、代码现代化和 API 迁移。当用户提到 ast-grep、tree-sitter 模式、代码搜索规则、YAML 的 lint 规则、AST 匹配或代码重构模式时使用。

6安装·0热度·@heyvhuang

安装

$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) |

使用 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