A CLI-based refactoring tool that analyzes code for quality improvements and displays actionable colored diffs.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install refactorer
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 refactorer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Refactor Assistant is a specialized utility within the Openclaw Skills library designed to automate the code review and optimization process. It allows developers to scan source files for logic errors, readability issues, and outdated patterns, providing a clear visual diff of suggested improvements. By integrating this skill into your workflow, you can maintain high standards of code quality with minimal manual effort, making it an essential tool for modern development environments. As part of the broader Openclaw Skills ecosystem, it prioritizes developer experience with a zero-config setup.
Refactor Assistant requires Node.js 18 or higher. Since it is part of the Openclaw Skills ecosystem, no local installation is strictly necessary as it can be run via npx. Ensure your environment variable is configured:
export OPENAI_API_KEY='your_api_key_here'
npx ai-refactor <path-to-file>
The tool follows a stateless processing model, ensuring your code remains secure and local. The data structure involved includes:
| Entity | Details |
|---|---|
| Source Code | The raw text of the file being analyzed. |
| Refactor Suggestions | AI-generated logical improvements and pattern updates. |
| Visual Diff | A formatted output showing additions and deletions. |
| CLI Arguments | Directives such as --apply or --focus to control skill behavior. |
Loading
Get instant, AI-driven refactoring suggestions with colored diffs to improve code quality and maintainability.

An AI-driven CLI tool that provides instant refactoring suggestions with colored diffs for your source code.

An AI-powered utility that generates optimized Redis key patterns, data structures, and TTL configurations based on specific use case descriptions.

An AI-powered CLI tool that generates optimized Redis key patterns, data structure designs, and TTL recommendations from natural language descriptions.

An AI-powered CLI tool that translates natural language descriptions into precise, validated regular expression patterns.

A powerful utility that converts plain English descriptions into functional, tested regular expression patterns.








































