moai-tool-ast-grep

Automate structural code search and transformation using AST-Grep for MoAI-ADK workflows.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/windysky/claude_notification_wsl2 --skill moai-tool-ast-grep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-tool-ast-grep
Source: https://github.com/windysky/claude_notification_wsl2/tree/main/.claude/skills/moai-tool-ast-grep
Command: npx skills add https://github.com/windysky/claude_notification_wsl2 --skill moai-tool-ast-grep

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AST-Grep integration enables MoAI-ADK workflows to perform reliable structural code search and codemod transformations across multi-language codebases.

Core Features & Use Cases

  • Pattern-based search and transformation with sg for MoAI-ADK rule development
  • Cross-language safety checks, refactoring, and API migrations
  • Use case: collaborate on multi-language projects by validating code patterns and applying bulk transformations across repositories

Quick Start

Install AST-Grep and MoAI-ADK, then validate or run scans with the config located at .claude/skills/moai-tool-ast-grep/rules/sgconfig.yml. Then run sg scan --config sgconfig.yml to perform a security/quality scan.

Frequently Asked Questions about moai-tool-ast-grep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run structural code search and codemod transformations across multi-language projects?

Structural code search and codemod transformations are automated using AST-Grep integration for MoAI-ADK workflows, applying pattern matching and fix transformations across Python, JavaScript/TypeScript, and Go repositories.

Can I use ast-grep pattern matching for security checks and API migrations in JavaScript and Go?

Ast-grep pattern matching supports cross-language safety checks, refactoring, and API migrations in JavaScript, TypeScript, and Go by validating code patterns and applying bulk transformations across repositories.

How do I configure ast-grep rules for inside, has, and follows relationships in my codebase?

Ast-grep rules for inside, has, and follows relationships are configured via CLI-based rule setup located at .claude/skills/moai-tool-ast-grep/rules/sgconfig.yml to define structural pattern constraints.

Do I need to install MoAI-ADK to perform bulk refactoring and architecture migration with ast-grep?

Installing MoAI-ADK and AST-Grep is required to validate and run scans using the sgconfig.yml configuration, enabling bulk refactoring and architecture migration across multi-language codebases.

What is the best way to scan for security vulnerabilities using structural pattern matching across repositories?

The best way to scan for security vulnerabilities is running sg scan with the sgconfig.yml configuration, which uses structural pattern matching to identify and fix unsafe code patterns across repositories.