An AI-driven utility for identifying code smells and applying advanced refactoring patterns to improve codebase maintainability and performance.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install ai-refactoring-assistant
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-refactoring-assistant using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The AI Refactoring Assistant is a professional-grade tool designed to streamline the code review and optimization process within your development workflow. By leveraging advanced machine learning models integrated through Openclaw Skills, it analyzes raw code snippets to detect anti-patterns, simplify complex logic, and suggest modern architectural improvements. This skill acts as an automated mentor, ensuring that your projects adhere to the highest standards of clean code and efficiency.
Whether you are modernizing a legacy codebase or refining a new feature, the assistant provides precise, actionable intelligence. It goes beyond simple linting by understanding the semantic intent of your code and recommending structural transformations such as function extraction, design pattern implementation, and complexity reduction.
To get started with this assistant in the ecosystem of Openclaw Skills, you must configure your API credentials for SkillPay.
Add your API key to your environment configuration:
export SKILLPAY_API_KEY="your_secret_api_key"
Each analysis call is processed via SkillPay at a cost of 0.001 USDT, ensuring high-quality AI processing on a per-use basis.
The skill utilizes a structured data format for both inputs and outputs to ensure compatibility with automated pipelines.
| Parameter | Type | Description |
|---|---|---|
action |
string | The requested operation, typically "refactor". |
code |
string | The source code to be analyzed. |
language |
string | The target programming language (e.g., javascript, python, rust). |
focus |
string | The optimization priority (e.g., "readability", "performance"). |
| Field | Description |
|---|---|
success |
Boolean indicating if the analysis was successful. |
suggestions |
An array of objects containing the refactoring type, original snippet, and suggested replacement. |
complexity |
A summary of the reduction in algorithmic or logical complexity. |
Loading
An intelligent performance analysis tool that identifies code bottlenecks and provides algorithmic optimization strategies.

An intelligent utility that automatically generates Markdown, JSDoc, and HTML documentation from source code with context-aware precision.

A specialized security and maintenance tool that audits project manifest files for vulnerabilities, outdated packages, and license compliance.

An AI-powered assistant that translates complex code into clear, human-readable explanations and documentation.

A professional-grade AI assistant for performing deep market research, project due diligence, and automated investment reporting.

A sophisticated static analysis tool that scans source code for security vulnerabilities and provides actionable remediation advice.








































