用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gittower/git-flow-next --skill takeover-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Run the full release process end-to-end - prep, tag, CI verification, Homebrew tap, WinGet verification, and website sync
Handle a small fix or maintenance task locally end-to-end — no PR, but full review gates and a confirmed local merge into main
Fully solve a small issue end-to-end — resolve, publish the PR, run two Copilot review rounds, address them, and merge when confident. Escalates to the user on anything uncertain.
基于 SOC 职业分类
正在显示 SKILL.md
| name | takeover-pr |
| description | Take over a stale PR — supersede it with requested changes applied, crediting the original author |
| argument-hint | <pr-number> |
| allowed-tools | Bash, Read, Write, Edit, Grep, Glob, mcp__github__get_pull_request, mcp__github__get_pull_request_reviews, mcp__github__get_pull_request_comments, mcp__github__create_pull_request, mcp__github__add_issue_comment, mcp__github__update_issue |
Execute the review response window policy from CONTRIBUTING.md: when a contributor has not responded to requested changes within 7 days, close their PR and land a successor PR based on their work with the requested changes applied on top — crediting them. All public actions (push, new PR, closing comment) wait for user confirmation.
/takeover-pr <pr-number>
Fetch the PR, its reviews, comments, and commits. The takeover is only legitimate if all of these hold:
REQUEST_CHANGES (or explicitly requests
changes in its body)If any condition fails, stop and report why (including the exact dates). Do not proceed on a technicality; when the situation is ambiguous (e.g., the author reacted with an emoji, or pushed to a different branch), surface it to the user instead of deciding alone.
git fetch origin pull/<number>/head:takeover/pr-<number>
git checkout main && git pull
git worktree add -b feature/<slug> ../git-flow-next.worktrees/<slug> main
cd ../git-flow-next.worktrees/<slug>
Derive <slug> from the linked issue or PR title, following the usual
branch naming; the worktree uses the sibling-root convention (see
DEV_WORKFLOW.md §3). Then bring in the
contributor's commits:
git merge or git rebase their commits onto the new
branch unchanged — original authorship is preserved automaticallyCo-authored-by: <name> <email> trailers to
every commit that contains their work. Get name/email from
git log --format='%an <%ae>' on their commitsUse the review-feedback machinery rather than improvising:
/address-review does (read
.claude/skills/address-review/SKILL.md, steps 4–6): verdict + severity
per comment, written to .ai/pr-<number>/review-plan-<sha>.mdgo build ./... and go test ./...Run /code-review (read the skill) on the new branch vs main. Fix any
must-fix findings before proceeding.
Prepare, but do not execute:
/pr-summary format), including a
credit paragraph: This PR supersedes #<number> by @<author>, whose commits are included <unchanged | with Co-authored-by attribution>. It adds the changes requested in review. plus Closes #<issue> for the
underlying issuePresent to the user:
git log --oneline main..HEAD) showing
preserved authorshipAsk: "Push, open the successor PR, and close the original?"
After confirmation:
git push -u, e.g. to main):
git push origin feature/<slug>:refs/heads/feature/<slug>
git branch --set-upstream-to=origin/feature/<slug> feature/<slug>
/pr-summary Validate Format
checklist, then create the PR (mcp__github__create_pull_request)mcp__github__add_issue_comment), then close it:
gh pr close <number>