← ClaudeAtlas

session-cleanuplisted

End-of-session housekeeping for git repositories. Use when the user asks to 'end of session', 'clean up session', 'session housekeeping', 'clean up branches', 'clean up worktrees', or 'clean up remote branches'.
wrsmith108/session-cleanup-skill · ★ 4 · Code & Development · score 58
Install: claude install-skill wrsmith108/session-cleanup-skill
# Session Cleanup Structured end-of-session housekeeping: doc review, branch audit, worktree removal, and remote sync. ## Behavioral Classification **Type**: Guided Decision **Directive**: ASK, THEN EXECUTE Audits each category and presents findings before taking any destructive action. Deletions always follow an explicit audit phase. ## Execution Context Requirements This skill spawns a general-purpose subagent that performs git operations and file edits. **Foreground execution required**: Yes **Required tools**: Read, Write, Edit, Bash, Grep, Glob **Fallback**: If tools are denied, the subagent returns a checklist of recommended actions for the coordinator to apply manually. **AskUserQuestion may not be available to the dispatched subagent** (found in practice, 2026-08-12): a `general-purpose` subagent spawned via the Task/Agent tool does not reliably have `AskUserQuestion` in its toolset in every harness, even though this skill's confirmation gates (Phase 2f, Phase 3, Phase 4c) assume it does. When this happens, the subagent should not guess or skip the gate — it should stop, return its full categorized findings as a condensed, decision-ready summary (counts + names + recommended action per bucket, not a raw dump of hundreds of items) to the coordinator, and let the coordinator either relay to the user via its own `AskUserQuestion` or (if the coordinator has independently gathered enough context to judge the scope safe) approve directly. The coordinator then sen