一键导入
branch-close
Close a branch — final validation, PR creation, merge, archive plan file
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Close a branch — final validation, PR creation, merge, archive plan file
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Initialize a new branch with worktree, BRANCH.md from template, and environment setup
Run a source adapter against fixture data and verify the extracted output
Run lot gate checks — typecheck, lint, and scoped tests for the current lot
Update rules and skills after a branch merges — absorb learnings, refine patterns
Verify modified files against branch allowed/forbidden/conditional paths
Bootstrap a new source-feasibility spike in packages/radar-sources/src/sources/_spikes/
| name | branch-close |
| description | Close a branch — final validation, PR creation, merge, archive plan file |
| paths | plan/**,PLAN.md |
| allowed-tools | Read Write Bash Edit Glob Grep |
Workflow skill to close a branch through final validation, PR creation, merge, and archival of the plan file.
Verify all lots complete
plan/NN-BRANCH_<slug>.md and confirm all lot checkboxes are [x] (except the last lot about to run).## Feedback Loop items are acknowledged / clarification / cancelled / refuse — no blocked / attention remaining.scope-check skill on the full diff to verify no unauthorized scope drift.Run final gate
make typecheck ENV=<branch-env>
make lint ENV=<branch-env>
make test ENV=test-<slug>
make build ENV=<branch-env>
make test-e2e API_PORT=<port> UI_PORT=<port> MAILDEV_UI_PORT=<port> ENV=e2e-<slug>
Push branch and open PR
git push -u origin <type>/<slug>
gh pr create --title "<branch title>" --body "$(cat plan/NN-BRANCH_<slug>.md)"
PR body is the exact text of the branch plan (source of truth).
Verify CI passes
gh run list --branch <type>/<slug> --limit 5
Resolve failures before merging.
Update PLAN.md
Mark the branch as merged in §1 and §3.
Merge
gh pr merge <pr-number> --merge --no-delete-branch
ONLY merge commit. NO squash, NO rebase merge. The branch is preserved.
Archive the plan file
git mv plan/NN-BRANCH_<slug>.md plan/done/NN-BRANCH_<slug>.md
make commit MSG="chore: archive plan file for <type>/<slug>"
git push origin main