moai-tool-ast-grep

Community

Structural code search & refactoring

AuthorCJ-1981
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides advanced, syntax-aware code analysis for searching complex patterns, performing semantic refactoring, and identifying security vulnerabilities across a wide range of programming languages.

Core Features & Use Cases

  • Structural Code Search: Find code patterns that regex cannot capture, like nested function calls or specific AST structures.
  • AST-based Refactoring: Perform safe and semantic code transformations, API migrations, and codemod operations.
  • Security Scanning: Detect common vulnerabilities like SQL injection, XSS, and hardcoded secrets based on code structure.
  • Use Case: Automatically refactor all instances of a deprecated API call across your entire codebase, or scan for specific security anti-patterns before committing code.

Quick Start

Use the moai-tool-ast-grep skill to find all instances of console.log in JavaScript files within the src directory.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: moai-tool-ast-grep
Download link: https://github.com/CJ-1981/excel-processor/archive/main.zip#moai-tool-ast-grep

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.