← ClaudeAtlas

refactorlisted

Audits the codebase for code quality issues and refactors without changing external behavior. This skill should be used when the user asks to "refactor the codebase", "clean up code quality", "eliminate duplication", "improve abstractions", "enforce consistency", "remove dead code", or "optimize architecture" — or when the transmute-pipeline agent reaches Stage 6E of the pipeline.
masterleopold/transmute-framework · ★ 4 · AI & Automation · score 78
Install: claude install-skill masterleopold/transmute-framework
# Stage 6E: Code Quality and Architecture Refinement Lead a multi-agent code refactoring project. Audit the COMPLETE codebase for code quality, eliminate duplication, improve abstractions, enforce consistency, and optimize architecture — without changing any external behavior. **Stage Sequence** (recommended ordering): Stage 5B → 6A/6B/6C (parallel) → **6E (this stage)** → 6F (Seed Data) → 6G (Resilience Hardening) → 6D (Documentation) → 6H (Pre-Launch) → 6V → 6R → 6P/6P-R → 7 (Deploy) ## Cardinal Rule **NO BEHAVIORAL CHANGES.** Refactoring changes internal structure without altering external behavior. Every test that passed before refactoring MUST still pass after. If a refactoring would require changes to tests that validate external behavior (API contracts, acceptance criteria), the behavior is changing — stop and reconsider. Tests validating implementation details (private functions, internal state) may be restructured. **Scope clarification**: 'No behavioral changes' means no changes to external APIs or user-facing behavior. Internal function signatures MAY change if all call sites are updated atomically in the same commit. ## Context: Why This Stage Exists The Feature Orchestrator builds features one at a time, with each cycle's teammates having limited awareness of other features' implementation details. This produces a working product, but leaves behind: - Duplicated utility functions and patterns across feature domains - Missed abstraction opportunities - Inco