pr-review
Skill73 starsChanged 4 months agoMITView on GitHub
Review and post feedback on a GitHub or Gitea pull request end-to-end: fetch the PR diff, run a multi-agent code review, and auto-post the verdict as a real PR review (approve/request-changes/comment) via the platform's API. Triggers on: 'review this PR', 'review PR #N', 'check this pull request', 'post a PR review', 'do a PR review on <url>'. For local uncommitted changes or a branch diff with no open PR, use review-full instead.
195 other projects use a version of this.
Adopted by
Most recently taken up by
- static-web-server/static-web-servertheir own version, first seen Nov 9, 2026
- zerx-lab/FluxDowntheir own version, first seen Nov 9, 2026
- civitai/civitaitheir own version, first seen Nov 9, 2026
- harshitsinghbhandari/domain-expansiontheir own version, first seen Nov 8, 2026
- Azure/azure-sdk-toolstheir own version, first seen Nov 8, 2026
- databricks/clitheir own version, first seen Nov 8, 2026
Used with
Projects with it also use oss-pr, pr-automation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
CES-LtdSkillpr-automation
PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".
Also in 3 projects that use this
jtenniswoodSkillexpert-reset
Reimagine this repository from first principles using the current product and user experience as the target. Use when the user says "/expert-reset", asks how the project should be rebuilt if starting again, wants bold architecture or component-structure recommendations, or wants a research-only reset plan unconstrained by current implementation details.
Also in 3 projects that use this
jtenniswoodSkillupdates
Summarize user-facing project updates from the last 7 days, ordered by importance and written as one-sentence "Feature: description" entries. Use when the user says "/updates", asks what changed recently, or wants a concise list of recent features, device support, fixes that users will notice, or other product value.
Also in 3 projects that use this
openchamberSkillclack-cli-patterns
Use when creating or modifying OpenChamber CLI commands, prompts, terminal output, non-TTY behavior, `--quiet`, or `--json` behavior.
Also in 3 projects that use this
openchamberSkilldrag-to-reorder
Use when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially `@dnd-kit`, touch/mobile interactions, variable-width items, or wrapping layouts.
Also in 3 projects that use this
- +6 more from openchamber
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- Significant-Gravitas/AutoGPT★ 188ksame name
- pytorch/pytorch★ 105ksame name
- rtk-ai/rtk★ 86ksame name
- saadeghi/daisyui★ 43ksame name
- rustfs/rustfs★ 36ksame name
- dotnet/maui★ 23ksame name
- NVIDIA/Megatron-LM★ 18ksame name
- MiniMax-AI/skills★ 14ksame name
- btriapitsyn/openchamber★ 13ksame name
- openchamber/openchamber★ 13ksame name
185 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- memory/CLAUDE.mdCLAUDE.md
- changelogSkill
- db-checkSkill
- deploy-checkSkill
- e2e-checkSkill
- elicit-requirementsSkill
- load-sessionSkill
- register-projectSkill
- review-diffSkill
- review-fullSkill
- save-diarySkill
- save-sessionSkill
- scaffold-projectSkill
- self-auditSkill
- session-endSkill
- sprint-planSkill
- statusSkill
- tech-radarSkill
- test-checkSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 9 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 178 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Check whether the project's CLAUDE.md @imports a credentials file (commonly rules/credentials.md.
- Very specific: line 18
If none is found, ask the user for the base URL and a username:token, and offer to save them into a new, gitignored file (e.g.
- Distinctive: line 31
No prior review -> first-pass review.
- Distinctive: line 34
No new commits -> stop and report "No new commits since my last review: nothing to re-review." Do not re-run the full checklist.
- Very specific: line 38
Read the target project's CLAUDE.md.
- Distinctive: line 39
If the project defines a cross-module impact table (e.g.
- Distinctive: line 40
If the project has no documented review rules, proceed with the generic checks only.
- Distinctive: line 44
Look at the diff's file paths to scope which rules apply (e.g.
- Very specific: line 48
Follow the review-full skill's Steps 1-6 (spawn code-reviewer, security-reviewer, db-analyst, and architecture-reviewer as applicable) …
- Distinctive: line 58
Sanity check: If the diff touches 5+ files and zero findings were raised, write one sentence justifying why (e.g.
- Very specific: line 70
If a POST with event: APPROVE or REQUEST_CHANGES fails with 403/422 (some Gitea instances permission-block certain accounts from …
- Distinctive: line 100
Before posting, re-check for existing reviews from this account against the current head commit, to avoid double-posting if this workflow …
- Very specific: line 107
Never say "review posted" without having confirmed a valid id.
- Distinctive: line 113
If the PR description claims something was tested and the change is non-trivial, look for evidence (screenshots, test output, added tests).
- Distinctive: line 114
Read the full diff before forming any finding.
“Common” is measured: kept by at least 6 in 10 of the 178 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
This posts a REAL review to GitHub or Gitea (comments, and an approve/request-changes/comment verdict). It fetches a pull request's diff, runs the same multi-agent analysis as review-full, applies any project-specific review rules, then submits the review via the platform's API. For reviewing local diffs that aren't an open PR, use review-full or review-diff instead.
Step 0: Resolve the PR and detect the platform
- Determine the target PR from
$ARGUMENTS(a number or URL). If empty, detect the PR for the current branch. - Detect the git host from
git remote get-url origin:github.com-> GitHub. Use theghCLI (assume it is already authenticated).- Anything else (self-hosted Gitea/Forgejo/Gogs, e.g. a company git server) -> Gitea-style REST API via
curl.
- For Gitea, locate this project's own credentials rather than asking every time:
- Check whether the project's
CLAUDE.md@imports a credentials file (commonlyrules/credentials.md; this mirrors a common per-project credentials-import convention). - If none is found, ask the user for the base URL and a
username:token, and offer to save them into a new, gitignored file (e.g.rules/credentials.md). Never write real secrets into a tracked file, an.exampletemplate, or any file already committed to git.
- Check whether the project's
Step 1: Load PR context
- Fetch PR metadata (title, author, base/head branch, mergeable state, description) and the unified diff:
- GitHub:
gh pr view <N> --json title,author,baseRefName,headRefName,mergeable,body,gh pr diff <N> - Gitea:
GET /repos/{owner}/{repo}/pulls/{n}andGET /repos/{owner}/{repo}/pulls/{n}.diff
- GitHub:
- Count
diff --githeaders in the diff and record the file count (checked again in Step 5). - Determine reviewer identity. Compare the authenticated account against the PR author:
- GitHub:
gh api user --jq .login - Gitea: the username from the credentials file
- Record whether this is a self-review (author == reviewer). Both platforms reject
APPROVE/REQUEST_CHANGESon your own PR, so a self-review always posts asCOMMENT.
- GitHub:
- Check for a prior review from this reviewer account (
gh api repos/{o}/{r}/pulls/{n}/reviews, or the Gitea equivalent):- No prior review -> first-pass review.
- Prior review exists -> list commits and check for any commit after that review's
submitted_at.- New commits -> re-review mode: only findings still present in the new diff are valid; call out previously-flagged items now fixed.
- No new commits -> stop and report "No new commits since my last review: nothing to re-review." Do not re-run the full checklist.
Step 2: Load project-specific review rules (if any)
- Read the target project's
CLAUDE.md. If it@imports rule files (naming conventions, architecture patterns, framework-specific rules, etc.), read those too and apply them in Step 4 alongside the generic checks. - If the project defines a cross-module impact table (e.g. "field X renamed -> grep the other repo for consumers"), run it: for each matching pattern in the diff, grep the referenced codebase paths, read every hit, and record any broken consumer as a finding.
- If the project has no documented review rules, proceed with the generic checks only. Do not invent stack-specific rules that aren't written down anywhere.
Step 3: Determine PR scope
Look at the diff's file paths to scope which rules apply (e.g. frontend-only, backend-only, or mixed changes) and skip rules tagged for the side the PR doesn't touch.
Step 4: Multi-agent analysis
Follow the review-full skill's Steps 1-6 (spawn code-reviewer, security-reviewer, db-analyst, and architecture-reviewer as applicable) using the fetched PR diff as the change set, plus any project-specific rules loaded in Step 2. Produce the standard findings table:
| # | Severity | File:Line | Finding | Recommendation |Step 5: Mandatory self-verification (do not skip; runs before posting)
- Grep verification. For every project-specific "must fix"-style rule with a greppable pattern, re-run the grep against the diff and confirm every match is either included as a finding or explicitly justified as not a violation.
- Rule/agent coverage line. State which agents ran and which project rules were checked, e.g. "checked code-reviewer, security-reviewer, rules A1-A2, G1-G8: N rules/checks in scope, M findings raised."
- Sanity check. If the diff touches 5+ files and zero findings were raised, write one sentence justifying why (e.g. "pure rename refactor", "config-only change"). Zero findings on a large diff is suspicious and must be justified, not assumed clean.
- File coverage check. Confirm the number of files examined equals the
diff --gitcount recorded in Step 1.
Step 6: Build the review payload and pick the verdict
| Reviewer vs. author | Findings | event |
| Self-review (author == reviewer) | Any | COMMENT (always; platform rejects APPROVE/REQUEST_CHANGES on your own PR) |
| Reviewer != author | Any CRITICAL/HIGH | REQUEST_CHANGES |
| Reviewer != author | Only MEDIUM/LOW | COMMENT ("LGTM with notes") |
| Reviewer != author | None | APPROVE |
If a POST with event: APPROVE or REQUEST_CHANGES fails with 403/422 (some Gitea instances permission-block certain accounts from approving), retry the same payload with event: COMMENT and say so explicitly in the summary. Do not silently swallow the failure.
Review body (top-level summary, opens every review body):
<severity emoji + count summary, e.g. "CRITICAL 2, HIGH 3, MEDIUM 1">
<DO NOT MERGE: N blocking item(s), only if any CRITICAL/HIGH present>
Blocking:
1. path/to/file.ts:47: <short description>
...
See inline comments for full detail per finding.Inline comment format (one per finding that has a specific line):
<emoji> [SEVERITY] <Module/symbol>: <what is wrong>. <Concrete suggested fix>.Severity emoji: CRITICAL, HIGH, MEDIUM, LOW map to plain-language tags in the body; use these emoji inline: ❌ CRITICAL, ⚠️ HIGH, 🔍 MEDIUM ("verify"), 💡 LOW ("minor"), ✅ OK (previously-flagged issue now fixed), ℹ️ NOTE (informational, non-blocking).
Positioning: a finding on a line in the new file goes in comments with that line number; a finding only on a deleted line uses the old-file line number instead; a PR-level finding with no specific line is omitted from comments and goes in body only.
Step 7: Post the review
- GitHub:
gh api repos/{owner}/{repo}/pulls/{n}/reviews -X POST --input payload.jsonwith body{"body": "...", "event": "...", "comments": [{"path": "...", "line": N, "body": "..."}]}. - Gitea:
curl -u "${AUTH}" -X POST -H "Content-Type: application/json" -d @payload.json "${BASE_URL}/api/v1/repos/{owner}/{repo}/pulls/{n}/reviews"with the same payload shape, except inline comments usenew_position/old_positioninstead ofline. - Before posting, re-check for existing reviews from this account against the current head commit, to avoid double-posting if this workflow already ran for the same commit.
Step 8: Verify
- Confirm the response contains a valid review
id. A missing/nullidmeans the POST failed silently. Read the error body and report the real failure; do not report success. - Confirm file coverage matches the count recorded in Step 1.
- Re-read each cited finding's lines to confirm the finding text still matches the actual code before declaring the review posted.
- Never say "review posted" without having confirmed a valid
id.
Review discipline
- Finish the current PR before moving to the next one flagged in conversation.
- Pre-existing issues outside the PR's own diff get an ℹ️ NOTE, not a blocking finding, unless the PR's changes directly break them.
- If the PR description claims something was tested and the change is non-trivial, look for evidence (screenshots, test output, added tests). If none is provided, flag with 🔍 SHOULD VERIFY.
- Read the full diff before forming any finding. Never post a review based on a partial read.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

