An AI-driven CLI tool that generates jscodeshift scripts to automate complex, large-scale code refactoring via natural language commands.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install codemod-gen
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-gen 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 tool designed to handle massive code transformations that go beyond the capabilities of traditional find-and-replace methods. By utilizing Abstract Syntax Tree (AST) manipulation, it allows developers to describe complex refactoring patterns in plain English and receive a production-ready script that safely modifies source code while preserving original formatting and comments.
Part of the Openclaw Skills collection, this utility simplifies the process of modernizing legacy codebases, migrating between libraries, and enforcing new architectural standards. It removes the barrier of entry for writing complex jscodeshift or Babel scripts, enabling teams to execute codebase-wide upgrades with confidence and speed.
The Codemod Generator requires Node.js 18 or higher. No permanent installation is necessary as it can be executed via npx. You must provide an OpenAI API key to power the transformation logic.
# Set your environment variable
export OPENAI_API_KEY='your_api_key_here'
# Execute a transformation command
npx ai-codemod "replace lodash.get with optional chaining"
The skill processes natural language input and outputs executable JavaScript logic. The following table describes the primary data elements involved:
| Element | Format | Description |
|---|---|---|
| Transformation Prompt | String | The natural language instruction describing the code change. |
| Generated Codemod | JavaScript | A jscodeshift-compatible script containing the AST logic. |
| Target Source | Filesystem | The local code files (JS/TS) being analyzed and modified. |
| Environment Config | ENV | Metadata and API keys required for execution. |
Loading
An AI-powered code reviewer that delivers brutal humor alongside actionable technical feedback to improve your codebase.

Code Reviewer is an AI-powered utility that analyzes staged git changes to identify bugs, security vulnerabilities, and code smells before submission.

A powerful CLI utility that translates complex source code into human-readable explanations at multiple technical levels.

An AI-powered utility that generates complete Cloudflare Workers code and wrangler.toml configurations from natural language prompts.

An AI-driven CLI tool that injects meaningful inline comments into source code to explain the intent and reasoning behind complex logic.

Turn natural language descriptions into fully functional React components with TypeScript and Tailwind support.








































