什么是 ast-grep?
使用 ast-grep (sg) 进行有效的代码搜索、分析和重构。使用此技能进行基于 AST 的精确代码修改、结构搜索和 linting。 来源:outlinedriven/odin-codex-plugin。
使用 ast-grep (sg) 进行有效的代码搜索、分析和重构。使用此技能进行基于 AST 的精确代码修改、结构搜索和 linting。
通过命令行快速安装 ast-grep AI 技能到你的开发环境
来源:outlinedriven/odin-codex-plugin。
ast-grep is a fast and polyglot tool for code searching, linting, and rewriting based on Abstract Syntax Trees (AST). It excels at structural search and replace where regex fails.
Understanding Named vs Unnamed nodes and Matching Strictness is crucial for precise patterns.
ast-grep supports complex transformations (regex replace, case conversion) and rewriters for sub-node transformation.
使用 ast-grep (sg) 进行有效的代码搜索、分析和重构。使用此技能进行基于 AST 的精确代码修改、结构搜索和 linting。 来源:outlinedriven/odin-codex-plugin。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/outlinedriven/odin-codex-plugin --skill ast-grep使用 ast-grep (sg) 进行有效的代码搜索、分析和重构。使用此技能进行基于 AST 的精确代码修改、结构搜索和 linting。 来源:outlinedriven/odin-codex-plugin。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/outlinedriven/odin-codex-plugin --skill ast-grep 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/outlinedriven/odin-codex-plugin