An AI-driven CLI tool that converts natural language descriptions into robust AST-based codemods for safe, large-scale code refactoring.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install ai-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 ai-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 Generator is a specialized developer tool designed to handle complex code transformations that simple find-and-replace tools cannot manage. By leveraging advanced AI models within the Openclaw Skills ecosystem, it translates high-level refactoring requests into precise jscodeshift scripts. This allows developers to modernize legacy codebases, migrate between frameworks, and enforce new architectural patterns across hundreds of files with minimal manual effort.
This utility is particularly valuable for teams maintaining large repositories where manual refactoring is prone to error and time-consuming. It prioritizes safety by utilizing Abstract Syntax Tree (AST) manipulations, ensuring that code formatting and comments remain intact while structural changes are applied accurately.
To get started with this tool from the Openclaw Skills library, ensure you have Node.js 18 or higher installed. You will also need an OpenAI API key configured in your environment.
export OPENAI_API_KEY='your_api_key_here'
npx ai-codemod "your transformation description"
No permanent installation is required as the tool runs directly via npx. For help with commands, you can run:
npx ai-codemod --help
The tool operates on the source code of your project and generates temporary or reusable script files. Below is how the skill interacts with your data:
| Component | Description |
|---|---|
| Input | Natural language string describing the refactoring pattern. |
| Output | AST-based jscodeshift or Babel transformation script. |
| Context | Accesses local file system to read source files and apply changes. |
| Requirements | Requires an OPENAI_API_KEY to generate the transformation logic. |
Loading
Cloudflare Gen is an AI-driven tool that translates natural language prompts into fully configured Cloudflare Workers and edge functions.

Automatically scan your project and generate production-ready GitHub Actions workflows with zero manual configuration.

Effortlessly generate categorized markdown release notes from your git history using AI.

An AI-driven CLI tool that analyzes API source code to provide intelligent caching recommendations for improved performance.

An AI-driven CLI tool that automatically generates meaningful inline comments focusing on logic and intent rather than just syntax.

A CLI-driven AI tool that transforms natural language descriptions into production-ready UI components across multiple frameworks.








































