providing-code-review
Skill8 starsChanged 6 months agoMITView on GitHub
Code review gate - apply engineering rigor when reviewing PRs. Trace data flow, check blast radius, verify integration points.
In this repository129 other files it gives its agents.
- AGENTS.mdAGENTS.md
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- gitlab-cliSkill
- hotfix-charterSkill
- implementation-trackerSkill
- incident-revert-reviewSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requesting-code-reviewSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- skills-hierarchy-tuningSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- timeline-trace-investigatorSkill
- token-estimationSkill
- unified-commit-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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 33
If an argument was supplied with the trigger (PR URL, diff, branch name, or inline code), use it immediately — do not ask what to review.
- Distinctive: line 46
When reviewing a PR, check changes, or provide feedback on someone else's implementation, apply the same analytical rigor — not …
- Distinctive: line 68
BEFORE approving or providing feedback:
- Distinctive: line 79
If the PR adds a new field or parameter:
- Distinctive: line 130
If the PR or associated documentation makes claims about external system state, verify each claim against the system of record.
- Distinctive: line 172
When providing code review, structure feedback as:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Providing Code Review
Wrong skill? File-protocol review →
code-review-respond. Pre-commit review →progressive-code-review-gate. Processing feedback you received →receiving-code-review.Source:
superpowers-plusPart of: Engineering Rigor skill family
Invocation
If an argument was supplied with the trigger (PR URL, diff, branch name, or inline code), use it immediately — do not ask what to review. Examples:
/sp-review https://github.com/org/repo/pull/123→ fetch the PR diff and begin review/sp-review #123→ treat as a short PR reference in the current repo; rungh pr diff 123/sp-review <pasted diff or code>→ review the supplied content directly/sp-review(no argument) → ask: "What do you want me to review? (PR URL, diff, or branch name)"
Parse the argument from whatever the user typed after the trigger keyword. Do not dump the skill body and wait — act.
The Rule
The same engineering rigor that applies to your own work applies when reviewing others' work.
When reviewing a PR, check changes, or provide feedback on someone else's implementation, apply the same analytical rigor — not rubber-stamp approval.
When to Use
- Reviewing a PR, merge request, or diff someone else authored
- Asked to "check," "review," or "approve" code changes
- Pair-reviewing changes before merge in a shared branch workflow
- Evaluating a dependency upgrade or third-party contribution
Why This Gate Exists
Failure Pattern: Reviewing PRs superficially because "it's their code" — looking at the diff in isolation without:
- Tracing the full data flow
- Checking blast radius of changes
- Verifying integration points
- Running the actual changes locally
This allows the same bugs to slip through that disciplined pre-commit checks prevent in your own work.
Code Review Checklist
BEFORE approving or providing feedback:
1. Data Flow Analysis
For each changed function/component:
WHERE does the input come from?
WHERE does the output go?
WHAT transforms happen in between?If the PR adds a new field or parameter:
- Does it flow through ALL intermediate components?
- Are there "silent pass-through" files that need updating?
- Does the field reach its final destination?
2. Blast Radius Verification
# Search for OTHER usages of modified functions
grep -rn "functionName" --include="*.ts" .
# Check if changes break existing callers
# Are ALL callers updated?
# Are tests updated for changed signatures?
# 🔴 INBOUND REFERENCE SCAN (mandatory for renames/moves/deletes)
# When files are renamed, moved, or deleted — scan the ENTIRE repo,
# not just the changed directory. Other modules that reference old
# paths will silently break.
git diff --diff-filter=RD --name-only main..HEAD | while read old; do
grep -rn "$(basename "$old")" . --include="*.md" --include="*.ts" \
--include="*.sh" --include="*.json" | grep -v "$(dirname "$old")"
doneQuestions to answer:
- How many places call this code?
- Did the PR update ALL of them?
- Are there cross-repo consumers not in this diff?
- If files were renamed/moved/deleted: Did the author grep the ENTIRE repo for references to the old paths — not just the directory they refactored?
3. Integration Point Check
| Integration | Question to Ask |
| API boundaries | Do request/response types match across services? |
| Database | Are schema changes applied? Migrations needed? |
| External APIs | Does the external service accept these changes? |
| Config | Are config changes applied? |
| UI | Does the admin UI expose new fields? |
4. CI/Build Verification
- Is CI actually passing? (Not just "mergeable" — actually green)
- Are there test failures being ignored?
- Did lint pass?
5. Factual Claims Verification
If the PR or associated documentation makes claims about external system state, verify each claim against the system of record. Do not treat metadata as stylistic — it is falsifiable.
| Claim Type | Verification Method |
| PR/merge status | Query your PR platform's API — verify the status field, not preview artifacts |
| "Tests pass" | Check CI run status, not just the author's word |
| Deployment state | Query pipeline or environment APIs |
| Ticket/issue state | Query issue tracker API |
| URLs and links | Fetch or query to confirm they resolve |
| Dependency versions | Check lockfile or manifest directly |
PR platform gotcha: Some PR platforms generate a preview merge commit for every open PR. This does NOT mean the PR is merged. Always check the PR status field via the API before concluding a merge occurred.
The Review Gate Function
BEFORE approving any PR:
1. DATA FLOW: Did I trace where new fields/params flow FROM and TO?
2. BLAST RADIUS: Did I check for usages OUTSIDE the diff?
3. INTEGRATION: Did I verify the changes work at service boundaries?
4. TESTS: Are there tests for the new functionality?
5. BUILD: Is CI passing? (Not just "mergeable" — actually green)
6. FACTS: Did I verify every claim about external state (PR status, deploy status, ticket state, URLs)?
If I can't answer YES to all → don't approve, ask questions or flag gapsRed Flags to Watch For
| Pattern | Risk |
| New field added to type but not passed through routers | Data loss / silent failure |
| Parameter added to function but only some callers updated | Runtime errors in untouched code |
| Changes in one repo without corresponding changes in dependent repos | Integration failure |
| Tests pass but only mock the changed component | Real integration may fail |
| "Rough draft" or "WIP" language but submitted for review | Incomplete work |
| Files renamed/moved but blast radius scan limited to changed directory | Broken consumers in sibling modules (inbound reference blindness) |
| Test suite validates only the refactored directory, not repo-wide | False-green: tests pass but broken refs exist outside test scope |
Output Format for Code Review
When providing code review, structure feedback as:
## Code Review: [PR Title]
### ✅ What's Good
- [Specific strength]
### ⚠️ Questions / Concerns
- [Question about data flow]
- [Missing integration check]
### 🚫 Must Fix Before Merge
- [Blocker issue]
### 📊 Engineering Rigor Check
- [ ] Data flow traced end-to-end
- [ ] Blast radius verified (checked for usages outside diff)
- [ ] Integration points verified
- [ ] CI passing (actual green, not just mergeable)
- [ ] Tests cover new functionalityIf you can't check off all boxes, the review is incomplete.
Anti-Patterns
| Anti-Pattern | Detection | Correction |
| Rubber-stamp approval | No substantive comments | Find ≥1 concern per review |
| Style-only focus | All comments are formatting | Check logic, edge cases, security first |
| Nitpick avalanche | >10 minor findings, 0 critical | Prioritize: critical → important → minor |
| Context-free review | Comments without understanding intent | Read PR description + linked issues first |
| Drive-by "LGTM" | Single word approval | Requires ≥3 substantive observations |
Failure Modes
| Failure | Fix |
| Rubber-stamp approval without tracing data flow | Use the 6-point gate function checklist — if any box unchecked, don't approve |
| Reviewing diff in isolation without blast radius | Run grep for all callers of modified functions before approving |
| Trusting PR metadata claims without verification | Use Factual Claims Verification table — one API call catches stale status |
Companion Skills
- code-review-battery: Parallel specialist reviews (heavier than this checklist)
- receiving-code-review: How the PR author should process your feedback
- progressive-code-review-gate: Pre-commit gate (uses this checklist internally)
- inter-agent-review-protocol: File-protocol review (requesting side)
- code-review-respond: File-protocol review (reviewer side)
- micro-harsh-review: Per-batch review (lighter)
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.

