← ClaudeAtlas

merge-trainlisted

Parallel cross-repo quality+merge sweep. One Task agent per repo in an isolated worktree runs /bs:quality --merge, auto-merges if green, post-merge cleanup, consolidated summary. Honors the never-skip-pre-existing-broken-CI rule.
buildproven/claude-kit · ★ 0 · AI & Automation · score 65
Install: claude install-skill buildproven/claude-kit
# /bs:merge-train — Parallel Cross-Repo Merge Sweep **Goal**: Turn the ad-hoc "check status, run quality, merge PRs across 5+ repos" sweep into a single command. Mornings become "what shipped overnight" instead of "what needs shipping today." > **Scaling hint**: Keep the sweep deliberately small (at most 4 concurrent workers) until the operator has a cross-repo concurrency and usage budget. Resume a deferred batch in a fresh session rather than growing one long-lived parent context. Before dispatch, acquire one `merge-train` admission through `scripts/autonomous-loop-runtime.js`, passing `--owner-pid "$$"` from its long-lived Bash launcher. The operator-scoped gate allows at most two autonomous loops across repositories and rejects a start when the configured Claude 5h or 7d utilization reaches its threshold. Each worker must be a fresh, non-persistent process with an explicit repo/PR/manifest handoff; do not fork or resume the train's transcript into a worker. ## Inputs - `--repos a,b,c` — limit to named repos (default: all repos under `--repos-root`, or `$BS_MERGE_TRAIN_ROOTS` if set, with open PRs) - `--repos-root a,b,c` — colon- or comma-separated project roots to scan for repos (default: `$BS_MERGE_TRAIN_ROOTS`, falling back to `~/Projects/{products,internal,personal}` if unset — that fallback is this overlay's own convention, not a kit requirement) - `--dry-run` — status report only, no merges - `--max-diff <N>` — auto-merge ceiling in changed lines (default 50). L