AI Next: work one triaged review item to its checkpoint
A triaged list of reviewer findings already exists in a state file — /ai-comments wrote
the AI queue, /hum-comments the human queue. Your job is to take exactly one OPEN item
to its checkpoint: the fix is implemented, the question's answer is settled, or a
defer/decline decision is recorded with a rationale worth replying with. Do not
re-triage the list, and do not touch a second item — the whole point of checkpoints is
that each invocation ends at a clean, resumable boundary.
Configuration (set per adopter — must match the comments skills)
| Key |
Default |
AI_STATE_DIR |
docs/plans/ai-review/ |
HUM_STATE_DIR |
docs/plans/hum-review/ |
When to use this skill
- "/ai-next" after /ai-comments or /hum-comments has produced a state file
- "Work the next review comment" / "keep going through the review items"
- Resuming a list in a fresh session (the state file carries all context)
When NOT to use this skill
- No state file exists yet — run
/ai-comments (AI queue) or /hum-comments (human queue) first.
- Drafting the reply text — that's
/ai-draft, after items reach their checkpoints.
- Posting replies or watching CI — that's
/ai-post.
Steps
Find the state file. If a path or queue name (ai / hum) was passed, use it.
Otherwise check both AI_STATE_DIR and HUM_STATE_DIR for files matching the
current repo (and PR, if resolvable): exactly one file with OPEN items → use it;
both queues have OPEN items → ask which queue via AskUserQuestion; none → say to run
/ai-comments or /hum-comments and stop.
Read the whole file. It is your only context — assume no prior conversation.
Pick the first item whose Status is OPEN, in file order. If none, report that
every item is at its checkpoint, point to /ai-draft, and stop.
Present the item in the format below: category, source, confidence, the finding,
the Why, and the Proposed solution.
If the item is UNSURE, settle it first: ask the open question via AskUserQuestion
and re-categorize (update the item's category and add Why/Proposed solution) before
going further.
Choose the path. Default for SHOULD FIX is implementing the proposed solution;
nitpicks often warrant a quick fix or a decline; QUESTION items (human queue) get
their answer settled. Confirm via AskUserQuestion when the call isn't obvious:
Fix / Answer / Defer or decline (with the user supplying or confirming
the rationale). Human items get extra deference — declining a colleague's ask is
always the user's call, never yours.
Execute.
- Fix: read the code first, then implement. If the proposed solution turns out
wrong once you're in the code, stop and say so — present the problem and the
alternative, and let the user decide. Do not run the full test suite here;
/ai-post gates on tests and lint before anything is posted.
- Answer (QUESTION items): confirm the grounded answer draft with the user —
verify it against the code once more if anything moved since intake. The settled
answer is the checkpoint; no code changes.
- Defer / decline: capture the real reason (from discussion or the user), specific
enough to become a reply — "deferring: this component never renders inside a form
today; a follow-up story covers it" beats "won't fix".
Record the checkpoint. In the state file, set the item's Status to FIXED,
ANSWERED, DEFERRED, or DECLINED, and add - **Resolution:** <1–2 factual sentences: what was done, the settled answer, or why not>. Touch nothing else in
the file.
Stop. Report the checkpoint and how many items remain OPEN. Do not start the next
item, draft replies, commit, or push.
Output format
Presenting the item (step 4):
Item 3 of 7 — [SHOULD FIX] paging guard never fails fast (Copilot, 93%)
File: src/api/selections.api.ts:41
Finding: <condensed comment>
Why: <grounded reason>
Proposed solution: <the concrete change>
Closing report (step 9):
Checkpoint: item 3 FIXED — <one-line resolution>. 4 items remain OPEN. Next: /ai-next
Rules
What to do
- ONE item per invocation. Hard cap. Ending at a checkpoint is the feature.
- Items in file order — the triage already sorted by priority.
- Resolutions must be reply-grade. /ai-draft builds the reply from your Resolution
line; write it factual and specific.
- Read code before changing it, even when the proposed solution looks complete.
What NOT to do
- NEVER work past the checkpoint — no second item, no reply drafting, no posting.
- NEVER silently deviate from the proposed solution. If it's wrong, stop and ask —
the triage verdict was made with the user.
- NEVER commit or push. Changes stay in the working tree for /ai-post's gate.
- Don't re-triage. Categories and confidences are settled except for the one UNSURE
item you were asked to resolve.
Format discipline
- Present the item, do the work, report the checkpoint in one line — no recap of the
whole list, no plan for the remaining items.
1---2name: ai-next3description: Work the next open item in a review triage list produced by /ai-comments or /hum-comments: present the finding, implement the proposed fix, answer the question, or record a deliberate defer/decline with its rationale, mark the checkpoint in the state file, and stop. One item per invocation. Use when the user says "/ai-next", "next review comment", or "keep working the review list".4---56# AI Next: work one triaged review item to its checkpoint78A triaged list of reviewer findings already exists in a state file — /ai-comments wrote9the AI queue, /hum-comments the human queue. Your job is to take exactly one OPEN item10to its checkpoint: the fix is implemented, the question's answer is settled, or a11defer/decline decision is recorded with a rationale worth replying with. Do not12re-triage the list, and do not touch a second item — the whole point of checkpoints is13that each invocation ends at a clean, resumable boundary.1415## Configuration (set per adopter — must match the comments skills)1617| Key | Default |18| --- | --- |19| `AI_STATE_DIR` | `docs/plans/ai-review/` |20| `HUM_STATE_DIR` | `docs/plans/hum-review/` |2122## When to use this skill2324- "/ai-next" after /ai-comments or /hum-comments has produced a state file25- "Work the next review comment" / "keep going through the review items"26- Resuming a list in a fresh session (the state file carries all context)2728## When NOT to use this skill2930- No state file exists yet — run `/ai-comments` (AI queue) or `/hum-comments` (human queue) first.31- Drafting the reply text — that's `/ai-draft`, after items reach their checkpoints.32- Posting replies or watching CI — that's `/ai-post`.3334## Steps35361. **Find the state file.** If a path or queue name (`ai` / `hum`) was passed, use it.37 Otherwise check both `AI_STATE_DIR` and `HUM_STATE_DIR` for files matching the38 current repo (and PR, if resolvable): exactly one file with OPEN items → use it;39 both queues have OPEN items → ask which queue via AskUserQuestion; none → say to run40 /ai-comments or /hum-comments and stop.41422. **Read the whole file.** It is your only context — assume no prior conversation.43443. **Pick the first item whose Status is OPEN**, in file order. If none, report that45 every item is at its checkpoint, point to `/ai-draft`, and stop.46474. **Present the item** in the format below: category, source, confidence, the finding,48 the Why, and the Proposed solution.49505. **If the item is UNSURE**, settle it first: ask the open question via AskUserQuestion51 and re-categorize (update the item's category and add Why/Proposed solution) before52 going further.53546. **Choose the path.** Default for SHOULD FIX is implementing the proposed solution;55 nitpicks often warrant a quick fix or a decline; QUESTION items (human queue) get56 their answer settled. Confirm via AskUserQuestion when the call isn't obvious:57 **Fix** / **Answer** / **Defer or decline** (with the user supplying or confirming58 the rationale). Human items get extra deference — declining a colleague's ask is59 always the user's call, never yours.60617. **Execute.**62 - **Fix:** read the code first, then implement. If the proposed solution turns out63 wrong once you're in the code, stop and say so — present the problem and the64 alternative, and let the user decide. Do not run the full test suite here;65 `/ai-post` gates on tests and lint before anything is posted.66 - **Answer** (QUESTION items): confirm the grounded answer draft with the user —67 verify it against the code once more if anything moved since intake. The settled68 answer is the checkpoint; no code changes.69 - **Defer / decline:** capture the real reason (from discussion or the user), specific70 enough to become a reply — "deferring: this component never renders inside a form71 today; a follow-up story covers it" beats "won't fix".72738. **Record the checkpoint.** In the state file, set the item's Status to `FIXED`,74 `ANSWERED`, `DEFERRED`, or `DECLINED`, and add `- **Resolution:** <1–2 factual75 sentences: what was done, the settled answer, or why not>`. Touch nothing else in76 the file.77789. **Stop.** Report the checkpoint and how many items remain OPEN. Do not start the next79 item, draft replies, commit, or push.8081## Output format8283Presenting the item (step 4):8485```86Item 3 of 7 — [SHOULD FIX] paging guard never fails fast (Copilot, 93%)87File: src/api/selections.api.ts:4188Finding: <condensed comment>89Why: <grounded reason>90Proposed solution: <the concrete change>91```9293Closing report (step 9):9495```96Checkpoint: item 3 FIXED — <one-line resolution>. 4 items remain OPEN. Next: /ai-next97```9899## Rules100101### What to do102103- **ONE item per invocation.** Hard cap. Ending at a checkpoint is the feature.104- **Items in file order** — the triage already sorted by priority.105- **Resolutions must be reply-grade.** /ai-draft builds the reply from your Resolution106 line; write it factual and specific.107- **Read code before changing it**, even when the proposed solution looks complete.108109### What NOT to do110111- **NEVER work past the checkpoint** — no second item, no reply drafting, no posting.112- **NEVER silently deviate from the proposed solution.** If it's wrong, stop and ask —113 the triage verdict was made with the user.114- **NEVER commit or push.** Changes stay in the working tree for /ai-post's gate.115- **Don't re-triage.** Categories and confidences are settled except for the one UNSURE116 item you were asked to resolve.117118### Format discipline119120- Present the item, do the work, report the checkpoint in one line — no recap of the121 whole list, no plan for the remaining items.