/harness-maintain — run the Maintain phase
Thin orchestrator over the Maintain skills. Behavior-preserving by default.
Sequence
/harness-claude:onboard— only if the codebase is unfamiliar or you've been away from it. Build a lean codemap (structure, entry points, conventions, where things live) so cleanup is safe. If you already know the codebase, skip and say so./harness-claude:refactor-clean— delegate to theharness-claude:refactor-cleaneragent:- Find candidates with analyzers (knip/depcheck/ts-prune/ruff/vulture) or the graph.
- Confirm truly unused before deleting (all references, dynamic usage).
- Consolidate duplication (DRY); split files >800 lines by responsibility.
- Small reversible steps; run tests/build after each.
Ambiguity gate: if a deletion or consolidation is non-obvious or could change behavior, HALT — report it and let the user decide. When a "cleanup" turns into a redesign, route to
/harness-claude:architectinstead.
Rules
- Behavior-preserving only. No feature/API changes unless asked.
- Never delete something you didn't confirm unused.
- Keep diffs reviewable. Do not run git write operations.
Output
What was removed/consolidated (with reference checks), what was deliberately left, and confirmation tests/build still pass.