/jstack:babysit-prfrom jstack
Monitor a pull request through review and CI. Use when the user asks to monitor, watch, or babysit a PR.
Ships in jstack. 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; scripts run unread.
Many repos have AI review bots. They're helpful, even if they are not always right.
Never write your own watcher, polling loop, or sleep loop. Use one watcher
per PR: watch_pull_request in T3 Code, pr-wait everywhere else. Never run
both on the same PR. Every watcher on a GitHub account shares one rate limit.
watch_pull_requestHandle the existing checks and comments first. Then call
watch_pull_request and end your turn. T3 Code wakes you with a message when
a check fails, the required checks pass, someone comments or reviews, or the
branch conflicts.
delegate_task child), never call
watch_pull_request. The parent owns the PR. Do not watch PRs you are not
working on.unwatch_pull_request first. A merge or close ends the watch on its
own.gh api rate_limit --jq .resources.graphql before you
watch again. If remaining is near 0, wait for reset with one background
command, then watch again. Never watch again in a tight loop.pr-waitWait with scripts/pr-wait from this skill's directory (use its absolute
path).
pr-wait <pr> [--repo owner/name] [--until ready|green|any-change] [--allow-no-ci]
It prints one line per real event. It exits 0 when the --until condition is
met or the PR merges, 1 when it needs you (a required check failed, conflicts,
unresolved threads, PR closed), and 2 on bad input. A repo with no required
checks and no pull_request workflow counts as 0-CI and finishes after two
stable polls; --allow-no-ci forces that.
ready (default): required checks green, Greptile or Macroscope reviewed the
head — or no gating bot has ever reviewed the PR — and no unresolved threads.
Use this to babysit.green: required checks only. Use it when you only care about checks, not
review bots.any-change: exit on the first event.In Claude Code, run it with the Monitor tool (timeout_ms: 3600000), so each
line wakes you. Without a monitor, run it as one long command. It ends on its
own.
Start it again after you push, after you handle an exit 1, and after a resume. It remembers what it already reported, so nothing that arrived in between is lost. If it says another pid already watches the PR, do not start a second one. Kill the old one only if its events do not reach you.
With either watcher: when an event needs no action, end your turn without a message. Never post or say "still waiting".
gh pr create, gh pr view, and gh pr checks use GraphQL. When GraphQL is
used up, the REST limit is separate and usually still has room. Use
gh api repos/<owner>/<repo>/pulls/<n> to read a PR, and
gh api repos/<owner>/<repo>/commits/<sha>/check-runs for checks.
Only act on checks and comments newer than the latest push. Every bot or reviewer comment starts as decline until you verify against the source that it is a real bug in the intended path on the real target.
A factually true point about another platform or hardware, a rare or hypothetical edge case, an unused flag, an extra guard, style, or extra tests is a decline — never fix or bundle it, even while editing the same file. Prefer fixes that delete or narrow code over adding new state, helpers, or options.
Distinguish repository failures from infrastructure flakes. If the repo has
.macroscope/check-run-agents/*.md, read those rules before replying to
Macroscope. CodeRabbit is advisory: never wait for it or hold a merge for it.
When declining a finding, reply with a one-line written reason (via
leaving-pr-comments) and resolve the thread. Attach screenshots or video when
helpful and an uploader is configured.
Keep an eye on changes to main and rebase when needed. pr-wait reports when
new base commits touch this PR's files, and when the PR becomes BEHIND or DIRTY.
watch_pull_request reports conflicts only, so check for BEHIND yourself
before you call the PR ready.
If an overlapping PR makes this one obsolete, stop monitoring, report it to the
user, and ask before closing the PR unless closure was explicitly authorized.
If nothing has changed, stay quiet rather than posting filler comments. Stop
when pr-wait exits 0, or in T3 Code when the merge gate passes on the latest
head. Merge only when the user explicitly requested it;
otherwise report that the PR is ready. Right before a merge, run git fetch and
check the PR again. Never merge when it is BEHIND or DIRTY, or when base commits
that landed after the last green run touch this PR's files. Rebase, push, and
wait for green again.
In T3 Code, once you merge every owned PR and no open PR, blocker, or pin
remains (check t3_thread_list for pinned), settle this thread last
(t3_thread_organize, action: "settle", no threadId) unless a parent
workflow such as epic owns this thread's settle; delegated children never
settle. If you stop without merging, leave the thread unsettled.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub justcarlson/jstack --plugin jstack20 skills in this plugin
/bugTake an upstream bug, in a tool we use but do not own such as T3 Code, from first error to merged fix. Use when an error comes from upstream code, or when asked to check for an upstream issue, file one, or propose its fix./ci-retroMake a repository's CI faster from its own run history, then keep it fast. Use when CI is slow, queued, flaky or cold-cached, when auditing CI performance, or after a session that spent its time waiting on or retrying CI./councilTrigger this if the user says 'council'./epicResearch, plan and ship ambitious multi-issue or multi-repo work end to end. Triggers on 'epic', '/epic', 'ship epic', or bold-options research, a plan for sign-off, then parallel issues, worktrees, zero-downtime deploys and live proof.