Refactor Subsystem

Execute a large-subsystem refactor (split a bloated module, extract a service, reorganize a domain) using an orchestrator/scout pattern driven by a spec file in `ai-docs/specs/`. Operates in seven phases — Inventory, Characterize+Extract, Plan, Approve, Execute, Verify, Crystallize — with mandatory three-output scouts (primary brief + findings.md + extracted-behaviors.md), spec-first enforcement via `scripts/specs.py`, ledger updates via `scripts/ledger.py`, and a conservative default that unknown code STAYS until explicit human approval. Refactors are behavior-preserving; bug fixes surfaced along the way become separate commits.

KhurrumMahmood 2a88576 8 files · 123.8 KB Updated

File contents

KhurrumMahmood/senior-vibe-engineer/tree/main/.claude/skills/refactor-subsystem commit 2a88576826

Frequently asked questions

npx skillmds@latest add khurrummahmood/refactor-subsystem