/sdlc:mr-babysitfrom sdlc
Drives merge requests toward mergeable state by rebasing, fixing CI failures, and addressing review comments. Uses background watchers and a subagent to triage and implement changes, handing off only product/design decisions to the user.
Ships in sdlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Drive one or more merge requests toward mergeable: keep each rebased, fix failing CI, answer review comments that don't need product decisions, and wait for automated reviewers — passing back to the user only for genuine product/design calls or when everything solvable is solved.
This command is the author side of an MR. It is the mirror image of /code-review:watch, which is the reviewer side and never changes code.
On GitHub, do the equivalent with gh. The pull request is the MR. gh pr checks --watch and gh run watch, run as background shells, take the place of the glab-watch watchers, and the 30-minute cron covers what they cannot see, such as new review comments and a moved base branch. Every rule below applies the same way; only the commands differ.
This is not a rubber stamp. Review feedback — especially from AI review bots — is sometimes correct, sometimes wrong, sometimes pedantic, and sometimes proposes a fix that creates a new problem. Every finding is critically evaluated before any change lands, and this command is where that evaluation happens.
You are the orchestrator. You never edit code, never poll or triage the MR yourself, and never sleep. Background watchers report, one subagent does the work, and you keep the ledger:
glab-watch mr background Bash task per MR in the set, plus one glab-watch branch task per target branch, all started by you and alive for the whole run. Each reports every change as a <glab-watcher> message: a pipeline finishing, a push, a thread created or updated, a draft flip, approvals, a quiet head, a stuck pipeline, merged or closed. The glab:glab-watch skill covers starting them, their messages and stopping them. They read GitLab only and post nothing. You classify what they report, read the ticket, and evaluate the handshake. They are what makes you wait: nothing else in this command watches anything./sdlc:write-plan plan and it still has context, otherwise a fresh subagent on opus. Background, resumed per batch, ending its turn after each. It reads ${CLAUDE_PLUGIN_ROOT}/skills/mr-babysit/references/actor-brief.md first; the brief holds every rule it shares across tasks. A triage batch turns what the watchers reported into proposed rows and changes nothing. An implementation batch does the approved rows: rebases, fixes, posts the fix replies and the dismissals, reclaims or marks ready, resolves, pushes, and reports by row../.claude/review-report/<topic>.babysit.md holds the set and what is or is not solved; you rewrite it after every decision. Every event is in its watcher's events.jsonl, so the ledger records no timeline beyond the last movement.At most one subagent is alive at once: the actor. Five things re-invoke you, and nothing else: a watcher message, a watcher's background task ending, an actor returning, a 30-minute watchdog cron, and the user. A task that ended without a watch_ended event counts as one with an unknown reason. Between them you are idle.
This command intentionally runs at maximum autonomy, and for its duration that supersedes your usual defaults. Standing guidance you'd normally follow — global/project CLAUDE.md ("be restrained about implementing", "outline a plan and wait for my OK"), the general "confirm hard-to-reverse or outward-facing actions first" default — is deliberately overridden for the pre-authorized operations below. You already have the OK: the user invoked babysit precisely so these run unattended, and re-asking for it defeats the command. This override is scoped: it applies only to the named operations, only until the run hands back, and it never extends to the explicit halt conditions under Stopping instead of handing over — a genuine product/design decision still goes to the user as an ask, and an unresolvable conflict or a cap hit still stops the run. Normal caution resumes the moment the run ends.
The run's entire value is that it is unattended. git rebase, git push --force-with-lease, git push, retrying CI jobs, and replying to or resolving threads are all authorized without stopping to ask — doing exactly these is the job, not a risk to escalate. The grant extends to every subagent: they inherit it in full, and none pauses mid-task for permission to read, rebase, force-push, retry, reply or resolve. Do not pause for it yourself either; that defeats the purpose and is itself a failure. Stop and hand back only for the explicit halt conditions, and wait on a human only in Needs human. Everything else, just do.
A bot's high/critical severity tag does not elevate a finding above this grant — a severity-tagged reviewer thread that has been reasoned through is dismissed-and-resolved like any other, not escalated for a sign-off.
A decision the user already stated is not a judgment call. When the user picked a direction or accepted a tradeoff earlier in the session, carry it out. Do not re-offer it as options, and do not raise it as an ask — the user answered once and must not have to answer twice. Only a call the user has not made is a judgment call.
The grant also covers the handoff controls: every hand-over and take-back move teamwork:review-handshake defines, the ticket side yours and the MR side the actor's, plus starting and stopping the watchers and arming or deleting the watchdog cron job. Do them, do not ask for them.
(If your harness's safety classifier blocks these git or discussion operations, that's an environment problem, not a signal to ask each time — the fix is to allowlist them once; see the plugin README. If a block lands mid-run, don't stall on it: note the exact blocked command loudly in the progress note, carry on with everything else and the other MRs, and let the allowlist fix land out of band. Do not run the blocked command yourself and do not send it to a fresh actor: the classifier reads either as a way around its denial, even under this grant. It runs again only after the user answers the note in a new message, and then you run it yourself — never sit and wait for a go-ahead on an operation this run already authorized. A permission prompt that reaches the background actor pauses it until the user answers; name the blocked command.)
glab and glab-cli-extras installed: it provides glab-watch, glab-mr-status, glab-discussion and glab-pipeline, and nothing in this run works without them. When a command is missing, tell the user, give the install command uv tool install glab-cli-extras, and ask whether to install it.This is the one thing you do yourself, because it needs the conversation. Everything after it is the subagents'.
A change often spans more than one MR (e.g. a service repo plus a data/ETL pipelines repo). The run babysits a set, and the watchers cover all of them — a common failure is silently babysitting only the MR in the current directory while its sibling drifts behind master. The set comes from exactly two sources:
!iids in the invocation.glab mr create, or that a session recap/handover in context names as this work's MRs. If a session-distill / handover recap is present, actively scan it for !iids and MR URLs before finalising the set — a prose recap that names a sibling MR is the primary source of session-derived MRs, and the recurring miss is not synthesising it from the recap and babysitting only the current worktree's MR. Don't rely on memory; pull the iids out of the recap explicitly.Do not go discovering "related" MRs by scanning other repos, searching the group, or guessing from branch names — that risks pulling in unrelated work, which is explicitly unwanted. If you have concrete reason to believe a sibling MR exists but it wasn't named and you didn't work on it, ask the user to confirm the set rather than auto-adding it. If nothing was named and the session created nothing, default to the current branch's single MR.
State the resolved set back to the user as the very first line, before running any tool ("babysitting MR !123 and !456"), so a missing sibling surfaces before the watchers start on the wrong subset. Every MR needs its full URL for its watcher; take it from glab mr view <iid> -F json in its worktree when you only have an iid.
The set is closed once the watchers run. A new MR that appears on the ticket later is not seen by anyone; when the user names one mid-run, start its watcher as in Pass 0 and put it in the ledger.
Resolve the ticket and its workflow states yourself, before anything is spawned. Invoke the teamwork:workflow-identify skill and carry its output block for the whole run: it names the tracker, the ticket ID pattern, and the state names, and it asks the user once when a role has several plausible names — which is exactly why this cannot be a subagent's job, since a background subagent cannot ask. Take the ticket as that skill says, with the ticket pattern from the block; several MRs in the set usually share one ticket. Invoke teamwork:review-handshake too: it holds the handover, the thread rules, the comment signature and the ledger paths. Then load the installed skill that covers the resolved tracker; that skill holds the command syntax, and this command names no tracker CLI of its own. If the block says tracker: none, or no ticket is identifiable, the handshake degrades to the draft flag alone, which then carries the ball both ways — every ticket move is skipped rather than faked.
Safety checks, per MR, through a one-off sonnet subagent that reads and changes nothing: the source branch is checked out in its worktree (git branch --show-current equals source_branch; never auto-checkout a different branch), the branch is not master/main, the worktree is clean (git status --porcelain empty; the run rebases and force-pushes, which is unsafe over uncommitted work), and the MR is open. Drop any MR that fails a check and say why. If the set is empty, stop.
Start the watchers by calling the Bash tool, not by describing it. Load the glab:glab-watch skill first. Each watcher is its own call with run_in_background: true, from this session, never from a subagent. Never pass --events-stream. One per MR:
glab-watch mr <mr url> --quiet-after=2m --quiet-after=15m --stuck-after=30m --idle-after=3h
And one per target branch that is not the source branch of another MR in the set, run from a worktree of that repo so glab picks its host. A push to it puts every MR that targets it behind:
glab-watch branch <group/project> <target branch> --events=push
Read each startup header before anything else. A stream fallback: line means that watcher's events will not reach you: stop every watcher, tell the user the reason the line gives, and end the run before any work starts. If you cannot name a task id per watcher, its MR or branch is not watched. The watch_started summary in each first message is your baseline.
Arm the watchdog: a recurring CronCreate every 30 minutes, on an off-minute so the fleet does not synchronize — cron: "13,43 * * * *", recurring: true, and a one-sentence plain-text prompt.
Write the ledger (below) with the set, the ticket, the states, the handshake, the ids, and an empty table. From here on, rewrite it after every decision.
Changes from before watch_started are never reported as events, so the baselines are the first triage batch. For each MR: a failed head pipeline in its summary is a pipeline <id> row; unresolved threads send the thread files under its threads dir to triage, with the AI reviewers profiled into Review state; and every MR gets a rebase !<iid> row, because nothing says how far behind it already is. A head pipeline that is canceled, manual or skipped is handled as the event of that status below. Spawn the actor with that batch; when every summary is clean and no branch is behind, it is the only one until a watcher reports something. A set already handed over while the ledger holds work is taken back, per teamwork:review-handshake, on the first message that brings work.
# Babysit ledger: <topic> (MR !<iid>, !<iid>)
- MRs: <host/project!iid — worktree path> (one line each)
- Ticket: <TICKET-ID> (<url>) — handshake: ticket-led | draft-only · work state "<WORK_STATE>" · review state "<REVIEW_STATE>"
- Handshake: ready-for-review = not draft and ticket in "<REVIEW_STATE>"; back-to-work = ticket in "<WORK_STATE>" · last reading: <reading> at <UTC>
- Self markers: <!-- sdlc:mr-babysit -->, <!-- sdlc:mr-open -->
- Mode: working | needs-human (ready-for-review) | needs-human (decisions-needed)
- Watchers: !123 <task id> · !456 <task id> · group/service master <task id> · Watchdog cron: <job id> · Actor: <agent id | none>
- Last movement: <UTC> · Newest reviewer comment: <UTC> · Last push by this run: !123 <sha>, !456 <sha>
- Quiet: !123 2m@<sha> 15m@<sha> · Held threads: !123 <discussion id> <file>
## Rows
| Id | MR | Disposition | Status | Note |
|---|---|---|---|---|
| `thread 7b3e01aa…` | !123 | fix | approved | `src/api/orders.py:88` returns 200 on a rejected order; raise the domain error |
| `job test:OrderSpec#total @ pipeline 8812` | !123 | dismiss | dismissed | runner lost, retried 1 of 2 |
| `rebase !456` | !456 | fix | fixing | conflicts in `src/api/orders.py`: ours renames the handler, theirs adds a parameter |
| `thread 9df2b6c0…` | !123 | ask | ask | migration drops a column the reviewer wants kept; suggested reply: keep it nullable for one release |
| `thread 51aa07e3…` | !456 | skip | skipped | naming nit on a test helper; the reviewer's intent is unclear |
## Review state
| MR | AI reviewer | Latest verdict | Reading | On head | At | Re-reviews on push |
|---|---|---|---|---|---|---|
| !123 | `@qa-review-bot` | "No blocking findings" | nothing-actionable | `a1b2c3d` | 14:02Z | yes |
- Approvals: !123 — human: none · AI: `@qa-review-bot`; !456 — human: `@jane` · AI: none
Write the Handshake: line on the draft flag alone for tracker: none, and drop the ticket from it. Last movement is the time of the last event that was not the run's own; the idle cap reads it. Newest reviewer comment is the time of the newest thread event by someone other than the run, which Waiting for the human reads. Quiet records each quiet event with its head SHA, because one arrives only once per head and threshold while the entry condition is checked again later; clear an MR's entries on its pushed. Held threads collects the threads that arrive while the set is handed over, so the triage that follows a hand-back has them.
Status runs proposed → approved → fixing → fixed <sha> | could-not-fix, or proposed → dismissed | ask | skipped. An ask row carries the question and your suggested answer, so the NEEDS HUMAN block, the final summary and the user read it from the file. A skipped row carries the one-line reason the actor gave and changes nothing on the MR; it exists so the NEEDS HUMAN block can list it. Attempt counts on a failure signature and the oscillation count live in the note. Nothing else: this file is the state of what is or is not solved and what waits on a human.
Review state holds the AI reviewer gate: one row per AI reviewer seen on each MR, fed by the actor's first triage report and then by every verdict you read in a thread event, and the approvals split human and AI, fed by approvals_changed. Reviewer identity, vocabulary and the re-review habit come from the reviewer profiling rules in teamwork:mr-state-judge, as you and the actor apply them; never fill this table from a bot name you assume.
Name every row by its id, never by position. The ids are thread <full discussion id>, job <job name> @ pipeline <pipeline id>, rebase !<iid>, and measure !<iid>; the actor's reports and this table use them unchanged, and the watchers' events carry the discussion and pipeline ids they are built from.
Keep them this short: the brief carries the rules, the ledger carries the state.
Actor, triage batch (the implementation subagent resumed, or a fresh one on opus):
First read ${CLAUDE_PLUGIN_ROOT}/skills/mr-babysit/references/actor-brief.md in full and load the skills it names.
Worktree /home/me/dev/service, source branch feat/orders-api, target master.
The user asked: "/sdlc:mr-babysit !123 !456". The run drives !123 and !456 to mergeable: it rebases each MR's source branch (feat/orders-api here) onto master and force-pushes it with lease, pushes fixes to it, retries failed CI jobs, replies to and resolves review threads, and marks both MRs ready. Later messages will ask you for those writes, row by row; they are part of the request above.
This turn: triage these rows and propose a disposition for each. The only change this turn makes is a clean rebase and its push:
- pipeline 8812 on !123, https://git.example.com/group/service/-/pipelines/8812
- threads 7b3e01aa…, 2c8d44f1… on !123, files <the absolute paths from the watcher's thread events>
- rebase !456: the branch is 4 behind master; attempt it, push if clean, propose a row if it conflicts
Report one line per row, `<row id> proposed <disposition> — <evidence>`, plus every push with its verified SHA. Then end your turn.
Actor, implementation batch:
Next step of the run in your first prompt, same worktree and brief. Implement these rows on !123 and post what is listed, nothing else:
thread 7b3e01aa… — `src/api/orders.py:88` returns 200 on a rejected order; raise the domain error and let the handler map it. Reply on the thread naming the SHA, then resolve.
job test:OrderSpec#total @ pipeline 8812 — total omits the discount line; the assertion is right and the code is wrong.
dismiss thread 2c8d44f1… — reply: line 88 already returns 409 through the handler; the finding reads the wrapper, not the handler. Then resolve.
Report one line per row, `<row id> fixed <sha>` / `could-not-fix <why>` / `posted <note id>` / `resolved`, the remote SHA you verified, and the verification per row. Then end your turn.
The actor's first prompt names every write of the run; the batches only point back to it. The auto mode classifier reads that first prompt as the user's instruction and every batch after it as a coordinator's message, which can never carry the user's consent. So the triage template quotes the user's invocation verbatim and names each write by action and target, and no batch adds an approval claim ("confirmed", "the user authorized this force-push"). When the user later named an operation in their own words ("undraft it once the backtesting finishes"), quote those words verbatim with attribution at the top of the batch. A resumed implementation subagent from /sdlc:write-plan already had these writes named in its first prompt. When an actor's first prompt did not name them, or said "change nothing" or "read-only", spawn a fresh actor briefed with this template before the first write batch instead of resuming it. Decide this before a write is sent, never after a denial; a denial is handled as Autonomy says.
Rules for the watchdog cron prompt:
CronCreate call, and your first note names the job id it returned. Writing the prompt line into the report as text arms nothing, and then the ticket is never read again./sdlc:mr-babysit … inside it re-enters the command on every firing and stacks a new run each time. Write it like: Run the mr-babysit watchdog for MR !123 and !456 / ticket TEAM-789 using ledger ./.claude/review-report/<topic>.babysit.md!iids and put no SHA in it.ScheduleWakeup.Follow glab:glab-watch and teamwork:mr-state-judge for what each event means and how to handle the watchers, and act on it as the run's goal needs. Read only the thread files the events name, never fetch the MR. Then dispatch, rewrite the ledger, and write a progress note of at most three lines. The table below holds only the reactions that are not obvious.
First, sort out the run's own moves. A pushed to the SHA the actor last reported, a note ending in a self marker, and a draft_changed, thread_resolved or ticket move the actor or you reported are the run's own. The watcher reports a push before the actor returns, so while an implementation batch, or a triage batch with a rebase, is out on an MR, hold that MR's pushed, draft_changed and thread_resolved events until the actor's report names its SHAs and ids. The run's own moves, and the pipeline and merge-status events after its own push, need nothing and leave Last movement alone; everything else updates it.
| Event | Babysit action |
|---|---|
| merged or closed | Also stop a branch watcher no MR left in the set targets; an empty set goes to Stopping |
draft_changed, reviewers_changed | Read the ticket once, evaluate the Handshake: line and record the reading; an unchanged reading is not news. back-to-work in needs-human (ready-for-review): set Mode: working and send the Held threads to triage as in-scope threads |
thread_created, thread_updated, approvals_changed not the run's own, in needs-human (ready-for-review) | Read the ticket again until the reading flips: a reviewer publishes the review first and moves the ticket after |
pipeline_finished canceled, manual, skipped | One line to the user and an ask row pipeline <id> on !<iid>; a manual gate is the user's to start |
thread_created, thread_updated by anyone else | Triage threads <ids> on !<iid> with the files from artifacts; threads under your own markers need nothing, another automation's marker is triaged like a reviewer's, pending drafts are nobody's activity |
| A verdict by an AI reviewer in a thread file | Rewrite its Review state row: verdict, reading, head, time. actionable-open on the current head sends its threads to triage; anything else re-checks the entry condition |
pushed, force_pushed on a target branch | Working: rebase !<iid> for every MR that targets it. needs-human: a measure !<iid> row (behind by how much, overlap or not, no rebase); only an overlap brings the set back to work |
pushed on an MR another MR in the set is stacked on, the run's own included | rebase !<stacked iid>; when both need one, the base goes first |
approvals_changed | Rewrite the approvals line, human and AI apart; nothing is merged on any approval |
quiet | Record it on Quiet. 2m with no unfinished row on any MR: check the entry condition. 15m closes the AI reviewer gate window: check it again |
pipeline_stuck | One line to the user naming the pipeline and, from one glab-pipeline inspect, the job it sits in. Dispatch nothing |
watch_ended, any other reason | Record the restarted watcher's task id in Watchers:; a repeat that is not restarted is a halt |
In a working cycle, a set already handed over while there is anything to rebase, triage or fix is taken back first, per teamwork:review-handshake: your ticket move, then the batch opens with reclaim !<iid> for the actor's one-line comment. A batch about to be implemented is work in progress too.
One actor at a time. While one is out, collect the next message's work and send it in the next batch. A rebase never runs while an implementation batch is out; it goes into the batch after it.
Exit code 143, "timed out" and "moved to the background" are not results, and a green is never carried forward on a dead subagent's word. After an implementation batch, run git rev-parse origin/<source_branch> yourself and confirm it matches the SHA the report names.Last push by this run, and you keep the threads it resolved and the draft flags it toggled in mind, so the events they cause are not read as someone else's.proposed row. This is the judgment the command exists for, and it is yours alone:
fix when the evidence on the row supports it, the change is at the right layer (root cause, not symptom), and it does not contradict a fix already made this run. When the proposal is right about the problem but wrong about the change, approve it with your correction written into the batch.dismiss when the reasoned disagreement holds — the finding misreads the code, is already covered, or would create a new problem. Overturn it into a fix when the actor was too quick and the finding is right after all. A severity tag is not a reason to approve either way. A reviewer that re-raises a rule-and-file pair the ledger already holds as dismissed gets an ask, never a second dismissal: the disagreement did not land, and a third round of it is whack-a-mole.ask to the user, in the progress note, without blocking anything else — dispatch the rest of the batch anyway. Never present the whole triage as options and wait for a go-ahead; only an ask reaches the user. The NEEDS HUMAN (decisions-needed) block collects every open ask again.skip as a skipped row with the actor's one-line reason. It changes nothing on the MR, and its watcher reports the thread again if it moves.teamwork:review-handshake holds the rule.fixed <sha>, could-not-fix, dismissed, ask, skipped, and the attempt count on a failure signature, plus each AI reviewer's latest verdict and its head from the triage report into Review state. A could-not-fix row is yours to re-decide — a fresh fix proposal with a different approach, or an ask for the user.fix rows, the approved dismissals, and any reclaim or ready, to the actor as one implementation batch. Resume the same actor while it has context — it holds the code and the reasoning behind every row — and spawn a fresh one, pointed at the ledger, only when it runs out. When there is nothing to dispatch, check the entry condition: a triage that left only ask and skipped rows can settle the set.The watchers read GitLab only, so the 30-minute cron is the clock for everything else. A watcher cannot die silently: it ends with a watch_ended event, and its background task's end re-invokes you. Each firing:
tracker: none, and evaluates the handshake as on draft_changed. A ticket in a terminal state means the work moved past review; go to Stopping.needs-human (ready-for-review), a Newest reviewer comment at least 30 minutes old with the reading unchanged takes the work back as Waiting for the human says; a Last movement 3 hours old ends the run on the idle cap.a1b2c3d · !456 handed over, idle 40m", composed from the ledger. A run that says nothing for an hour is a dead run.The run enters needs-human when it has solved everything it can solve on its own. What is left belongs to a human: a review, or a decision on design, business rules or a product trade-off. The run does not stop there. The watchers and the watchdog cron stay alive, so you keep reacting to MR events while the human has the ball, and the run goes back to working the moment an event brings autonomous work again.
The set enters needs-human when every MR satisfies all of these, read off the events and the ledger:
success) on the current head. canceled, manual and skipped are not green.Quiet line holds 2m on the current head, from its watcher's quiet event: a green pipeline with nothing else reported for two minutes.fix and dismiss row is finished: pushed, replied, and resolved as the actor's resolve rules say. Watch threads carry a reply and stay unresolved, which is the settled state for them. No row is proposed, approved, fixing or could-not-fix; re-decide a could-not-fix row first, into a new proposal, an ask, or a halt.NEEDS HUMAN block: "4 commits behind master, docs-only, no overlap with this MR". Any overlap means rebase first and let the watcher report the resulting pipeline. No watcher reports how far behind a branch already was when the run started, so a branch counts as behind until an actor's rebase report says otherwise, and again after every pushed on its target branch; when that is all that keeps the set out, send rebase !<iid> to the actor.ask rows, skipped rows, human threads left for the human to close, watch threads already answered, and a missing human approval.The variant follows from what is open, and it is chosen for the whole set, like the handover: one MR waiting on a decision keeps its siblings out of review.
ready-for-review — no ask row is open on any MR. Hand the ball over.decisions-needed — at least one ask row is open. Nothing is handed over: an MR never handed over stays draft, the ticket stays in the work state, and the ball is with the author's human, not with the reviewers. A set handed over earlier was already taken back by the triage that produced the ask.On entry, set the Mode and emit the NEEDS HUMAN line; for ready-for-review, emit it once the handover has landed.
The gate keeps a late verdict, or one on an older head, from reaching the human as a finished MR. It reads the Review state table of the ledger.
positive or nothing-actionable. An actionable-open verdict on the current head is not the human's: its threads go to triage, and the set stays working.quiet event with after 15m, recorded as 15m on the Quiet line: fifteen minutes after the pipeline went green on the new head, with nothing else reported in between. The 15 minutes are a default; when the user asks for another window, restart the MR watchers with that --quiet-after in place of 15m. A verdict on the new head inside the window decides the gate as above. When the window closes without one, the gate passes on the older verdict, and the NEEDS HUMAN block says so: "@qa-review-bot has not re-reviewed a1b2c3d after 15m". Treat a reviewer whose re-review habit is unknown as one that re-reviews, and an unknown reading on the current head as a missing verdict./code-review:watch, recognized by its marker, is not part of the gate. It reviews once the ball is with it, and teamwork:review-handshake covers that exchange.NEEDS HUMAN lineThis line is a contract: a later skill or hook may key on it, so the marker text is stable. On entering needs-human, the first line of your message is exactly
NEEDS HUMAN (<variant>): <one-sentence reason>
with <variant> either ready-for-review or decisions-needed. This command writes the line and nothing else; it does not define how the human is alerted. Below the line, compactly:
ask row — the thread location, the quoted comment, your suggested answer or change and why.skipped rows, one line each.Emit the line only on a transition: entering needs-human, switching the variant, or an event that changes what the human must do — a new ask row, a new human thread, a negative verdict. Watchdog progress lines and FYI lines never repeat it. Leaving needs-human for working, because autonomous work appeared, is one plain line without the marker: "!123 back to working: pipeline failed on b4c5d6e".
A halt is not a NEEDS HUMAN emission; it keeps its own final summary.
In the ready-for-review variant, hand over per teamwork:review-handshake: an implementation batch of ready !<iid> for every MR in the set, then your ticket move, once, when every MR on that ticket qualifies. One MR going green while its sibling is still red is not a handover.
Then set Mode: needs-human (ready-for-review) and emit the line. Do not stop: the reviewer has the ball.
Nothing polls. The watchers keep watching and message you on a draft or reviewer change, a thread event, an approval, the merge, or the idle cap; the watchdog reads the ticket and writes its one line every 30 minutes, for example "!123 handed over, waiting on reviewer, idle 1h10m" or "!123 waiting on 2 decisions, idle 25m". No actor runs unless an event below dispatches one.
In both variants:
ask → turn the row into the approved fix or dismiss the answer implies, set Mode: working, and dispatch the batch. The set re-enters needs-human once that work is finished.actionable-open verdict on the current head → write the one plain leaving line, set Mode: working, and dispatch as in a working cycle. A set already handed over is taken back first.In decisions-needed, the ball is already with the author side, so a new note is not a hand-back to wait out:
thread_created, thread_updated → a triage batch, as in a working cycle. The mode holds while the triage runs. A fix or dismiss row in its return sends the set back to working; only ask and skipped rows keep it in decisions-needed, and a new ask or a new human thread re-emits the line.In ready-for-review, the reviewer has the ball:
back-to-work → the reviewer handed it back. Set Mode: working and send the Held threads to triage as ordinary in-scope threads; their triage comes back to you like any other.thread_created, thread_updated while the flags did not move → a reviewer is mid-review, and a comment is not a hand-back. Write one line as an FYI — "!123 handed over, 3 new comments since 14:02, reviewer still active" — record the time as Newest reviewer comment and the thread under Held threads, and keep waiting. Take the work back on one of two signals only: the handshake flips (the bullet above), or the newest comment is at least 30 minutes old with the flags still unmoved, which the next watchdog firing reads off the ledger — the reviewer left comments and walked away without handing over. On that second signal set Mode: working, move the ticket to the work state yourself, and dispatch the triage of the Held threads with a reclaim !<iid> row so the actor says why on the MR.Idle cap: 3 hours. Each MR watcher ends itself with watch_ended reason idle after 3 hours without an event; quiet and pipeline_stuck do not count as events. The cap is for the set, not for one MR: when one watcher ends on idle while the ledger's Last movement is under 3 hours old, a sibling still moves, so start that watcher again with its other options and --idle-after set to what is left of the 3 hours, and record the new task id. When Last movement is 3 hours old, end the run: stop the remaining watchers, confirm the actor has returned, delete the cron job, and report. Say plainly that it stopped on an idle timeout, not on a merge, name what is still outstanding, and name the way back in — running /sdlc:mr-babysit again picks the same set up.
The user can opt out of the wait with an explicit "stop after handoff". Then the handover is the last thing this command does — report and end, stopping the watchers, deleting the cron job and leaving no subagent running. A set in decisions-needed keeps waiting even then, because nothing was handed over yet.
Stop and hand back to the user on any of: all MRs merged/closed; a rebase conflict that encodes a genuine product/design decision; a CI failure triaged as ask, or a failure signature that hit its 2-attempt cap and is still red; a could-not-fix row with no way forward; a reply or resolve that kept failing after a retry; oscillation (this batch's fix contradicting the last one's). An ask on a review thread does not halt the run; it is needs-human (decisions-needed). An ask that leaves the pipeline red or the branch unrebased does, because the set can never meet the entry condition. A halt on one MR doesn't have to halt the others — keep babysitting the rest and report the one that needs you.
Whenever you stop this way, the set stays back-to-work, per teamwork:review-handshake.
Leave nothing running. A stop is complete only when every watcher's background task has ended, by its watch_ended or by the task stop tool, the actor has returned and its report has been read back, and the cron job is deleted. An actor still working its batch is allowed to finish and return; dispatch nothing after a halt. Never stop while a subagent is alive, and never report a halt on a subagent you did not read back.
Present a final summary: the per-MR scorecard from one glab-mr-status read of the set, what was fixed and pushed with SHAs, each MR's state, whether you handed over or stopped, and — as a clear list — every ask row from the ledger (thread location + quoted comment + your suggested reply or change), and ask the user how to proceed.
$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fprochazka/claude-code-plugins --plugin sdlc8 skills in this plugin
/brief-next-stepssdlc:brief-next-stepsWrite a short briefing of the proposed next steps into ./.claude/plans/ so the conclusion can be read instead of the argument/mr-opensdlc:mr-openOpen a draft MR for the current branch — the Why in the ticket, the reviewer's guide in comments, a one-screen description, then babysit it/pre-plansdlc:pre-planGather context for a problem (ticket + code exploration) before discussing a solution and writing a plan/ticket-attach-docssdlc:ticket-attach-docsAttach the session's plan and research documents to the ticket, as tracker documents where they exist and as attachments or comments otherwise/ticket-newsdlc:ticket-newDraft and create a ticket from the current conversation context/wrap-upsdlc:wrap-upAttach the session's documents to the ticket, post a condensed wrap-up comment — outcome, verification numbers, findings, follow-ups — and mark it completedOther plugins' skills for the same job