# PR Review Loop

Fixes valid review findings on a pull request and rebuts false ones with evidence.

- Repository: https://github.com/nightly-labs/openbot (4509 stars)
- Category: Git and review
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add nightly-labs/openbot --skill babysit -g -a claude-code -y`
Codex: `npx skills add nightly-labs/openbot --skill babysit -g -a codex -y`
Cursor: `npx skills add nightly-labs/openbot --skill babysit -g -a cursor -y`
Gemini CLI: `npx skills add nightly-labs/openbot --skill babysit -g -a gemini-cli -y`

## Description

Babysit a pull request through the NorbiAI review loop until no valid issue remains. Fix valid findings, rebut false positives with checkable evidence, and re-request review. Use when asked to babysit a PR, handle NorbiAI comments, or clear the NorbiAI review gate.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Babysit

Drive one pull request through repeated NorbiAI reviews until no valid issue
remains. Fix each valid finding. Rebut each false positive with evidence.
Ask for a new review after each round.

Use this skill only for the NorbiAI review on the current pull request.
Do not use it for human reviews or for other bots.

## Before you start

Do this once, not in each loop.

- Read `AGENTS.md` and each nested `AGENTS.md` for a directory you change.
- Read `.github/norbiai-review-prompt.md`. It defines `[NEW]`, `[REMAINS]`,
  `[RESOLVED]`, `[WITHDRAWN]` and what counts as a valid rebuttal.
- Find the pull request number and the branch. Check `git status`.
  Commit or stash unrelated work first.
- Confirm `gh` can read the pull request. You need the latest review
  comment and the `NorbiAI review` commit status on the head SHA.

## Step 1, Read the latest review

1. Load only the newest comment from `github-actions[bot]` with
   `<!-- norbiai-review -->` in the body. Filter with `gh api --jq`; do not
   print all PR comments.
2. Record `Reviewed commit` from the comment. Compare it with the head SHA.
   Stop when the review is stale. Wait for a fresh review instead.
3. Read `## Findings`, `## Resolved Since Previous Review`, and
   `## Withdrawn Findings` as one set. Note the `[NEW]` and `[REMAINS]`
   tags and each `P0` to `P3` priority.
4. Read the `NorbiAI review` commit status on the head SHA. The gate
   blocks merge on unresolved `P0` and `P1` findings.

Do not act on an old review. Do not edit the review comment.

## Step 2, Triage each finding

Check each finding against the full current diff and the surrounding code.
Prove the failure mode. Never trust the title alone.

Mark a finding as **valid** when it shows all of the following:

The rest: https://github.com/nightly-labs/openbot/blob/HEAD/.agents/skills/babysit/SKILL.md
