Cleanup Session — DevOps skill for Claude Code
After a feature/fix/release is done, remove this repo's dev leftovers — merged branches, their worktrees, and docker containers/networks/images.
How to install Cleanup Session
Installs to ~/.claude/skills/behindthemusictree-agent-config-cleanup-session/SKILL.md
mkdir -p ~/.claude/skills/behindthemusictree-agent-config-cleanup-session && curl -fsSL https://raw.githubusercontent.com/BehindTheMusicTree/agent-config/HEAD/commands/cleanup-session.md -o ~/.claude/skills/behindthemusictree-agent-config-cleanup-session/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Cleanup Session does
description: After a feature/fix/release is done, remove this repo's dev leftovers — merged branches, their worktrees, and docker containers/networks/images. model: sonnet
Clean up the current repo after a finished session. Everything runs through `scripts/cleanup-session.sh` (branch/worktree logic is `clean-repos.sh` scoped to this repo, then docker). Always confirm before deleting.
Optional flags: **$ARGUMENTS** — pass through as-is: `--local-only`, `--remote-only`, `--exclude
Alternatives in DevOps
- Composio Split — Manage Split feature flags and experiments 44.6k ★
- Ship Release — Systematic release workflow for RTK: build verification, version bump, changelog update, git tag, and push to 11.9k ★
- Packer Builders — Create machine images with HashiCorp Packer 465 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Deploy Receipt
Enforces Law 4 (Verify Before Reporting) of the 7 Laws of AI Agent Discipline at the deploy seam. A merge into
Coolify Deploy
Deploy feature branches to Coolify dev environment and return preview URLs
Spec Measure
Phase 5 — Measures the real impact of the feature against the metrics defined in discovery.md. Run after produ
Dockcleanbuild
Clean Docker environment and rebuild all images and containers from scratch
Auxi Launch Notify
Announce a successful auxi TestFlight launch on four surfaces — GitHub Release, Linear comment, CHANGELOG.md,
Ilk Ship
Run the verify → fix → release → deploy sequence for the active batch.
Related Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Tp Dead Code Finder
Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports",
Snr Cloud Auditor
Cloud, PaaS and container security reviewer. Use for a focused pass over how secrets, identities, networks, co