← スキル一覧に戻る

handoff-progress-pr
by graysurf
codex-kit tracks Codex CLI setup to keep workflows consistent across machines.
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: handoff-progress-pr description: Merge and close a progress planning PR created by create-progress-pr, patch its PR body Progress link to point to the base branch so it survives branch deletion, and kick off implementation work by creating feature PRs that reference the planning PR and progress file. Use when a progress plan PR is approved and you are ready to start implementation.
Handoff Progress PR
Contract
Prereqs:
- Run inside the target git repo.
gitandghavailable onPATH, andgh auth statussucceeds.- Planning PR body contains a
## Progresssection with adocs/progress/...link (preferred), or you pass--progress-fileexplicitly.
Inputs:
- Planning PR number (or current-branch PR).
- Optional: progress file path (when PR body is missing/ambiguous).
- Optional: merge/cleanup flags (keep branch, skip checks, patch-only).
Outputs:
- Planning PR merged and closed; remote head branch deleted by default (best-effort via
git push origin --delete, unless--keep-branch). - Planning PR body
## Progresslink patched to point to the base branch (survives branch deletion). - Implementation guidance: create one or more feature PRs that link back to the planning PR and the progress file.
Exit codes:
0: success- non-zero: missing progress link/file, merge blocked, or
git/ghcommand failures
Failure modes:
- Planning PR is draft (must mark ready first).
- Required checks failing or PR not mergeable.
- Multiple
docs/progress/...links in the PR body (must choose one via--progress-file). - Progress link breaks after merge because it still points to the deleted head branch (this skill prevents that).
Setup
- Ensure
gh auth statussucceeds. - Ensure the working tree is clean if you plan to merge (stash/commit unrelated work first).
Key rules
Progress links must survive branch deletion
If the planning PR is merged and the head branch is deleted, any link like:
https://github.com/<owner>/<repo>/blob/<head-branch>/docs/progress/...
will break.
After merge, patch the planning PR body ## Progress link to point to the base branch:
https://github.com/<owner>/<repo>/blob/<base-branch>/docs/progress/...
Implementation PRs must reference the planning PR
When creating feature PRs for implementation:
- Add a clear link back to the planning PR (for traceability).
- Keep linking consistent across multiple implementation PRs (same planning PR + same progress file).
Recommended pattern for feature PR bodies:
- Keep
## Progressas-is (link to the progress file). - Add
## Planning PR:- #<number>
Workflow
- Identify the planning PR number
- Prefer current branch PR:
gh pr view --json number -q .number
- Prefer current branch PR:
- Resolve the progress file path
- Prefer parsing the planning PR body
## Progresslink for adocs/progress/...path - If missing/ambiguous: pass
--progress-file docs/progress/<file>.md
- Prefer parsing the planning PR body
- Merge the planning PR (docs-only)
- Ensure checks pass:
gh pr checks <pr>(optional but recommended) - If draft, mark ready:
gh pr ready <pr> - Merge (merge commit):
gh pr merge <pr> --merge(add--yeswhen available)
- Best-effort delete the remote head branch (unless
--keep-branch):git push origin --delete <headRefName>
- Ensure checks pass:
- Patch the planning PR body Progress link to base branch
- Ensure the
## Progresslink points toblob/<base-branch>/docs/progress/...
- Ensure the
- Kick off implementation PR(s)
- Use
create-feature-prto implement and open one or more feature PRs. - In each implementation PR body:
- Link the progress file (full GitHub blob URL).
- Add a
## Planning PRlink back to this planning PR.
- In the first implementation PR, update the progress file Links block to include the planning PR for long-term traceability:
- Add:
- Planning PR: <planning PR url>(if missing)
- Add:
- Use
Optional helper script
- Use
$CODEX_HOME/skills/workflows/pr/progress/handoff-progress-pr/scripts/handoff_progress_pr.shto merge and patch deterministically (best-effort remote delete; local cleanup is warning-only):bash $CODEX_HOME/skills/workflows/pr/progress/handoff-progress-pr/scripts/handoff_progress_pr.sh --pr <number>- If already merged but links are broken:
--patch-only
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です