·moai-tool-ast-grep
!

moai-tool-ast-grep

modu-ai/cc-plugins

AST-based structural code search, security scanning, and refactoring using ast-grep (sg CLI). Supports 40+ languages with pattern matching and code transformation.

5Installs·0Trend·@modu-ai

Installation

$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-based structural code search, security scanning, and refactoring using ast-grep (sg CLI). Supports 40+ languages with pattern matching and code transformation. Source: modu-ai/cc-plugins.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/modu-ai/cc-plugins --skill moai-tool-ast-grep
Category
!Security
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is moai-tool-ast-grep?

AST-based structural code search, security scanning, and refactoring using ast-grep (sg CLI). Supports 40+ languages with pattern matching and code transformation. Source: modu-ai/cc-plugins.

How do I install moai-tool-ast-grep?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/modu-ai/cc-plugins --skill moai-tool-ast-grep Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

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