jikime-migration-ast-grep

Search and rewrite code using AST patterns for legacy migrations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates complex code transformations and legacy code migration tasks by leveraging Abstract Syntax Tree (AST) pattern matching, reducing manual refactoring effort and improving accuracy.

Core Features & Use Cases

  • Structural Code Search: Precisely locate code snippets based on AST patterns, not just text.
  • Automated Code Rewriting: Safely transform code structures according to defined migration rules.
  • Migration Scenarios: Facilitates common refactoring tasks like converting jQuery to React, PHP arrays to TypeScript objects, or Vue 2 options to Composition API.

Quick Start

Use the jikime-migration-ast-grep skill to find all instances of 'var $VAR = $VALUE' in JavaScript files and rewrite them to 'const $VAR = $VALUE'.

Frequently Asked Questions about jikime-migration-ast-grep

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

FAQPage Schema
How do I automate legacy code migration using AST patterns?

Automate legacy code migration using AST patterns by performing structural code search and automated transformation. This approach matches Abstract Syntax Tree structures rather than text to precisely locate and rewrite code snippets for modernization tasks.

How does AST structural search differ from standard text find and replace?

AST structural search locates code snippets based on Abstract Syntax Tree patterns instead of plain text matching. This method understands code syntax and structure, enabling precise matching and safe rewriting of complex code structures during refactoring.

Can I use this to migrate jQuery code to React?

You can migrate jQuery code to React using automated AST transformations. This Skill supports various migration scenarios, including converting jQuery to React, PHP arrays to TypeScript objects, and Vue 2 options to the Composition API.

How do I rewrite specific JavaScript syntax like var to const?

Rewrite JavaScript syntax like var to const by defining AST pattern matching rules. You can search for structural patterns such as 'var $VAR = $VALUE' and automatically transform them to 'const $VAR = $VALUE' across your codebase.

What's the best way to refactor Vue 2 options to the Composition API?

Refactor Vue 2 options to the Composition API by applying automated AST pattern matching. This technique enables precise structural code transformation, safely rewriting legacy Vue 2 component structures to modern Vue 3 syntax.

Do I need any dependencies to perform AST-based code transformation?

No external dependencies are required to perform AST-based code transformation. The Skill operates independently to execute structural code search and automated rewriting rules for your legacy code migration scenarios.