← ClaudeAtlas

sync-open-mrslisted

Use when every open MR or PR should be brought current with the default branch in one sweep -- 'rebase all my open MRs', 'my branches are stale, sync them', batch maintenance after the default branch moved.
m4ttstack/skills · ★ 0 · AI & Automation · score 78
Install: claude install-skill m4ttstack/skills
# sync-open-mrs Batch maintenance for "all my open MRs are stale": discover every open item, rebase each onto the default branch, and offer to push and watch CI, all in one sweep. This skill is a delegator -- it owns sequencing, the user gates, and the final report; discovery, rebasing, and CI watching belong to a focused skill it calls, not reimplemented here. ## Run Outside a pipeline this verb is its own run, so the console shows it and the Stop hook covers its pane. Skip this section when `RT_RUN_DB` is set and `rt runs snapshot` shows `run.status` = `running`: you were invoked from inside that run, you inherit it, `run.current_stage` is your stage, and you close nothing at the end. Otherwise, when a surface launched this pane (the `--spawned-by` case below), start fresh: another pane's live run is not yours to resume. Launched by hand, first the Resume offer: list `~/.mattstack/runs/<repo>/` (the `--repo` value in the flags block below) for runs whose `snapshot` shows `run.status` = `running` and `run.work_type` = `sync-open-mrs` (read each with `RT_RUN_DB` pointed at its `state.db`; never raw sqlite). Any found: gate `clarify`, one sentence naming each candidate's `spawned_by`, `started_at`, and `current_stage`, then the structured-question tool with one **Resume** option per candidate (recommended for a run this session started earlier; a run another live pane owns is not yours) / **Start fresh**; **Hold**. Resume: `export RT_RUN_DB=<its state.db>`, then `rt runs s