cyberneticlibrary

Refactor and clean code

refactor-cleanersubagentsetup L22
daeha76/RianFriends
What it does

Identify and safely remove dead code

Best for

Systematic cleanup after feature work or refactoring sprints.

Inputs
  • · [object Object]
Outputs
  • · [object Object]
Requires
  • · knip
  • · depcheck
  • · ts-prune
  • · Bash
Preconditions

Tests passing; build succeeds; feature branch active

Failure modes
  • · Dynamic imports not detected
  • · Critical code deleted
  • · No git commit created
Trust signals
  • · Detection tool verification
  • · Test pass/fail gates per batch