·ast-grep

使用 ast-grep (sg) 进行有效的代码搜索、分析和重构。使用此技能进行基于 AST 的精确代码修改、结构搜索和 linting。

18安装·2热度·@outlinedriven

安装

$npx skills add https://github.com/outlinedriven/odin-codex-plugin --skill ast-grep

如何安装 ast-grep

通过命令行快速安装 ast-grep AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/outlinedriven/odin-codex-plugin --skill ast-grep
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:outlinedriven/odin-codex-plugin。

SKILL.md

查看原文

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
分类
{}数据分析
认证
收录时间
2026-02-22
更新时间
2026-03-10

Browse more skills from outlinedriven/odin-codex-plugin

快速解答

什么是 ast-grep?

使用 ast-grep (sg) 进行有效的代码搜索、分析和重构。使用此技能进行基于 AST 的精确代码修改、结构搜索和 linting。 来源:outlinedriven/odin-codex-plugin。

如何安装 ast-grep?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/outlinedriven/odin-codex-plugin --skill ast-grep 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/outlinedriven/odin-codex-plugin

详情

分类
{}数据分析
来源
skills.sh
收录时间
2026-02-22