·moai-tool-ast-grep
!

moai-tool-ast-grep

modu-ai/moai-rank

使用 ast-grep (sg CLI) 基於 AST 的結構代碼搜索、安全掃描和重構。支持 40 多種語言,具有模式匹配和代碼轉換功能。

9安裝·1熱度·@modu-ai

安裝

$npx skills add https://github.com/modu-ai/moai-rank --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/moai-rank。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/modu-ai/moai-rank --skill moai-tool-ast-grep
分類
!安全工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 moai-tool-ast-grep?

使用 ast-grep (sg CLI) 基於 AST 的結構代碼搜索、安全掃描和重構。支持 40 多種語言,具有模式匹配和代碼轉換功能。 來源:modu-ai/moai-rank。

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

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/modu-ai/moai-rank --skill moai-tool-ast-grep 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/modu-ai/moai-rank