What problem does it solve?
Branch-heavy codebases accumulate complexity through iterative changes, making merges riskier and maintenance harder; this Skill provides a structured, branch-aware workflow to safely reduce complexity without changing behavior.
Core Features & Use Cases
- Branch-Aware Routing: Detects the current Git branch and selects between feature-branch mode and primary-branch mode to drive the refactor plan.
- Feature Branch Mode: Compares changes against the base, targets high-leverage simplifications in the delta, and preserves behavior with tests.
- Primary Branch Mode: Performs a full-codebase scan on the main branch to surface longer-term simplifications, consolidate duplicates, and clarify naming while remaining invariant-safe.
- Documentation & Guardrails: Encourages inline docs, test updates, and bounded PRs to maintain stability and traceability.
Quick Start
Begin by invoking the refactor workflow on a feature branch to start simplifying the delta without altering behavior.