Skip to content
Back to skills

Claude Review Loop

ASecurity

Answer the automatic Claude review on a PR in a repo with `.github/workflows/claude-review.yml` (the toolkit's Claude review kit) — open it as a draft, wait for CI before marking it ready, then read the findings, fix or reply, and ask for the follow-up run. Load before you open a PR there, mark one ready for review, push review fixes, or are asked to handle its review. Not needed in a repo without that workflow.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
ai-agentsgogitsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add notitial/ai-toolkit --skill claude-review-loop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Claude Review Loop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Claude Review Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/notitial-claude-review-loop/badge)](https://www.skillsdirectory.com/skills/notitial-claude-review-loop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: claude-review-loop
description: Answer the automatic Claude review on a PR in a repo with `.github/workflows/claude-review.yml` (the toolkit's Claude review kit) — open it as a draft, wait for CI before marking it ready, then read the findings, fix or reply, and ask for the follow-up run. Load before you open a PR there, mark one ready for review, push review fixes, or are asked to handle its review. Not needed in a repo without that workflow.
---

# Claude review loop

Applies only in a repo with `.github/workflows/claude-review.yml` (the toolkit's Claude review kit); elsewhere it is a
no-op. A PR you open there is not ready for the user until its Claude review has finished and been answered.

All reads and posts go through the github MCP (`gh` is blocked for agents, `rules/security.md`); where the guard
denies a post, give the user the `gh` command in a markdown code block instead.

1. Open the PR as a draft (`create_pull_request` with `draft: true`). The review runs once, when the PR is marked
   ready, so a CI fix pushed after that means it saw broken or stale code. CI runs on drafts: poll
   `pull_request_read` with `get_check_runs` every few minutes until every check outside the Claude review workflow (the
   kit's checks are named `claude-review / ...`) (CI, the secret scan, CodeQL) has concluded `success` on the current head. Fix a failure on the branch while it is
   still a draft, then wait again. A PR that changes rendered UI carries its old/new or mockup/built pair in the
   description first. Only then mark it ready yourself, without asking (`update_pull_request` with `draft: false`;
   the guard allows it but cannot see CI, so the green-checks condition is yours to keep). If a required check is red,
   missing or stays queued for a long time, or a failure is outside the PR's scope, tell the user instead of marking
   it ready.
2. Wait for the review (the runner may be queued): poll `pull_request_read` with `get_check_runs` every few minutes,
   until the `claude-review / Publish the review` run that started after you marked the PR ready completes (`Review PR` posts
   nothing; `publish` posts the findings). The draft phase left a `skipped` one on the same head: ignore it. The new
   run must conclude `success`: `skipped` means no review ran, so tell the user.
3. Read the findings with `pull_request_read`: the reviewer App's inline comments (`get_review_comments`), the
   review body's "Not on a changed line" section (`get_reviews`) and the overview comment (`get_comments`, the one
   starting `<!-- claude-review:summary`). The App posts APPROVE or REQUEST_CHANGES. A review that did not finish
   shows "No verdict" in the overview comment, or posts nothing at all for the head (a green `claude-review / Publish the review`
   with no App review and no overview for it). Silence is never "no findings": tell the user. After a "No verdict"
   overview only a new full review runs it again; after nothing at all, the next push is reviewed afresh only if the
   App has never commented on the PR; otherwise ask the user.
4. Fix each finding on the branch, or reply in its thread (`add_reply_to_pull_request_comment`) with why it isn't a
   bug. A finding in the review body has no thread: fix it and say so in the handover. A thread that starts
   **Suggestion (non-blocking)** is never judged: apply it or decline it, reply in its thread either way, and the next
   `--comments` run resolves it without judging it. Don't post `--comments` for a suggestion you haven't replied to.
5. Pushes after the first review are skipped, so after pushing fixes or replies, comment
   `@claude review --comments` on the PR (`add_issue_comment`, top level): Claude judges each open thread against the
   new code, replies, and resolves the fixed ones. Wait until no review is running before you post (GitHub keeps one
   waiting run per PR, so an early request can replace another). The comment starts its own run, on the
   `issue_comment` event: wait for that run, not the checks of the last push, then handle any thread it keeps open.
   List the findings and their outcome in the handover.
   **The `@claude` comment rule** (the one home; other docs link here): an agent may post up to 2 `@claude` comments
   per PR without asking the person, and one of them may be a full `@claude review`. The automatic review on
   mark-ready does not count. The guard's prompt on an `@claude` comment still appears; under this rule the answer is
   allow for the first 2 on a PR (the asker's lead may answer it). After the 2, post no third: tell the person what is
   open and ask what to do next.
6. A full `@claude review` is a whole re-review, about the cost of the first, and is one of the 2. A PR that
   changes the caller runs its own copy: an install or upgrade PR goes without `[skip ci]`, its own first review is
   the live test, and a `@claude review` comment runs nothing on it until the merge (the README's Quirks).

Details: the toolkit's `tools/claude-review/README.md`, "For agents opening PRs".

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.