·moai-tool-ast-grep
!

moai-tool-ast-grep

modu-ai/cc-plugins

使用 ast-grep (sg CLI) 基于 AST 的结构代码搜索、安全扫描和重构。支持 40 多种语言,具有模式匹配和代码转换功能。

5安装·0热度·@modu-ai

安装

$npx skills add https://github.com/modu-ai/cc-plugins --skill moai-tool-ast-grep

SKILL.md

Structural code search, lint, and transformation tool using Abstract Syntax Tree analysis.

AST-Grep (sg) is a fast, polyglot tool for structural code search and transformation. Unlike regex-based search, it understands code syntax and matches patterns based on AST structure.

Pattern search: Execute sg run with pattern option specifying the code pattern to find, lang option for the programming language, and the source directory path.

使用 ast-grep (sg CLI) 基于 AST 的结构代码搜索、安全扫描和重构。支持 40 多种语言,具有模式匹配和代码转换功能。 来源:modu-ai/cc-plugins。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/modu-ai/cc-plugins --skill moai-tool-ast-grep
分类
!安全工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 moai-tool-ast-grep?

使用 ast-grep (sg CLI) 基于 AST 的结构代码搜索、安全扫描和重构。支持 40 多种语言,具有模式匹配和代码转换功能。 来源:modu-ai/cc-plugins。

如何安装 moai-tool-ast-grep?

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

这个 Skill 的源码在哪?

https://github.com/modu-ai/cc-plugins