factory-clean
Installation
SKILL.md
factory-clean
What this skill does
factory-clean is the resource-reclamation engine of the software factory. It answers two questions and acts on the second: what is this project costing this machine right now, and what can be reclaimed without destroying work or interrupting an agent that is still running?
It operates as a Kind-B control-plane skill that reads the run registry, identifies active worktrees, and cleans up discarded/stale artifacts.
When to use
- After multiple parallel runs, to see which worktrees are safely removable and reclaim disk space.
- To clean up abandoned or stale locks and leases.
- To verify that no uncommitted or unpushed work is accidentally lost.
When NOT to use:
- For routine code development or PR review (use
factory-missionorfactory-review). - To force-delete unpushed git commits or uncommitted files (this skill never deletes unsafe work).