Cmd Refactor — Code Quality skill for Claude Code
Refactor phase (ACT loop): analyze, plan, baseline, execute, verify, and sync a behavior-preserving restructuring with before/after measurement.
How to install Cmd Refactor
Installs to ~/.claude/skills/bouroo-agents-cmd-refactor/SKILL.md
mkdir -p ~/.claude/skills/bouroo-agents-cmd-refactor && curl -fsSL https://raw.githubusercontent.com/bouroo/agents/HEAD/commands/cmd-refactor.md -o ~/.claude/skills/bouroo-agents-cmd-refactor/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Cmd Refactor does
description: "Refactor phase (ACT loop): analyze, plan, baseline, execute, verify, and sync a behavior-preserving restructuring with before/after measurement. Use when restructuring existing code for clarity, safety, or performance without changing its observable behavior." argument-hint: " [--goal=]"
Refactor Phase
A behavior-preserving restructuring workflow inside the ACT phase. Measure before and after; keep only what the
Alternatives in Code Quality
- Claude Review Loop — Claude Code plugin: automated code review loop with Codex 589 ★
- Hybrid Manual — Load an existing PRD file and enter review mode 123 ★
- Coder Eval Implement Plan — Implement an approved coder_eval plan phase by phase with risk-scaled per-phase review, then a final code revi 116 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Plan Refactor
Plan a behavior-preserving refactor in small, always-green steps
Cfn Vote Implement
MUST BE USED after cfn-dry-review or cfn-alpha-launch:manifest produces a manifest. Also verification phase of
Refactor Safely
Plan and execute safe refactoring using dependency analysis
Refactor TDD
REFACTOR phase - Improve code quality while keeping tests green with automatic metrics tracking in sprintdag d
ExecuteTask
Phase 6 — implement tasks in order, choosing the loop (core / red-green-refactor / prompt-iteration) per task;
Prettier Format
Run prettier on files Claude has edited to match .prettierrc before committing. Invoke after any code change s
Related Agents
Refactor Specialist
Use this agent for behavior-preserving refactors — restructuring, renaming, extracting, de-duplicating, and un
Refactor
Safe code restructuring preserving behavior
Refactor Validator
Use this agent when a significant refactoring has been completed and you need to verify that the changes are c