Skip to content
Back to skills

Promote

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agentsgitapi

Works with

  • terminal
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add bravros/bravros --skill promote --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Promote?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Promote
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bravros-promote/badge)](https://www.skillsdirectory.com/skills/bravros-promote)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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`. If false, instruct operator to run `bravros promote unlock` in a non-Claude-Code terminal.
   - Run `git fetch origin main --quiet` and snapshot pre-merge main tip:
     `git update-ref refs/bravros/promote-base "$(git rev-parse origin/main)"`.
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. Expired → ask for ONE 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.

Files in this skill

  • SKILL.md1.5 KB
  • references/briefing.md3.2 KB
  • references/close-out.md6 KB
  • skill.yaml4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.