/pr-autopilot:pr-opened <PR-number>from pr-autopilot
Bridge from pre-PR (v0.5) to post-PR (v0.4 step loop). After `gh pr create`, run /pr-autopilot:pr-opened <PR#> to record the PR linkage in the claim file, flip sub-status to `pr_review_requested`, and prompt the user to start the v0.4 review loop. Small skill; the value is the audit-trail entry. Use when - "PR created, hand off to autopilot", "bridge to step loop", "PR założony, przekaż do autopilota", "podepnij PR pod pętlę review".
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The handoff between v0.5 pre-PR lifecycle and v0.4 post-PR review loop.
.claude/assignment-claims/<id>.json present.subStatus == implementing (or stale spec_approved from v2 design — accepted with deprecation warning).gh pr view <PR#> succeeds (PR exists).gh pr view <PR#> --json headRefName matches claimFile.branch (defensive — caller-typo guard).Read claim file. Verify sub-status. Reject if not implementing (or spec_approved for back-compat) — likely user invoked before any commits / before TDD.
Fetch PR metadata:
gh pr view <PR#> --json url,number,headRefName,state -q '{url, number, headRefName, state}'
If state != OPEN → echo "PR # state is — not OPEN, refusing to flip sub-status" and STOP.
If headRefName != claimFile.branch → echo "Branch mismatch: PR is on , claim file says . Likely wrong PR#." and STOP.
Update claim file (P1-2 fix: flip directly to pr_review_requested since PR exists ⇒ review loop is about to start; v0.4 step will not touch this file):
{
"subStatus": "pr_review_requested",
"prNumber": <PR#>,
"prUrl": "<url>"
}
Commit:
git add .claude/assignment-claims/<id>.json
git commit -m "chore(pr-autopilot): PR #<N> opened for <id> — hand off to step loop"
git push origin <branch>
Mirror to ExoVault: update_task(taskId, ...) — append PR linkage to description.
Echo handoff message:
✅ PR #<N> linked to assignment <id>. Sub-status: pr_review_requested.
📋 PR: <url>
📁 Branch: <branch>
Hand off to v0.4 review loop:
/loop /pr-autopilot:step <PR#>
The step loop will run until reviewers report 5/5 + automerge fires (if enabled).
After merge, run /pr-autopilot:finish <id> to close the lifecycle.
pr_opened sub-statusThere is no separate pr_opened sub-status in the claim file. Conceptually it exists between gh pr create and /pr-opened invocation (a few seconds). The claim file jumps directly from implementing to pr_review_requested. This avoids a one-state-step-with-no-purpose.
Re-running /pr-opened <PR#> after first invocation:
subStatus already pr_review_requested and prNumber matches → no-op confirmation.prNumber differs → echo "Already linked to PR #. Refusing to re-link." (use /unassign if you really need to start over with a different PR.)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.