jikime-tool-ast-grep

Perform AST-based code analysis, security scanning, and refactoring across 40+ languages.

5|1|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/jikime/jikime-adk --skill jikime-tool-ast-grep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jikime-tool-ast-grep
Source: https://github.com/jikime/jikime-adk/tree/main/templates/.claude/skills/jikime-tool-ast-grep
Command: npx skills add https://github.com/jikime/jikime-adk --skill jikime-tool-ast-grep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates complex code analysis, refactoring, and security scanning across numerous programming languages by leveraging Abstract Syntax Tree (AST) parsing, moving beyond the limitations of traditional text-based pattern matching.

Core Features & Use Cases

  • AST-based Search: Find code patterns that regex cannot capture, like nested function calls or specific code structures.
  • Automated Refactoring: Transform code semantically across multiple files, such as renaming functions or migrating APIs.
  • Security Scanning: Detect vulnerabilities like SQL injection and XSS by analyzing code structure.
  • Use Case: Automatically refactor all instances of a deprecated function call across your entire codebase, ensuring consistency and reducing manual effort.

Quick Start

Use the jikime-tool-ast-grep skill to find all instances of console.log in the src directory.

Frequently Asked Questions about jikime-tool-ast-grep

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

FAQPage Schema
How do I find nested function calls and specific code structures that regex cannot capture?

AST-based structural search finds specific code structures and nested function calls by parsing the Abstract Syntax Tree, moving beyond traditional text-based pattern matching limitations to identify exact semantic code patterns.

What is the best way to automatically refactor a deprecated function call across multiple files?

Automated refactoring using AST matching transforms code semantically across multiple files, enabling you to migrate APIs or rename functions consistently throughout your codebase while preserving the underlying structural logic.

Can I perform security scanning for SQL injection and XSS vulnerabilities using structural code analysis?

Security scanning via structural code analysis detects vulnerabilities like SQL injection and XSS by analyzing code structure rule sets, identifying insecure patterns that text-based matching misses across supported programming languages.

Does ast-grep support code pattern matching for multiple programming languages?

ast-grep supports structural code analysis, security scanning, and refactoring across 40+ programming languages, utilizing Abstract Syntax Tree matching to handle complex pattern recognition and code transformation tasks.

How do I scan my source directory to find all instances of console.log for code cleanup?

You can scan a source directory to find all instances of specific calls like console.log by running structural code search, which identifies matching AST nodes precisely for targeted code cleanup and quality enforcement.