{"name":"request-blocks-review","title":"Request Blocks review","description":"Run the Blocks review, fix and re-review loop on a finished GitHub pull request until its current head is clean. Symptoms: request Blocks review, run Blocks review, fix the Blocks findings, re-review until green. Not for exploratory work or before a pull request exists; the primitives it calls are the blocks skill's.","compatibility":"GitHub pull requests with the Blocks integration; requires the public blocks skill, authenticated gh, repository access, and a host capable of a visible bounded wait.","allowedTools":"Read Grep Glob Bash","license":"MIT","kind":"requestOnly","useWhen":"asked for by name: the review loop over an open pull request","group":"workflow","lifecycle":"release","version":"1.0.1","author":"crissmoldovan","install":["npx skills add crissmoldovan/agent-skills --skill request-blocks-review"],"asks":["Implementation is finished and tests are green. Request Blocks review for this\nbranch's PR, await visibly, fix blocker/high findings, ask me about judgment\ncalls, and repeat until Blocks reports the current head clean. Do not merge.","Resume the Blocks review loop on PR 42. Compare against the latest request\nbaseline, include all inline findings, and do not accept a review of an older\nhead."],"commands":[],"documents":[],"body":"# Request Blocks review\n\nUse this as the final code-review gate after implementation and local verification\nare complete on a GitHub pull request. It owns the review policy and loop; the\npublic `blocks` skill owns Blocks communication, workspace/session resolution,\nstatus classification, and visible waiting primitives.\n\n## When to Use\n\n- Work on a GitHub PR is finished and verified, and it needs Blocks review.\n- “Request Blocks review,” “run Blocks review,” “fix the Blocks findings,” or\n  “re-review until green.”\n- A Blocks review landed and its findings need triage and another review cycle.\n\nDo not start during exploratory work, before a PR exists, or while implementation\nand known local failures remain unfinished.\n\n## Prerequisites\n\n1. Load the public `blocks` skill. If unavailable, show and request approval for:\n\n   ```bash\n   npx skills add crissmoldovan/agent-skills --skill blocks\n   ```\n\n   Never install it silently.\n2. Confirm the branch is pushed, the PR is open, implementation is complete, and\n   relevant local and CI checks are green.\n3. Resolve Blocks workspace context through `blocks` only if REST interaction is\n   needed. GitHub review status remains GitHub-authoritative.\n\n## Procedure\n\n1. **Resolve the PR.** Use the named PR or current branch PR. Do not create or\n   merge a PR implicitly.\n2. **Capture a full baseline.** Record the head SHA, request timestamp, and stable\n   IDs for top-level comments, reviews, and paginated inline comments.\n3. **Request review once.** Post `@blocks please review`; record its URL.\n4. **Await visibly through `blocks`.** Keep a tracked operation active and surface\n   waiting progress. Reactions/help/queued/courtesy messages are nonterminal.\n5. **Collect every finding.** Read top-level summaries, formal reviews, and all\n   paginated inline comments. Preserve explicit severity; otherwise classify:\n   security/data loss/broken contract = blocker; correctness/crash = high;\n   refactor/quality = medium; style = low.\n6. **Apply policy.** Fix blocker/high findings. Ask before medium/low judgment\n   calls. For intentional disagreements, reply with rationale rather than changing\n   correct code.\n7. **Verify and push.** Run focused and repository-required checks, then push the\n   accepted fixes to the PR branch.\n8. **Re-baseline and request re-review.** A review of an older head never accepts\n   the current head.\n9. **Repeat until green.** Continue review → findings → fixes → verification →\n   re-review until Blocks reports the current head clean and CI remains green.\n\nAcceptance is not the word \"clean\". It is a clean verdict **for the head you are\nabout to merge**, with CI green **on that same commit** — `blocks` reports this and\nnames its reason when it refuses. Check the sha, never the check name: a green check\ncan belong to the previous head when the new run has not registered yet, and a\nverdict for a superseded commit reads exactly like one for this commit.\n\nStop only for a clean current-head review, explicit user cancellation, closed PR,\n`failed`, or non-convergence that must be escalated to the user. Never merge implicitly.\n\n`failed` is Blocks saying it did not run — logged out, or out of quota. Stop and\nreport its reason; do not re-request in a loop, and never treat it as a pass. A\nlogged-out agent is reconnected only by the workspace owner in the Blocks dashboard.\n\n## Usage Examples\n\n```text\nImplementation is finished and tests are green. Request Blocks review for this\nbranch's PR, await visibly, fix blocker/high findings, ask me about judgment\ncalls, and repeat until Blocks reports the current head clean. Do not merge.\n```\n\n```text\nResume the Blocks review loop on PR 42. Compare against the latest request\nbaseline, include all inline findings, and do not accept a review of an older\nhead.\n```\n\n## Verification\n\n- [ ] `blocks` was loaded as the interaction/status/wait authority.\n- [ ] Implementation was complete and local/CI checks were green before review.\n- [ ] Baseline includes head SHA and stable IDs from all three GitHub surfaces.\n- [ ] Wait remained visible and bounded.\n- [ ] Every accepted finding was fixed and freshly verified.\n- [ ] Re-review targeted the new head after each fix cycle.\n- [ ] The final Blocks verdict is clean for the current head and CI is green.\n- [ ] No implicit merge occurred.\n","bodyHtml":"<h2 id=\"request-blocks-review\">Request Blocks review</h2>\n<p>Use this as the final code-review gate after implementation and local verification\nare complete on a GitHub pull request. It owns the review policy and loop; the\npublic <code>blocks</code> skill owns Blocks communication, workspace/session resolution,\nstatus classification, and visible waiting primitives.</p>\n<h3 id=\"when-to-use\">When to Use</h3>\n<ul>\n<li>Work on a GitHub PR is finished and verified, and it needs Blocks review.</li>\n<li>“Request Blocks review,” “run Blocks review,” “fix the Blocks findings,” or\n“re-review until green.”</li>\n<li>A Blocks review landed and its findings need triage and another review cycle.</li>\n</ul>\n<p>Do not start during exploratory work, before a PR exists, or while implementation\nand known local failures remain unfinished.</p>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ol>\n<li><p>Load the public <code>blocks</code> skill. If unavailable, show and request approval for:</p>\n<pre><code class=\"language-bash\">npx skills add crissmoldovan/agent-skills --skill blocks\n</code></pre>\n<p>Never install it silently.</p>\n</li>\n<li><p>Confirm the branch is pushed, the PR is open, implementation is complete, and\nrelevant local and CI checks are green.</p>\n</li>\n<li><p>Resolve Blocks workspace context through <code>blocks</code> only if REST interaction is\nneeded. GitHub review status remains GitHub-authoritative.</p>\n</li>\n</ol>\n<h3 id=\"procedure\">Procedure</h3>\n<ol>\n<li><strong>Resolve the PR.</strong> Use the named PR or current branch PR. Do not create or\nmerge a PR implicitly.</li>\n<li><strong>Capture a full baseline.</strong> Record the head SHA, request timestamp, and stable\nIDs for top-level comments, reviews, and paginated inline comments.</li>\n<li><strong>Request review once.</strong> Post <code>@blocks please review</code>; record its URL.</li>\n<li><strong>Await visibly through <code>blocks</code>.</strong> Keep a tracked operation active and surface\nwaiting progress. Reactions/help/queued/courtesy messages are nonterminal.</li>\n<li><strong>Collect every finding.</strong> Read top-level summaries, formal reviews, and all\npaginated inline comments. Preserve explicit severity; otherwise classify:\nsecurity/data loss/broken contract = blocker; correctness/crash = high;\nrefactor/quality = medium; style = low.</li>\n<li><strong>Apply policy.</strong> Fix blocker/high findings. Ask before medium/low judgment\ncalls. For intentional disagreements, reply with rationale rather than changing\ncorrect code.</li>\n<li><strong>Verify and push.</strong> Run focused and repository-required checks, then push the\naccepted fixes to the PR branch.</li>\n<li><strong>Re-baseline and request re-review.</strong> A review of an older head never accepts\nthe current head.</li>\n<li><strong>Repeat until green.</strong> Continue review → findings → fixes → verification →\nre-review until Blocks reports the current head clean and CI remains green.</li>\n</ol>\n<p>Acceptance is not the word &quot;clean&quot;. It is a clean verdict <strong>for the head you are\nabout to merge</strong>, with CI green <strong>on that same commit</strong> — <code>blocks</code> reports this and\nnames its reason when it refuses. Check the sha, never the check name: a green check\ncan belong to the previous head when the new run has not registered yet, and a\nverdict for a superseded commit reads exactly like one for this commit.</p>\n<p>Stop only for a clean current-head review, explicit user cancellation, closed PR,\n<code>failed</code>, or non-convergence that must be escalated to the user. Never merge implicitly.</p>\n<p><code>failed</code> is Blocks saying it did not run — logged out, or out of quota. Stop and\nreport its reason; do not re-request in a loop, and never treat it as a pass. A\nlogged-out agent is reconnected only by the workspace owner in the Blocks dashboard.</p>\n<h3 id=\"usage-examples\">Usage Examples</h3>\n<pre><code class=\"language-text\">Implementation is finished and tests are green. Request Blocks review for this\nbranch&#39;s PR, await visibly, fix blocker/high findings, ask me about judgment\ncalls, and repeat until Blocks reports the current head clean. Do not merge.\n</code></pre>\n<pre><code class=\"language-text\">Resume the Blocks review loop on PR 42. Compare against the latest request\nbaseline, include all inline findings, and do not accept a review of an older\nhead.\n</code></pre>\n<h3 id=\"verification\">Verification</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> <code>blocks</code> was loaded as the interaction/status/wait authority.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Implementation was complete and local/CI checks were green before review.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Baseline includes head SHA and stable IDs from all three GitHub surfaces.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Wait remained visible and bounded.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every accepted finding was fixed and freshly verified.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Re-review targeted the new head after each fix cycle.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The final Blocks verdict is clean for the current head and CI is green.</li>\n<li><input disabled=\"\" type=\"checkbox\"> No implicit merge occurred.</li>\n</ul>\n","outline":["When to Use","Prerequisites","Procedure","Usage Examples","Verification"],"words":678}
