Fast `homolog → main` merge for committed, pushed work. Trigger — `/promote`. Requires out-of-band token minted via `bravros promote unlock` from a separate terminal — Claude cannot mint it.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Promote?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bravros-promote)
---
name: promote
core: true
description: Fast `homolog → main` merge for committed, pushed work. Trigger — `/promote`. Requires out-of-band token minted via `bravros promote unlock` from a separate terminal — Claude cannot mint it.
---
# promote
> **CRITICAL:** Read [briefing.md](references/briefing.md) on demand for detailed context and instructions.
INTENT: Promote accumulated `homolog` work to production (`homolog → main`). Calm-day merges only (`/hotfix` for incidents, `/finish` for feature completion).
## Execution Summary
1. **Pre-flight**:
- Verify on `homolog`, working tree clean, up to date with remote.
- Check authority token via `bravros promote status --field present` — **advisory only**: inform the operator if it is missing (`bravros promote unlock` in a non-Claude-Code terminal) but keep going; the token is only *required* at the TTL check right before the merge.
- Run `git fetch origin main --quiet` and snapshot pre-merge main tip:
`MAIN_TIP=$(git rev-parse --verify --quiet origin/main)`; empty → stop and report (missing `origin/main`); otherwise `git update-ref refs/bravros/promote-base "$MAIN_TIP"`.
2. **PR & Merge** — PR and CI first, token check last:
- Create PR from `"$PROMOTE_BASE..homolog"`; wait until `mergeStateStatus` is `CLEAN`.
- **TTL check right before the merge**: `bravros promote status --field ttl_remaining`. The token is 5-minute; PR creation + CI + a review has burnt it in 3 sessions. Missing or expired → this is where the token is **required**: ask for ONE mint/re-mint (`bravros promote unlock` in a separate terminal), wait, never loop.
- Acquire merge lock: `bravros merge-lock acquire --timeout 60s --ttl 10m --meta reason=promote --meta pr="$PR_NUMBER"`.
- Merge PR: `gh pr merge 1234 --merge > /tmp/bravros-merge-1234.txt 2>&1` — substitute the **literal** PR number (the police hook reads raw command text; a `$VAR` there is unreadable → blocked), no `cd … &&`, no `| tail` — then verify `MERGED` state. The `bravros police` hook honours the promote token — **no second token** (`police unlock`) is needed; a `✋🏽 Police Block` here names its reason (usually expired token or `UNKNOWN` mergeability) — relay it in one line, never `gh api`/raw HTTP.
3. **Sync & Close-out**:
- Execute close-out procedure detailed in [`references/close-out.md`](references/close-out.md).
- Fast-forward `homolog` from `main`, push, release lock (`bravros merge-lock release`).
- Close shipped plans, delete snapshot ref, revoke token (`bravros promote revoke`), and send PT-BR announce.