Refactor Claw
refactor-claw
Refactoriza código legacy con patrones de transformación segura, preservando comportamiento y reduciendo complejidad gradualmente.
Refactor Claw transforms legacy code using safe refactoring patterns that preserve existing behavior while reducing complexity, improving readability, and enabling future changes. It follows the strangler fig pattern, incremental transformations, and behavior-preserving steps validated by existing tests.
PRIMARY ACTION
OpenClaw is the default target. Cursor example below.
When to Use
- Implement production-grade code and architecture
- Audit design decisions and tradeoffs
- Catch reliability issues before release
- Raise quality consistency across teams
Compatible Frameworks
8 TOOLS
Quality Gates
- Pasos incrementales y validables
- Comportamiento preservado en cada paso
- Complejidad ciclomática reducida mediblemente
- Plan documentado con resultados esperados
- Rollback posible en cada paso
5 GATES DEFINED
Expected Outputs
Native exports per tool
openclaw/AGENTS.mdopenclaw/SOUL.mdopenclaw/TOOLS.md+7 morehermes/skills/flickclaw/refactor-claw/SKILL.mdhermes/skills/flickclaw/refactor-claw/references/workflow.mdhermes/skills/flickclaw/refactor-claw/references/quality-gates.md+2 moreclaude-code/CLAUDE.mdclaude-code/.claude/skills/refactor-claw/SKILL.mdclaude-code/.claude/skills/refactor-claw/references/workflow.md+3 morecodex/AGENTS.mdcodex/.flickclaw/agents/refactor-claw/codex.mdcodex/.flickclaw/agents/refactor-claw/workflow.md+2 morecursor/.cursor/rules/flickclaw-refactor-claw.mdccursor/.cursor/rules/flickclaw-refactor-claw-workflow.mdccursor/.cursor/rules/flickclaw-refactor-claw-quality-gates.mdcwindsurf/.windsurf/rules/flickclaw-refactor-claw.mdwindsurf/.windsurf/rules/flickclaw-refactor-claw-workflow.mdwindsurf/.windsurf/rules/flickclaw-refactor-claw-quality-gates.mdaider/CONVENTIONS.mdaider/aider.mdaider/.aider.conf.ymlollama/Modelfileollama/system-prompt.mdollama/template.md+1 moreUse in Your Tool
Primary command uses OpenClaw by default. Secondary example targets Cursor.
OpenClaw (default)
RECOMMENDEDnpm exec --yes @flickclaw/cli@latest -- install refactor-clawCursor (secondary)
npm exec --yes @flickclaw/cli@latest -- install refactor-claw --target cursorSupported AI Agent Frameworks
Example Prompt
Build a complete plan and deliverable package for this agent's role in a production workflow.