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
- Refactor — We are about to refactor code 1.6k ★
- Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
- Claude Review Loop — Claude Code plugin: automated code review loop with Codex 589 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
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;
Full Refactor
Full workflow: scope and plan it, build it, simplify it, harden it. Runs the phases sequentially with a single
Advanced Code Review Verify
Advanced Code Review Phase 4: Verification - fact-check findings against codebase, remove false positives
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