A specialized AI agent skill designed to streamline codebase structure and readability without altering functional behavior.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install code-refactor
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 code-refactor using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Code Refactor skill is a technical powerhouse within the Openclaw Skills library, focusing exclusively on improving the internal architecture of your local codebase. It targets technical debt by simplifying control flows, eliminating redundancy, and enhancing naming conventions while strictly preserving existing software behavior.
This skill ensures that your development cycle remains efficient by focusing on code health. By integrating this into your Openclaw Skills workflow, developers can transform tangled legacy code into clean, modular, and maintainable systems without the risk of introducing side effects or breaking public interfaces.
To enable this capability in your environment, add the code-refactor definition to your local Openclaw Skills configuration directory.
# Example of triggering the refactor skill via CLI
openclaw run code-refactor --path ./src/components
The Code Refactor skill generates a structured report and modified source files. The output taxonomy includes:
| Data Point | Description |
|---|---|
| Issue Log | A detailed list of architectural problems identified before the refactor. |
| Refactor Strategy | The logical approach taken to reorganize the code. |
| Invariance Proof | Documentation on how functional behavior was preserved. |
| Validation State | Confirmation of the verification tests performed post-refactor. |
Loading
A specialized skill for managing local Git repositories using safe, standardized, and reversible workflow practices.

A comprehensive knowledge management tool designed to capture, categorize, and export structured information across various projects.

An AI-powered SQL specialist for explaining execution plans, optimizing queries, and converting natural language into database commands.

Generate detailed technical SEO audits and keyword-focused content briefs automatically for any URL.

A secure execution environment for running non-destructive repository commands like testing, building, and linting within local workspaces.

A specialized skill for identifying and fixing critical security vulnerabilities within application source code.








































