cleanuplisted
Install: claude install-skill elitecoder/assistant
# /cleanup — workspace teardown
The user typed `/cleanup` for a reason. **Do not confirm. Do not ask. Execute.**
The user is inside a cmux workspace they want to dismiss. This skill kills the dev servers, discards uncommitted changes (with a stash safety net), deletes the branch and worktree, and marks the linked TODO done (or synthesizes a done TODO if none matched, so the list stays a complete ledger of shipped work). One ledger entry captures the whole operation for `/cleanup --undo`.
**It does NOT close the cmux workspace.** That capability was removed 2026-05-26 after work-loss incidents — with the workspace gone, the user could no longer tell whether their session had finished cleanly or been interrupted. The user now closes the workspace manually once they have confirmed the work shipped. (Re-introduced and re-removed 2026-06-05 — see Step 9 below for why it stays out.)
## Flags
- (none) — full default cleanup (stash · delete branch · remove worktree · mark TODO done)
- `--keep-branch` — skip `git branch -D`
- `--keep-worktree` — skip `git worktree remove`
- `--keep-todo` — skip the TODO status flip
- `--keep-ws` — accepted for backward compat but a no-op (workspace closure is always skipped now)
- `--discard` — use `git reset --hard` instead of `git stash` (truly throws away — required for the ABSOLUTE RULE on destructive actions)
- `--dry-run` — print what would happen, write nothing, kill nothing
- `--undo <ledger-id>` — reverse a previous cleanup (recreate wor