← ClaudeAtlas

adopt-wiplisted

Salvage coherent uncommitted work left in a stalled worktree or abandoned agent session. Use when resuming a run, when a parallel worktree contains valuable WIP, or when deciding whether to adopt, finish, and ship existing work instead of rebuilding from scratch.
austinmao/feature-fix-swarm · ★ 3 · AI & Automation · score 72
Install: claude install-skill austinmao/feature-fix-swarm
# /adopt-wip ## Host dispatch contract - Codex: `$skill`, Codex collaboration roles, and GPT-5.6 tiers. - Claude: `/skill`, Agent/Skill tools, and Claude aliases. - A bare `/skill` in this shared source denotes the Claude form; Codex dispatches the same named skill as `$skill`. Adopt stalled work only after confirming it is not active, and give the adopted diff NO gate discount. Ported from the fable-agent-orchestration `orphaned-wip-adopter` skill (Apache-2.0). ## When to run - `/feature-implement --resume` finds a worktree with uncommitted changes for a task it is about to rebuild. - A parallel spec worktree under `.claude/worktrees/` went quiet mid-run. - An agent session died (context exhaustion, kill, crash) leaving a dirty tree. ## Procedure 1. **Confirm the worktree is stale — never touch active work:** - file mtimes (`find <worktree> -newer <ref> -type f` — anything touched in the last few minutes suggests a live session); - running processes / session status where observable; - **composite liveness consult** — before declaring the WIP abandoned, run `bash scripts/gsd/liveness-check.sh <pidfile> <state-dir>` (adds to, does not replace, the checks above). It ANDs three signals — pid alive, newest mtime under `<state-dir>` fresh within `LIVENESS_WINDOW_MIN` (default 30), and an in-flight `ship:gsd` grant — and reports ALIVE (exit 0) if ANY holds. Exit 1 (DEAD, all three signals false) → truly abandoned, safe to ado