بنقرة واحدة
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