review-pr
Skill4 starsChanged 7 months agoMITView on GitHub
Full branch review against main across 9 dimensions (plan compliance, financial, events, tests, currency, performance, security, quality, simplification). Reviews ALL changes on the branch, not just the current session. Use when user says "review pr", "review-pr", "review branch", "self review", "self-review", "review before PR", "quality gate", "pre-PR review", "check before PR", or wants a full quality review before creating a pull request.
96 other projects use a version of this.
Adopted by
Most recently taken up by
- nerymurillohnd/claude-essentialstheir own version, first seen Oct 5, 2026
- lohi-ai/babysittheir own version, first seen Oct 5, 2026
- briandconnelly/skillstheir own version, first seen Oct 4, 2026
- angusfretwell/skillstheir own version, first seen Oct 4, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- egregore-labs/egregoretheir own version, first seen Oct 1, 2026
Used with
Projects with it also use build-graph, review-delta and 6 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.
n24q02mSkillbuild-graph
Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.
Also in 3 projects that use this
n24q02mSkillreview-delta
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
Also in 3 projects that use this
jasoncrawfordSkillwork-on
Use to kick off work on a feature, bug, or task
Also in 3 projects that use this
DockerSkillfix-issue
Fix a single GitHub issue end-to-end: triage, research, write the fix, review, and create a PR. Use when asked to fix an issue: "fix issue 1234", "resolve #500", "create a PR for issue 200".
Also in 6 projects that use this
JetBrainsSkillreview-plan
Manually re-run the autonomous plan review (Phase 2 — consistency + structural). The same review runs automatically as the first phase of /execute-tracks; this command is for re-runs after inline replanning or whenever the plan needs explicit re-validation. TRIGGER when: user asks to re-validate the plan after inline replanning; user requests explicit plan review outside /execute-tracks. SKIP: /execute-tracks already running State 0 in this session (autonomous Phase 2 path will fire) — do not double-run.
Also in 5 projects that use this
CloudflareSkillopen-pr
Take a cloudflare/agents GitHub issue plus any repro findings and one-shot a fix PR — branch, change, test, push, and open the PR linked to the issue.
Also in 4 projects that use this
Other versions96 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 96
- ToolJet/ToolJet★ 41ksame name
- tirth8205/code-review-graph★ 32ksame name
- microsoft/fluentui★ 20ksame name
- hashicorp/terraform-provider-aws★ 11ksame name
- maximhq/bifrost★ 8.6ksame name
- docker/docs★ 4.7ksame name
- mikeyobrien/ralph-orchestrator★ 3.2ksame name
- ShenSeanChen/waku-agent★ 1.9ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- google/site-kit-wp★ 1.4ksame name
86 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 repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/ai-workspace-projections.mdcCursor rule
- .cursor/rules/mcp-tool-configs.mdcCursor rule
- .cursor/rules/node-typescript.mdcCursor rule
- .cursor/rules/runstore-listruns-cache.mdcCursor rule
- .cursor/rules/worker-posture.mdcCursor rule
- .cursor/rules/worker-safety.mdcCursor rule
- await-pr-checksSkill
- commitSkill
- create-agentSkill
- create-issueSkill
- create-mcpSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- implement-planSkill
- load-contextSkill
- mergeprepSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- resolve-review-findingsSkill
- review-prSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- update-contextSkill
- await-pr-checksSkill
- commitSkill
- create-agentSkill
- create-issueSkill
- create-mcpSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- implement-planSkill
- load-contextSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 12 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 91 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
If the diff is empty, report "No changes to review" and stop.
- Very specific: line 29
Check if a context file exists at contexts/{branch-name}/context.md
- Distinctive: line 30
If it exists, read it. This contains pre-curated research: critical path, must-read file manifest, external provider knowledge, internal …
- Distinctive: line 31
Use this context to understand the intent behind the changes — it informs which documentation to cross-reference and which invariants are …
- Very specific: line 32
Check if a plan exists for this branch: plans/{branch-name}/plan.md
- Distinctive: line 33
If the plan index exists, read it to find all sub-plan files
- Distinctive: line 34
Read each sub-plan file to extract:
- Distinctive: line 39
If no plan exists, note "No plan found — skipping plan compliance dimension" and continue
- Distinctive: line 44
Read the full diff: git diff main...HEAD (or user-specified range)
- Very specific: line 52
Read all .agents/rules/*.md files to have the full rule set available for the review dimensions.
- Distinctive: line 71
Skip: if no relevant files changed (mark N/A with reason)
- Distinctive: line 72
Check the project's static checklist items if one exists
- Distinctive: line 81
Strict mode: when enabled, any safety-critical invariant violation in production code is automatically Critical.
- Distinctive: line 116
After auto-fixes are applied:
- Very specific: line 130
If file exists for today, append counter: review-pr-2026-04-01-2.md
- Very specific: line 132
Write the full review output (all dimensions, findings, verdicts) to $ARTIFACT.
- Distinctive: line 142
Ask user: fix now, defer, or dismiss
“Common” is measured: kept by at least 6 in 10 of the 91 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
<!-- Generated from .agents/ by scripts/sync-ai-workspace.mjs. Do not edit directly. -->Review PR (Branch-Scoped)
Full quality gate that reviews ALL changes on the current branch vs main across 9 dimensions. Unlike /review (which only checks uncommitted session changes), this reviews the entire branch diff — every commit since diverging from main. Sits between /implement-plan and /create-pr.
Instructions
Step 1: Determine Scope
- Get the current branch:
git branch --show-current - Parse user arguments to determine diff scope:
- No arguments (default): branch vs main --
git diff main...HEAD - Commit range: e.g.,
HEAD~3--git diff HEAD~3...HEAD - File filter: e.g.,
src/Core/-- append-- src/Core/to the diff command
- No arguments (default): branch vs main --
- Count changed files and lines to set expectations:
git diff main...HEAD --stat - If the diff is empty, report "No changes to review" and stop.
Step 1b: Load Context and Implementation Plan
- Check if a context file exists at
contexts/{branch-name}/context.md- If it exists, read it. This contains pre-curated research: critical path, must-read file manifest, external provider knowledge, internal architecture patterns, and test patterns.
- Use this context to understand the intent behind the changes — it informs which documentation to cross-reference and which invariants are most critical to verify.
- Check if a plan exists for this branch:
plans/{branch-name}/plan.md - If the plan index exists, read it to find all sub-plan files
- Read each sub-plan file to extract:
- Decisions — the design choices agreed during planning
- Scope — what's in scope and explicitly out of scope
- Risks & Edge Cases — identified risks and their expected mitigations
- Implementation Tasks — the task list with acceptance criteria
- If no plan exists, note "No plan found — skipping plan compliance dimension" and continue
- The plan serves as the source of truth for what the ticket intended to achieve. Use it in Step 3 to verify the implementation matches intent.
Step 2: Load Diff and Classify Files
- Read the full diff:
git diff main...HEAD(or user-specified range) - Get the list of changed files:
git diff main...HEAD --name-only - Classify each changed file into categories the project's review checklist recognizes (typical buckets: safety-critical / domain / integration / UI / infrastructure / tests / config). Adapt the buckets to the codebase's actual structure.
- Enable strict mode automatically if any safety-critical files are in the diff (excluding test code) — money handling, irreversible mutations, regulated flows, security boundaries, etc.
- Log which categories are present and which review dimensions will be N/A
Step 2b: Load Review Rules
Read all .agents/rules/*.md files to have the full rule set available for the review dimensions.
Log: "Review rules loaded from .agents/rules/"
Step 3: Run Review Dimensions
Load the plan (from Step 1b), any project-maintained review checklist (e.g., docs/reviewing/checklist.md), and the .agents/rules/ (from Step 2b), then execute the relevant dimensions. Typical dimensions:
- Plan Compliance -- implementation matches planned scope, decisions honored, tasks completed, nothing missing
- Safety-critical Integrity -- idempotency, audit trails, correctness of irreversible writes, transactional outcomes
- Domain Events / State Transitions -- event registration on state transitions, stable stream IDs, deferred events
- Test Coverage -- new/changed code has tests, edge cases covered, test patterns correct
- Locale / Configuration -- no hardcoded locale-specific values, correct config resolution
- Performance -- N+1 queries, unnecessary round trips, hot-path overhead
- Security -- input validation, authorization checks, no secrets in code
- Code Quality -- naming, SOLID, consistency with codebase patterns, component size limits
- Simplification -- dead code, over-engineering, unnecessary abstractions
For each dimension:
- Skip if no relevant files changed (mark N/A with reason)
- Check the project's static checklist items if one exists
- Also check
.agents/rules/rules — for each rule relevant to this dimension, verify the diff does not exhibit the anti-pattern. If it does, report it with the rule file and section. - Provide evidence for every finding (file path + line number)
- Classify findings by severity:
- Critical -- blocks PR: safety-critical incorrectness, data loss risk, missing audit trail, broken idempotency
- Important -- should fix: pattern violations, missing tests for changed logic, security gaps
- Minor -- acceptable debt: naming issues, unused imports, dead code
- Suggestion -- nice-to-have: refactoring opportunities, documentation improvements
Strict mode: when enabled, any safety-critical invariant violation in production code is automatically Critical. Test files are exempt — they legitimately use patterns that would be violations in production code.
Step 3b: Critical Documentation Validation
For each file in the diff that touches crucial logic (money/safety-critical flows, third-party integrations, domain state transitions, irreversible mutations):
- Identify the relevant documentation — find the docs that describe how this code should behave (
docs/, architecture notes, third-party spec files,AGENTS.mdsections, context file) - Read the documentation — do not rely on memory or pattern-matching. Actually read the doc.
- Verify correctness against the doc — trace the code path and confirm it implements what the documentation specifies. Check:
- Are the method calls correct? (correct method on the correct service, correct event type)
- Are the parameters in the right order with the right types?
- Does the flow match the documented sequence?
- Are edge cases from the documentation handled?
- Does the implementation match the plan's Decisions and acceptance criteria?
- Report discrepancies as Critical findings with evidence from both the code and the doc
This step is what separates a mechanical pattern check from a real review. Pattern compliance does not prove correctness — a handler can follow every naming convention and still call the wrong service method.
Step 4: Auto-Fix Minor Issues
Collect all Minor and Suggestion findings that are safe to auto-fix:
- Unused imports
- Dead code (unused private functions/methods, unreferenced private fields)
- Missing
readonly/conston fields that are never reassigned (where idiomatic) - Trailing whitespace, unnecessary blank lines
Do NOT auto-fix:
- Anything that changes business logic or public API surface
- Any code in safety-critical files
- Naming changes that affect serialization (e.g., JSON/protobuf field names)
Apply fixes to the working tree. Do not commit -- leave changes for user review. Track what was fixed for the presentation step.
Step 5: Smart Verification
After auto-fixes are applied:
- Cosmetic-only fixes (formatting, dead code removal, unused imports): run the project's targeted build command on affected modules only
- Business logic touched (by auto-fix or user-requested fix): run the project's targeted test command on the affected test suite (see project conventions in
AGENTS.md)
Report verification results. If build or tests fail after auto-fix, revert the failing fix and report it.
Step 6: Save Artifact
BRANCH=$(git branch --show-current)
mkdir -p plans/$BRANCH/reviews
ARTIFACT=plans/$BRANCH/reviews/review-pr-$(date +%Y-%m-%d).mdIf file exists for today, append counter: review-pr-2026-04-01-2.md
Write the full review output (all dimensions, findings, verdicts) to $ARTIFACT. This creates a durable record for PR history and cross-referencing with Codex review artifacts.
Step 7: Present Findings
Present findings grouped by severity (Critical first, then Important, Minor, Suggestion):
For each Critical/Important finding:
- File path and line number
- What is wrong and why it matters
- Proposed specific fix
- Ask user: fix now, defer, or dismiss
For auto-fixed items: summarize what was changed with file paths.
For N/A dimensions: list with reason for skip.
End with overall assessment:
- Ready for PR -- no Critical/Important findings remaining
- Needs fixes -- Critical/Important findings need resolution before PR
- Blocked -- Critical findings that require architectural changes
After the assessment, suggest Codex second opinion:
"Run
/review-pr-codexfor a GPT-powered second opinion? (requires Codex CLI installed)"
This is informational only — do not run /review-pr-codex automatically.
Step 8: Knowledge Capture — Rule Check
For violations with no corresponding existing rule — these are the strongest signal for new rules. Check .agents/rules/ for coverage. If a finding represents a reusable pattern (not a one-off typo or naming nit), suggest /create-rule. Provide:
- The pattern (rule text)
- The anti-pattern (the bad code that was caught, with example)
- The evidence (source: PR number, the review finding that surfaced it)
- Suggested context tags (what kind of work this applies to)
Do NOT write rule files directly — /create-rule handles dedup, ID assignment, index update, and source tracking.
Critical Rules
- Evidence-based -- every finding must cite file:line. No vague "looks wrong" assessments.
- No false confidence -- if unable to determine whether something is an issue, flag it for user review rather than silently passing.
- Safety-critical code is sacred -- any safety-critical violation is Critical, no exceptions. This includes idempotency gaps, missing audit trails, incorrect state handling, direct property mutation on invariant-bearing aggregates.
- Test code is exempt from strict mode -- test files legitimately use patterns that would be violations in production code.
- Don't fix what isn't broken -- auto-fix only clearly wrong things (unused code, naming). Never auto-fix code that is working correctly just to make it "better".
- Scope hygiene -- only review files that are in the diff. The review covers changes, not the entire codebase.
- One review, not a rewrite -- findings should be actionable and specific. Do not propose rewrites of working code.
- Build/test constraints -- use the project's targeted build/test commands. Never run full apps. Only run affected test suites.
- Leave fixes uncommitted -- all changes stay in the working tree for user review.
- Single agent, sequential -- do not spawn subagents. Execute all steps in the current session.
Checklist
- Scope determined (branch vs main, commit range, or file filter)
- Plan loaded (or noted as absent)
- Diff loaded and files classified into categories
- Review rules loaded from
.agents/rules/ - Financial strict mode enabled/disabled based on file classification
- All 9 dimensions executed (or marked N/A with reason) — checklist + lessons
- Findings classified by severity with evidence
- Minor issues auto-fixed (cosmetic only, no business logic)
- Verification run (build for cosmetic fixes, tests for logic changes)
- Critical/Important findings presented with fix proposals
- User decisions recorded (fix/defer/dismiss) for each finding
- Overall assessment delivered (Ready / Needs fixes / Blocked)
Reference
docs/reviewing/checklist.md-- detailed per-dimension checks (9 dimensions).agents/rules/-- review rules (auto-loaded by path patterns)plans/{branch-name}/plan.md-- implementation plan index (if exists)AGENTS.md-- repository-wide constraints and financial platform DNAdocs/guides/financial-application-principles.md-- financial invariants and anti-patterns.agents/skills/implement-plan/SKILL.md-- preceding step in the workflow.agents/skills/create-pr/SKILL.md-- next step in the workflow
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.

