cyberneticlibrary

Clean code and find stale artifacts

cleancommandsetup L12,091
catlog22/Claude-Code-Workflow
What it does

Intelligently clean stale code and workflow artifacts

Best for

Safe, intelligent removal of drifted sessions, dead code, and stale documents.

Inputs
  • · Focus area (optional), flags: --yes, --dry-run
Outputs
  • · Cleanup manifest, impact analysis, safe execution with dry-run preview
Requires
  • · git log
  • · cli-explore-agent
  • · TodoWrite
Preconditions
  • · Git repo initialized
  • · Workflow sessions exist
Failure modes
  • · mainline detection ambiguous
  • · Explore agent discovery incomplete
  • · Unintended deletion
Trust signals
  • · Mainline detection heuristic
  • · Dry-run preview before execution
  • · Auto mode safe defaults