An AI-powered skill for orchestrating codebase migrations, library upgrades, AST-first code refactoring, and custom codemod authoring using the Codemod CLI.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install codemod
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install codemod using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Codemod Migration Assistant is a powerful automation capability designed to streamline framework migrations, dependency upgrades, API surface updates, and large-scale mechanical edits. By prioritizing deterministic, registry-based code transformations over open-ended AI rewrites, this skill ensures that codebase refactoring is repeatable, predictable, and highly aligned with industry standards. As one of the key Openclaw Skills, it helps maintain high code quality across repositories without the manual overhead of traditional manual refactoring.
The skill seamlessly integrates with the Codemod CLI and MCP (Model Context Protocol) to offer interactive search, AST (Abstract Syntax Tree) visualization, and automated verification. Developers can inspect AST shapes, execute dry-runs, validate package configurations, and even author new codemod packages with detailed guidance from the built-in documentation and troubleshooting workflow systems.
codemod search to locate existing, verified packages in the Codemod Registry.codemod ai docs) to pull specific CLI, JSSG, or troubleshooting instructions.--dry-run) to preview the exact diffs and verify transformations.codemod init <path> --no-interactive and scaffolds the AST rules, test fixtures, and metadata files.validate_codemod_package to ensure no starter scaffolds remain, verifies tests pass, and applies the final changes across the target codebase.# Ensure you have npx available and install the Codemod CLI globally or run on-demand
npx codemod --help
# Search for available codemods to verify connection
npx codemod search <migration-intent>
For offline or non-MCP environments, the Openclaw Skills integration leverages the fallback CLI commands directly, ensuring full capability reproduction through npx codemod ai commands.
The skill interacts with and generates files following a highly structured codemod package layout. Below is the metadata taxonomy and directory structure managed by the skill:
| File / Path | Type | Description |
|---|---|---|
codemod.yaml |
Configuration | Defines target language, engine parameters, and general metadata. |
workflow.yaml |
Execution Workflow | Describes the execution steps, including inclusion/exclusion file globs and step order. |
package.json |
Package Metadata | Defines node dependencies, scripts, and runtime engines (e.g., JSSG, LLRT). |
README.md |
Documentation | Contains clear usage instructions, prerequisites, and code transformation descriptions. |
__testfixtures__/ |
Test Directory | Contains positive, negative, and edge-case code inputs and expected outputs to guard against regressions. |
The data processed during runtime includes AST structure representations obtained via npx codemod ai dump-ast and node type identifiers retrieved from npx codemod ai node-types <language>.
npx codemod ai dump-ast and node-types tools to inspect code structure prior to writing rules.codemod ai shell scripts, allowing uninterrupted operation in constrained runtime environments.validate_codemod_package to programmatically detect template leftovers, missing fixtures, or failing tests.Loading
An AI-powered automation skill that transforms single long-form content pieces into platform-optimized Twitter threads, LinkedIn posts, newsletters, and video scripts.

A non-custodial command-line interface for the Kash prediction market protocol, allowing developers and AI agents to query markets, execute trades, manage webhooks, and run on-chain operations.

A local OpenClaw skill that tracks meals, estimates or calculates nutritional values, and manages a persistent personal food log via text input.

Automatically collects and generates beautifully structured daily briefs for the Chinese A-share stock market.

An automated AI agent skill that monitors competitors' pricing, social channels, and product changes, compiling actionable intelligence into weekly reports.

An advanced Openclaw Skills extension that automates professional-grade RAW, JPG, and HEIC photo color grading using RawTherapee CLI and LLM-generated Lightroom parameters.








































