用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Morrison-Lab/ai-config --skill pr-on-claim命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | pr-on-claim |
| description | Open draft PR on claiming issue. |
| user-invocable | true |
| allowed-tools | ["Bash"] |
Operationalizes the strong form of the claim workflow: branch → empty commit → draft PR, before writing any code. An open PR is the strongest "in-flight" signal that work is happening on an issue.
/pr-on-claim <issue#> [title-override]
Arguments:
<issue#> (required): GitHub issue number to claim and open a PR for[title-override] (optional): Override the PR title (defaults to issue title)origin/main and check out a clean branch: feat/<slug> or fix/<slug> (inferred from issue title)"start: <issue title> (closes #<N>)"-u origin HEAD"Closes #<N>\n\nWIP — opened up front to claim the issue; implementing now."disclose-agent-authorship).
\n here is notation for a real newline, as in step 4 --- inside a bash double-quoted string those two characters stay two characters, so pr-on-claim.sh writes the body with actual line breaks: "Claude Code CLI (local session) is working on this — please hold off until I'm done.\n\n_Posted by Claude Code (AI agent) --- not written by a human._"A draft PR doesn't trigger @claude review bot, so no review round is spent on an empty or half-finished diff.
When implementation is complete and checks pass, mark ready-for-review (gh pr ready <N>), then request the external reviewer in the same stride.
Opening a PR or marking a draft ready can trigger the repo's own review workflow, but that does not summon Copilot automatically --- unless the repo's own ruleset does (see below).
If Copilot is a configured reviewer, request it immediately after gh pr create for a non-draft PR, or immediately after gh pr ready for a draft PR --- the REQUEST_COPILOT_REVIEW operation token (tool-mappings.md):
gh api -X POST "repos/<owner>/<repo>/pulls/<N>/requested_reviewers" \
-f 'reviewers[]=copilot-pull-request-reviewer[bot]' # REQUEST_COPILOT_REVIEW
gh pr view <N> --json reviewRequests,reviews
gh pr checks <N>
In a remote/web session without gh, use mcp__github__request_copilot_review instead.
Some repos schedule Copilot automatically via a copilot_code_review ruleset rule (review_on_push: true, optionally review_draft_pull_requests: true), which re-requests Copilot on every push --- see pr-on-claim for how to read that off a repo's rulesets, and memories/gh-cli.md for the case record.
Request explicitly anyway when you can't tell whether that applies; a redundant request costs nothing, and skipping it on a repo without the ruleset leaves Copilot unrequested.
Verify the request landed before writing a status report: the POST response should include the reviewer, then a fresh read should show either a pending request or a new review/check from that reviewer on the current head. If the request disappears with no current-head review, report that blocker and start the fallback; do not write "review owed" as a status item.
gh pr ready <N>)@shared/workflow/pr-on-claim.md — policy documentation@shared/workflow/claim-pr.md — claim-only (no PR)/ardi — review iteration loop/gi — grab issue (includes PR-on-claim)/st — start task (includes PR-on-claim)