ワンクリックで
pr
Use when code is ready to ship — opens a PR, waits for CI to pass, fixes failures, addresses review comments, and loops until fully green
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when code is ready to ship — opens a PR, waits for CI to pass, fixes failures, addresses review comments, and loops until fully green
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when the user wants to do a QA session or report multiple bugs — interactive session where bugs are reported conversationally and agents fix them in parallel
Use when executing implementation plans with independent tasks — orchestration pattern for worktree isolation, TDD discipline, and two-stage review. Referenced by execute-plan, fixit, and bugbash.
Use when the user reports a bug or issue that can be fixed without blocking their current work — backgrounds an agent in a worktree to fix and merge back without breaking stride
Use after implementing changes in an OpenSpec project to review implementation against the active change's deltas — auto-fixes confident issues, parks questions for the user
Install the anutron (claude-skills) kit into the current project — symlinks or copies skills, registers hooks, compiles CLAUDE.md from snippets.
Uninstall the anutron (claude-skills) kit from the current project — reverses everything /anutron-install did.
| name | pr |
| description | Use when code is ready to ship — opens a PR, waits for CI to pass, fixes failures, addresses review comments, and loops until fully green |
| tags | ["pr"] |
git branch --show-current 2>/dev/null || echo '(not in a git repo)'git status --short 2>/dev/null || echo '(not in a git repo)'Open a PR for the current branch, then loop until CI is fully green and all review comments are addressed. Do not return until the PR is in a mergeable, green state.
If a PR already exists for this branch, skip straight to Step 3 -- even if there are no local changes or commits. Your job is to get the PR to a green, mergeable state, not just to open it. Never abort when a PR exists.
Determine the repository owner and name from git remote get-url origin. Use mcp__plugin_github_github__list_pull_requests (with head set to <owner>:<branch>, state: "open") to check if a PR already exists. If one exists, note the PR number and skip to Step 3.
If there are uncommitted changes (check git status), stage and commit them with an appropriate message before proceeding. Do this before anything else -- uncommitted changes are work the user wants shipped.
Abort condition (only when NO PR exists): After committing any uncommitted changes, if there are STILL no commits ahead of the default branch, stop and tell the user: "Nothing to ship -- no PR exists and there are no commits on this branch."
Push the current branch to origin. Use git push -u origin HEAD if no upstream is set. If there is nothing new to push, that is fine -- continue to Step 3.
Run git diff origin/HEAD...HEAD and git log origin/HEAD..HEAD --oneline to understand what changed. Classify the change complexity:
For each modified file, read the full file (not just the diff hunk) to understand the surrounding code.
For deleted or removed code: This is the most important case -- reviewers need to understand why the code should not exist. For each deletion:
For bug fixes: Trace the interaction between components that caused the bug. Read the files that call into or are called by the changed code. Identify the specific mechanism of failure (e.g., a race condition, a duplicated side effect, an incorrect assumption).
Scan the conversation history for context that should flow into the PR description:
Use mcp__plugin_github_github__create_pull_request. Keep the title under 70 characters.
Scale the body to match complexity:
Simple changes: title + 1-2 bullet summary.
Medium changes:
## Summary
- [What changed and why]
## Test plan
- [How to verify]
Complex changes (bug fixes, cross-file interactions, deletions):
## Summary
- [What changed]
## Root cause
[Explain the interaction between components that caused the issue.
Include brief code references -- e.g., "create_transaction.rb:34 already
calls CreateTransactionEvent, so the explicit call in reverse_transaction.rb
created a duplicate." Show the mechanism, not just the symptom.]
## Production impact
[Only if the conversation contains impact data -- e.g., "1,208 duplicate
events in the last 30 days." Omit this section if no data is available.]
## Test plan
- [How to verify]
[Link to triggering CI failure, Jira ticket, or Sentry error if available]
Print the PR URL.
Repeat the following until CI is fully green and there are no unresolved review comments:
mcp__plugin_github_github__pull_request_read to see the current state of all checks.git push.mcp__plugin_github_github__pull_request_read to fetch reviews and comments.After pushing fixes or addressing comments, loop back to wait for CI again. Continue until CI is fully green and no unresolved comments remain.
Important: If you are stuck in a loop (same failure 3+ times), stop and report the situation to the user rather than retrying the same fix.
When CI is green and all comments are addressed: