/pr-autopilot:unassign <assignment-id>from pr-autopilot
Release an assignment claim WITHOUT merging — agent changed mind, assignment re-classified, deps blocked indefinitely. Removes worktree, deletes branch, resets ExoVault task to `todo`. Confirms destructively (requires AskUserQuestion). Symmetric counterpart to `/assign`. Use when - "abandon this assignment", "release the claim", "I'm not working on X anymore".
Ships in pr-autopilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Housekeeping skill. Symmetric counterpart to /assign. Destructive — requires interactive user confirmation.
<assignment-id> exists.Read claim file (from worktree path if accessible, else from remote branch via git show <branch>:.claude/assignment-claims/<id>.json).
subStatus == merged → reject: "Assignment is already merged. Use git revert workflows, not /unassign."in_progress → orphan recovery: proceed but with explicit warning.AskUserQuestion (MANDATORY — destructive action):
"Unassign '<id>'? This will DELETE the worktree, local branch '<branch>', and reset the ExoVault task to 'todo' for re-claim.""Unassign""❌ Cancel — keep claim" (default safe option)"⚠️ Unassign — delete worktree + branch" with description: "Destructive. Lost: <N> uncommitted edits (if any), <M> commits not in any other branch. Sub-status was: <current>. Approved by: <approvedBy or 'never'>.""📋 Show current state first" with description: "Print claim file + git status + git log of this branch, then re-run /unassign."Branch on response:
Cancel: no-op, exit gracefully.
Show state: print:
claim file: <full json>
git log <branch> --oneline | head -20
git status (if worktree accessible)
Exit. User re-runs /unassign when ready.
Unassign — proceed:
cd to main worktree root (outside target's worktree):
# first "worktree <path>" entry is the primary worktree; sed keeps paths with spaces intact
MAIN=$(git worktree list --porcelain | sed -n 's/^worktree //p' | head -1)
cd "$MAIN"
Remove worktree:
git worktree remove ".claude/worktrees/<id>" 2>&1 || \
git worktree remove --force ".claude/worktrees/<id>" 2>&1 || \
echo "⚠️ Worktree at .claude/worktrees/<id> not removable. Inspect manually."
Delete local branch:
git branch -D "<branch>" 2>&1 || echo "Branch <branch> not present locally (already deleted?)"
Delete remote branch (if pushed):
if git ls-remote --heads origin "<branch>" | grep -q .; then
echo "Branch was pushed. Delete remote: git push origin --delete <branch>"
# Optionally auto-execute if user pre-confirmed in step 2; default = prompt first
fi
Reset ExoVault task:
mcp__exo-vault__update_task(taskId, status='todo', assignedAgentId=null)
This re-opens the assignment for any agent to claim.
assignments.yaml on main (P2 note — usually no-op):
status: in_progress for this id → reset to todo and commit. (Shouldn't happen post P0-3 v2 fix, but defensive.)blocked → preserve (block is intentional).todo → no-op (most common case after P0-3 truth model).Echo confirmation:
✅ Assignment <id> released.
Worktree: removed
Local branch: deleted
Remote branch: <still exists | deleted>
ExoVault task: reset to todo
/pr-autopilot:assign <id> may be invoked by any agent now.
Unlike /assign (creative, low-risk), /unassign is destructive:
AskUserQuestion enforces that a human (not just the agent acting autonomously) authorized the destruction.
If /unassign partially completed (e.g. worktree removed but ExoVault update failed):
/unassign <id> → idempotent steps 5–9 will skip what's done and complete what's not.git branch -D <branch>, mcp__exo-vault__update_task(...).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub marcinsufa/claude-pr-autopilot --plugin pr-autopilot11 skills in this plugin
/allowAdd a repo to the pr-autopilot auto-trigger allowlist. Use /pr-autopilot:allow <owner/repo> (or no arg for the current repo). The auto-trigger hook only fires for allowlisted repos./approve-specUser-only gate from spec to TDD. Asks the user (AskUserQuestion) to approve, show or reject the reviewed spec; on approve the user runs approve-claim.sh in their own terminal, which writes `approvedAt` + `approvedBy` to the claim file and flips sub-status to `implementing`. The PreToolUse hook (`enforce-spec-gate.sh`) then unblocks writes outside `specs/`. Use when - "approve the spec", "give green light to TDD", "spec is good, proceed"./assignAtomically claim an assignment from `assignments.yaml`, create a worktree off `origin/main`, write the claim file, and brief the agent. Uses git branch creation as the atomic lock primitive — concurrent calls on the same id are racing on `git worktree add -b`; loser gets a graceful "claimed by X" message. Use when starting work on a pre-declared unit ("claim admin-d1", "start the next ready assignment")./automergeOpt a repo into pr-autopilot safe auto-merge. Use /pr-autopilot:automerge <owner/repo> (or no arg for the current repo). When the loop reaches SUCCESS, autopilot queues a squash merge to the integration branch (dev) — never to master/main/production, always CI-gated. Separate from /pr-autopilot:allow./finishPost-merge cleanup. After the PR merges (typically via v0.4 automerge), runs /pr-autopilot:finish <id> to update the claim file to `merged`, mirror to ExoVault `done`, update `assignments.yaml` on `main` with merge metadata, and best-effort cleanup of the worktree + local branch. Lists dependent assignments that became READY. Idempotent. Use when - "close the assignment", "PR merged, clean up", "what's next ready"./pauseTemporarily suppress pr-autopilot auto-trigger without changing the allowlist. Use /pr-autopilot:pause. Re-enable with /pr-autopilot:resume.