--- name: code-review-loop description: "Complete an authorized pull or merge request review loop: fix findings, validate and push changes, link fix commits in replies, resolve addressed threads, and request another review. Use for end-to-end review remediation or repeated review until clean, across review platforms." license: MIT metadata: author: dpalfery version: 0.1.0 --- # Code Review Loop Follow [code-review-loop.md](code-review-loop.md) for the workflow. Preserve the user's chosen PR, reviewer, and authorization scope. Do not resolve a finding until its fix is verified on the PR branch and its reply links to the pushed commit. Before fixing a bot review comment, call `arbiter_classify_bot_review_comment` with its path, line, body and commit. A `real` answer is fixed. A `nitpick` or `already-fixed` answer skips the fix: reply with the reason and resolve the thread. An unsure answer is `real`. In this skill, a comment verified as real is one the session checked against the cited code and found true, and that `arbiter_classify_bot_review_comment` did not classify `nitpick` or `already-fixed`; the session writes the test and the fix itself. A fix for a review finding verified as real ships with a test that fails without the fix, bot review rounds included; a finding classified as a nitpick needs no test. A bot's PR-level summary comment with a findings table is classified row by row: call `arbiter_classify_bot_review_comment` with `summary: true`, the body, and `author` (append `[bot]` when the platform reports a Bot author type). Fix the `real` rows; leave the others unchanged, and post one PR comment listing every row's outcome. Human comments are never classified.