review-verification-protocol
Skill91 starsChanged 5 days agoApache-2.0View on GitHub
Enforces mandatory verification steps for all code reviews to eliminate false positives and confabulated findings. Use before reporting any code review, static analysis, or audit findings.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- nledford/engineering-review-boardtheir own version, first seen Nov 3, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- nledford/engineering-review-board★ 11same name
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 repository85 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- agent-architecture-analysisSkill
- app-intents-code-reviewSkill
- artifact-analysisSkill
- axum-code-reviewSkill
- brainstorm-beagleSkill
- bubbletea-code-reviewSkill
- cloudkit-code-reviewSkill
- elixir-performance-reviewSkill
- elixir-security-reviewSkill
- elixir-writing-docsSkill
- exdoc-configSkill
- exunit-code-reviewSkill
- fastapi-code-reviewSkill
- fetch-pr-feedbackSkill
- ffi-code-reviewSkill
- fix-llm-artifactsSkill
- fowler-refactoringSkill
- gen-test-planSkill
- go-architectSkill
- go-code-reviewSkill
- go-data-persistenceSkill
- go-testing-code-reviewSkill
- healthkit-code-reviewSkill
- humanize-beagleSkill
- improve-docSkill
- ios-animation-code-reviewSkill
- liveview-code-reviewSkill
- llm-artifacts-detectionSkill
- llm-judgeSkill
- macros-code-reviewSkill
- phoenix-code-reviewSkill
- postgres-code-reviewSkill
- prfaq-beagleSkill
- prometheus-go-code-reviewSkill
- pytest-code-reviewSkill
- quick-planSkill
- react-flow-code-reviewSkill
- react-flowSkill
- react-router-code-reviewSkill
- react-router-v7Skill
- receive-feedbackSkill
- refactor-repoSkill
- resolve-beagleSkill
- respond-pr-feedbackSkill
- review-ai-writingSkill
- review-elixirSkill
- review-frontendSkill
- review-goSkill
- review-iosSkill
- review-llm-artifactsSkill
- review-planSkill
- review-pythonSkill
- review-remix-v2Skill
- review-rustSkill
- review-skillSkill
- review-structureSkill
- review-tuiSkill
- run-test-planSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 21 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Before issuing any verdict — confirm, reject, sever, fix, or adjudicate — you MUST echo the exact artifact you are judging, quoted from a …
- Distinctive: line 37
Before flagging ANY issue, verify (these items are what gate 2 must produce evidence for):
- Distinctive: line 51
Search for ALL references in the codebase (grep/find)
- Distinctive: line 52
Check if it's exported and used by external consumers
- Distinctive: line 53
Check if it's used via reflection, decorators, or dynamic dispatch
- Distinctive: line 54
Verify it's not a callback passed to a framework
- Distinctive: line 64
Check if validation exists at a higher level (caller, middleware, route handler)
- Distinctive: line 65
Check if the framework provides validation (Pydantic, Zod, TypeScript)
- Distinctive: line 66
Verify the "missing" check isn't present in a different form
- Distinctive: line 77
Check if the type is narrowed by runtime checks before the point
- Distinctive: line 78
Verify if framework guarantees the type (loader data, form data)
- Distinctive: line 94
Verify cleanup function is actually missing (not just in a different location)
- Distinctive: line 95
Check if AbortController signal is checked after awaits
- Distinctive: line 107
Verify the optimization would have measurable impact
- Distinctive: line 108
Check if the framework already optimizes this (React compiler, memoization)
- Distinctive: line 147
Test infrastructure suggestions (new mock libraries, behaviour extraction)
- Distinctive: line 156
Test code not meeting production standards (intentionally simpler)
- Distinctive: line 237
If this is a re-review: ONLY verify previous fixes.
- Distinctive: line 239
If uncertain about any finding, either:
- Distinctive: line 240
Remove it from the review
- Distinctive: line 242
Verify by reading more code context
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review Verification Protocol
This protocol MUST be followed before reporting any code review finding. Skipping these steps leads to false positives that waste developer time and erode trust in reviews.
Anti-confabulation (gate 0 — applies to ALL review/verify skills)
Before issuing any verdict — confirm, reject, sever, fix, or adjudicate — you MUST echo the exact artifact you are judging, quoted from a source you read in this turn:
- For a code finding: the file:line plus the cited code, read freshly now (not recalled from earlier in the session).
- For a diff review: the actual diff hunk under review.
- For a structured report (e.g.
verify-llm-artifactsadjudicatingfindings[]): the finding's id + file + line + description, printed from the parsed source file, not from memory.
The artifact is the only source of truth. Never infer what you are reviewing from the branch name, the working directory, surrounding files, or recollection. If your mental model differs from the freshly read source, the source wins. A verdict issued without a same-turn echo of its target is invalid — emit the echo first, or do not emit the verdict.
This gate exists because an LLM under contextual priming will confidently adjudicate things that are not in the file. It runs before the per-finding hard gates below. Skills that consume this protocol implement it concretely: verify-llm-artifacts (Load + ECHO + ID-lock gate), review-llm-artifacts (echo finding before writing JSON), llm-artifacts-detection (anchor FILE:LINE from an opened buffer).
Hard gates (sequence)
Apply once per finding before it may appear in the review. If a gate fails, omit the finding, downgrade to Informational (per Severity Calibration), or rephrase as a question—do not ship soft accusations.
| Step | What you do | Pass condition (objective) |
| 1. Anchor | Read the full enclosing symbol or module, not only the diff hunk. | You can state file path and line range (or symbol name + file) you are judging. |
| 2. Evidence | For this finding's type, run the checks in Verification by Issue Type. | Each required check has an artifact: pasted tool output, file:line citation, or explicit "none" / "N matches" after a repo search—not a claim you "looked." |
| 3. Severity | Assign severity using Severity Calibration. | Label matches the table; requests for net-new code that did not exist in scope are Informational only. |
| 4. Format | Draft the finding for the report. | Matches [FILE:LINE] ISSUE_TITLE; Informational items do not add to the actionable count. |
Style-only or preference items must fail gate 2 or map to Do NOT Flag At All—they do not get a severity.
Pre-Report Verification Checklist
Before flagging ANY issue, verify (these items are what gate 2 must produce evidence for):
- I read the actual code - Not just the diff context, but the full function/class
- I searched for usages - Before claiming "unused", searched all references
- I checked surrounding code - The issue may be handled elsewhere (guards, earlier checks)
- I verified syntax against current docs - Framework syntax evolves (Tailwind v4, TS 5.x, React 19)
- I distinguished "wrong" from "different style" - Both approaches may be valid
- I considered intentional design - Checked comments, project conventions (e.g. AGENTS.md or project convention docs), architectural context
Verification by Issue Type
"Unused Variable/Function"
Before flagging, you MUST:
- Search for ALL references in the codebase (grep/find)
- Check if it's exported and used by external consumers
- Check if it's used via reflection, decorators, or dynamic dispatch
- Verify it's not a callback passed to a framework
Common false positives:
- State setters in React (may trigger re-renders even if value appears unused)
- Variables used in templates/JSX
- Exports used by consuming packages
"Missing Validation/Error Handling"
Before flagging, you MUST:
- Check if validation exists at a higher level (caller, middleware, route handler)
- Check if the framework provides validation (Pydantic, Zod, TypeScript)
- Verify the "missing" check isn't present in a different form
Common false positives:
- Framework already validates (FastAPI + Pydantic, React Hook Form)
- Parent component validates before passing props
- Error boundary catches at higher level
"Type Assertion/Unsafe Cast"
Before flagging, you MUST:
- Confirm it's actually an assertion, not an annotation
- Check if the type is narrowed by runtime checks before the point
- Verify if framework guarantees the type (loader data, form data)
Valid patterns often flagged incorrectly:
// Type annotation, NOT assertion
const data: UserData = await loader()
// Type narrowing makes this safe
if (isUser(data)) {
data.name // TypeScript knows this is User
}"Potential Memory Leak/Race Condition"
Before flagging, you MUST:
- Verify cleanup function is actually missing (not just in a different location)
- Check if AbortController signal is checked after awaits
- Confirm the component can actually unmount during the async operation
Common false positives:
- Cleanup exists in useEffect return
- Signal is checked (code reviewer missed it)
- Operation completes before unmount is possible
"Performance Issue"
Before flagging, you MUST:
- Confirm the code runs frequently enough to matter (render vs click handler)
- Verify the optimization would have measurable impact
- Check if the framework already optimizes this (React compiler, memoization)
Do NOT flag:
- Functions created in click handlers (runs once per click)
- Array methods on small arrays (< 100 items)
- Object creation in event handlers
Severity Calibration
Critical (Block Merge)
ONLY use for:
- Security vulnerabilities (injection, auth bypass, data exposure)
- Data corruption bugs
- Crash-causing bugs in happy path
- Breaking changes to public APIs
Major (Should Fix)
Use for:
- Logic bugs that affect functionality
- Missing error handling that causes poor UX
- Performance issues with measurable impact
- Accessibility violations
Minor (Consider Fixing)
Use for:
- Code clarity improvements
- Documentation gaps
- Inconsistent style (within reason)
- Non-critical test coverage gaps
Informational (No Action Required)
Use for:
- Improvements that require adding new dependencies or modules
- Suggestions for net-new code that didn't exist in the codebase before (new modules, test suites, abstractions)
- Architectural ideas for future consideration
- Test infrastructure suggestions (new mock libraries, behaviour extraction)
- Optimizations without measurable impact in the current context
These are NOT review blockers. They should be noted for the author's awareness but must not appear in the actionable issue count. The Verdict should ignore informational items entirely.
Do NOT Flag At All
- Style preferences where both approaches are valid
- Optimizations with no measurable benefit
- Test code not meeting production standards (intentionally simpler)
- Library/framework internal code (shadcn components, generated code)
- Hypothetical issues that require unlikely conditions
Valid Patterns (Do NOT Flag)
TypeScript
| Pattern | Why It's Valid |
map.get(key) || [] | Map.get() returns T | undefined, fallback is correct |
| Class exports without separate type export | Classes work as both value and type |
as const on literal arrays | Creates readonly tuple types |
| Type annotation on variable declaration | Not a type assertion |
satisfies instead of as | Type checking without assertion |
React
| Pattern | Why It's Valid |
| Array index as key (static list) | Valid when: items don't reorder, list is static, no item identity needed |
| Inline arrow in onClick | Valid for non-performance-critical handlers (runs once per click) |
| State that appears unused | May be set via refs, external callbacks, or triggers re-renders |
| Empty dependency array with refs | Refs are stable, don't need to be dependencies |
| Non-null assertion after check | TypeScript narrowing may not track through all patterns |
Testing
| Pattern | Why It's Valid |
toHaveTextContent without regex | Handles nested text correctly |
| Mock at module level | Defined once, not duplicated |
| Index-based test data | Tests don't need stable identity |
| Simplified error messages | Test clarity over production polish |
General
| Pattern | Why It's Valid |
+? lazy quantifier in regex | Prevents over-matching, correct for many patterns |
| Direct string concatenation | Simpler than template literals for simple cases |
| Multiple returns in function | Can improve readability |
| Comments explaining "why" | Better than no comments |
Context-Sensitive Rules
React Keys
Flag array index as key ONLY IF ALL of these are true:
- Items CAN be reordered (sortable list, drag-drop)
- Items CAN be inserted/removed from middle
- Items HAVE stable identifiers available (id, uuid)
- The list is NOT completely replaced atomically
useEffect Dependencies
Flag missing dependency ONLY IF:
- The value actually changes during component lifetime
- Stale closure would cause incorrect behavior
- The value is NOT a ref (refs are stable)
- The value is NOT a stable callback (useCallback with empty deps)
Error Handling
Flag missing try/catch ONLY IF:
- No error boundary catches this at a higher level
- The framework doesn't handle errors (loader errorElement)
- The error would cause a crash, not just a failed operation
- User needs specific feedback for this error type
Before Submitting Review
Final verification: 0. Each finding passed Anti-confabulation (gate 0) — its target was echoed from a source read in this turn, not recalled or inferred.
- Each finding passed Hard gates (sequence) (anchor, evidence with artifacts, severity, format).
- Re-read each finding and ask: "Did I verify this is actually an issue?"
- For each finding, can you point to the specific line that proves the issue exists?
- Would a domain expert agree this is a problem, or is it a style preference?
- Does fixing this provide real value, or is it busywork?
- Format every finding as:
[FILE:LINE] ISSUE_TITLE - For each finding, ask: "Does this fix existing code, or does it request entirely new code that didn't exist before?" If the latter, downgrade to Informational.
- If this is a re-review: ONLY verify previous fixes. Do not introduce new findings.
If uncertain about any finding, either:
- Remove it from the review
- Mark it as a question rather than an issue
- Verify by reading more code context
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.

