Skip to content
Back to skills

Batch Merge Prs

ASecurity

Merge N open PRs in order to the staging branch (never main): verify, fix review feedback, close linked issues, hand off the suite. Use on /batch-merge-prs.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentsbash

Works with

  • terminal

Security analysis

A100/100

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

Scanned November 24, 2026

npx -y skills add bravros/bravros --skill batch-merge-prs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Batch Merge Prs?

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

Security grade badge for Batch Merge Prs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bravros-batch-merge-prs/badge)](https://www.skillsdirectory.com/skills/bravros-batch-merge-prs)

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: batch-merge-prs
core: true
description: "Merge N open PRs in order to the staging branch (never main): verify, fix review feedback, close linked issues, hand off the suite. Use on /batch-merge-prs."
---

# batch-merge-prs

Read [briefing.md](references/briefing.md) on demand for detailed context and instructions.

INTENT: take N open PRs from open → verified → merged on the staging branch → linked issue/backlog closed per merge → full suite handed to operator. Staging = `bravros config get staging_branch`. Run from repo root.

## Hard constraints

- **Never merge or push to `main`.** Production ships via operator's token-gated `/promote`.
- **Guard seam:** executable `.bravros/guards/pre-merge.sh`, if present, runs before each merge; non-zero exit parks that PR for human review.
- **Live-suite safety:** server-side merges only (`gh pr merge`) if suite is running on tree; defer local pulls/checkouts until free.
- **No `--delete-branch` mid-batch** — heads stay recoverable until batch lands; prune after.
- `blocked` verdict is a full stop — hand to operator, never auto-merge.

## Flow

1. **Verify (parallel, read-only).** `STAGING=$(bravros config get staging_branch 2>/dev/null); STAGING=${STAGING:-homolog}; mkdir -p .claude/workflows; S=~/.agent_config/skills/batch-merge-prs/scripts/verify-prs.js; D=.claude/workflows/verify-prs.js; cmp -s "$S" "$D" || cp -f "$S" "$D"` then run `Workflow({name:'verify-prs', args:{staging_branch, bot:'claude', guards:[…], prs:[…]}})`.
   Verdicts: clean → queue · needs-changes → fix-agent per PR, re-verify · superseded → close · blocked → stop. `deep` mode on free tree only.
2. **Merge (SERIAL, ascending, one standalone call per PR).** Follow `skills/shared/merge-flow.md`. Re-check mergeability per PR. Default `--merge`. Conflict recovery & per-merge closeout: `references/merge-loop.md`.
3. **Hand off suite — never deploy.** Operator runs suite in terminal. Staging regressions post-batch belong to the batch.

## Fleet Mode

Autogenerated error-fix PRs (KPG-*/BetterStack): integration-branch flow, park rules, Linear sweep → `references/fleet-batch-verify.md`.

```bash
bash ~/.agent_config/scripts/announce.sh --force "Mesclagem em lote concluída: <N> revisões publicadas em homologação. Ramo <fragmento>, projeto <repo>." studio || true
```

Files in this skill

  • SKILL.md2.2 KB
  • references/briefing.md3 KB
  • references/fleet-batch-verify.md4.2 KB
  • references/merge-loop.md2.4 KB
  • references/verify-batch-workflow.js10.3 KB
  • scripts/verify-prs.js13.6 KB
  • skill.yaml2.8 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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