/super-review:runfrom super-review
Orchestrator for the super-review plugin. 5-phase multi-agent PR review: parallel specialists (security, correctness, design, migration, perf, supply-chain, blast-radius) → evidence-quoted false-positive gate → cross-reviewer collision → Opus meta-verification → bounded synthesis. Phase 0 auto-loads sibling sub-skills (react, nextjs, postgres, orm, crypto, web-headers, llm-sec) based on stack detection. Use when the user says "review this PR", "super review", "/super-review:run", or pastes a github PR URL and asks for review. Tuned for L5 software + L5 cybersec.
Ships in super-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
super-review:run)Parallel specialist reviewers → adversarial false-positive gate → meta-verifier → synthesis. Findings ship only if twice-confirmed with quoted code evidence. Scope is bounded to the PR diff; pre-existing bugs are tagged separately and never block.
Phase 0: SCOPE-LOCK & GROUND (single agent; defines diff bounds + context brief)
Phase 1: PARALLEL REVIEW (N specialist subagents, single message)
Phase 2: FALSE-POSITIVE GATE (each finding re-derived from quoted code)
Phase 3: COLLIDE (cross-reviewer contradictions + negative space)
Phase 4: OPUS META-VERIFICATION (catch compounding pessimism + missed positives)
Phase 5: SYNTHESIZE & POST (bounded report → GitHub comment + local summary)
/sr fast): Phase 0 → Phase 1 (≤3 reviewers) → Phase 2 → Phase 5. Skip collision + meta. Use for PRs <200 LOC or trusted authors./sr sec): Phase 0 → cybersec + supply-chain reviewers only → full gate. Use when auth/crypto/IAM changes dominate.Announce mode at start: Using super-review in <mode> mode.
Every phase in the active mode MUST produce a named artifact. Missing artifact = skill failure; do not advance.
| Phase | Required artifact |
|---|---|
| 0 | <pr>/scope.md — written scope brief (file inventory, stack signals, CLAUDE.md rules quoted). Not implicit. |
| 1 | <pr>/reviewers/<role>.md — one file per dispatched reviewer with their findings + cleared list. |
| 2 | <pr>/gate.md — every Phase 1 finding listed with CONFIRMED/PARTIAL/NOT CONFIRMED/STALE verdict + quoted code. Not "top N". |
| 3 | <pr>/collide.md — KEPT/ESCALATED/DROPPED/NEW delta table. Skipping Phase 3 is the most common pipeline failure. If folding into synthesis seems faster, you are doing it wrong. |
| 4 | <pr>/meta.md — Opus verdicts on compounding pessimism, over-correction, missed-positives spot-check. |
| 5 | The GitHub comment body, posted or queued for approval. |
These artifacts can live under .claude/super-review/<pr-number>/ in the repo (gitignored) or in a tmpdir — what matters is they exist and are quotable in case of dispute. The point isn't paperwork; it's that a phase without an artifact didn't really happen.
Single agent, mandatory first step. Output is consumed by every later phase.
Resolve the PR target by priority:
gh pr view <n> --repo <owner/repo>git diff origin/main...HEAD (or master)git diff --stagedgit diffBuild the scope brief — pasted into every downstream reviewer prompt:
- PR title + author + URL
- BASE_SHA..HEAD_SHA + LOC stats (additions/deletions/files)
- File inventory split into: [in-diff-modified] [in-diff-added] [in-diff-deleted]
- Stack signals: languages, frameworks, ORMs, auth providers detected from package.json / go.mod / etc.
- **Project conventions** (`CLAUDE.md` + `REVIEW.md` + `AGENTS.md` + `GEMINI.md` if present) — **mandatory read.** Quote EVERY load-bearing rule into the brief verbatim, not summarized. Project rules outrank universal taxonomies when in conflict (e.g. CLAUDE.md says "Polish-first, no emoji, no exclamation points" — those become BLOCKERs even if not in OWASP). The orchestrator MUST surface project rules to every reviewer's prompt; reviewers cite project rules by file:line in CLAUDE.md the same way they cite OWASP IDs.
- Existing test commands: from package.json scripts / Makefile
- Related PRD/spec links if referenced in PR body
- Sub-skill loadout (see below): list of super-review sub-skills whose triggers fire on this diff
Sub-skill detection — also in Phase 0, decide which bundled reference packs to load into reviewer prompts:
| Sub-skill | Trigger (any of) |
|---|---|
super-review:react | react/react-dom in package.json; *.tsx / *.jsx in the diff |
super-review:nextjs | next in package.json; app/ or pages/ or middleware.ts in the diff |
super-review:postgres | pg / postgres / @neondatabase/* / pg-promise in deps; *.sql or migrations/ in the diff |
super-review:orm | @prisma/client / @mikro-orm/* / typeorm / drizzle-orm in deps |
super-review:crypto | crypto.create*, jsonwebtoken, jose, bcrypt, argon2, node:crypto imports in the diff |
super-review:web-headers | Response-header setters, middleware files, next.config.* headers config, vercel.json headers |
super-review:llm-sec | openai / @anthropic-ai/sdk / @ai-sdk/* / langchain / llamaindex / pinecone / weaviate / qdrant in deps or diff |
super-review:i18n | next-intl / react-intl / react-i18next / i18next / lingui / @formatjs/* / vue-i18n in deps, OR locales//messages//i18n/ dir, OR translation JSON/YAML in diff |
super-review:code-smells | Single-file diff > 150 LOC, new class with > 5 methods, function moves across files, OR explicit smells mode |
super-review:typescript | *.ts / *.tsx in diff OR tsconfig.json modified |
super-review:testing | Test files in diff (*.test.*, *.spec.*, __tests__/) OR ≥ 50 LOC production code added without corresponding tests |
super-review:accessibility | client/ / app/ / *.tsx/*.jsx/*.vue/*.svelte files OR HTML templates in diff |
super-review:graphql | graphql / @apollo/* / @graphql-tools/* / mercurius / type-graphql / nexus in deps, OR *.graphql / *.gql / resolver files in diff |
super-review:python | *.py files in diff OR pyproject.toml / requirements.txt / Pipfile modified |
super-review:go | *.go files in diff OR go.mod / go.sum modified |
super-review:rust | *.rs files in diff OR Cargo.toml / Cargo.lock modified |
super-review:kubernetes | *.yaml/*.yml with apiVersion: + kind: markers, OR helm/ / kustomize/ / k8s/ / manifests/ dirs in diff |
super-review:dockerfile | Dockerfile, Dockerfile.*, *.dockerfile, docker-compose.yml, .dockerignore in diff |
super-review:terraform | *.tf / *.tfvars / terragrunt.hcl / cdktf/ in diff |
super-review:llm-prompts | prompts/ dir, *.prompt.{md,txt}, *.prompts.{yaml,json}, eval/ LLM datasets, OR system-prompt string literals > 200 chars in code |
For each fired trigger, the orchestrator reads the corresponding skills/<name>/SKILL.md and appends its anti-pattern catalog to the Cybersec L5, Correctness, and Design reviewer prompts (or only the ones for which the catalog is relevant — e.g. crypto → Cybersec only). The brief records which sub-skills were loaded.
Hard rules for this phase:
Dispatch N specialist subagents in a single message with multiple tool calls (parallelism is mandatory; see superpowers:dispatching-parallel-agents). Each agent gets the scope brief + their role prompt below + an explicit evidence contract.
| Reviewer | Trigger | Skill to inherit (optional) |
|---|---|---|
| Cybersec L5 | always | compose with security-review |
| Supply-chain | package.json, go.mod, lockfile, postinstall script changes | — |
| Correctness | always | — |
| Design / blast-radius | always | — |
| Migration / DB | files under */migrations/*, schema files, ORM model changes | — |
| Performance | hot-path files (routes, services, queries) OR ≥30% LOC change in a service | — |
| Frontend correctness | files under client/, app/, *.tsx, *.vue, *.svelte | optional web-design-guidelines |
| Observability / ops | new endpoints, new background jobs, new error paths | — |
| Tests | any test file changes OR ≥50 LOC added without test changes | — |
Skip reviewers whose triggers don't fire. Don't dispatch unconditionally — generic reviewers produce generic findings.
Anti-folding rules (the most common dispatch mistake — one reviewer absorbing another's scope produces blind spots):
client/src/** modified files > 20, OR the PR adds permission-gated components (Viewer/Commenter/Editor views, role-aware modals, permission stores). Folding frontend into "design/correctness" is forbidden when these triggers fire — it consistently misses i18n parity, a11y on new modals, and role-gated affordance audits.Every finding must include:
[in-diff], [pre-existing], or [amplified-pre-existing]. Pre-existing findings are tagged, not dropped, never block.Red flags are not exempt. Every ⚠️ red flag entry MUST cite at least one file:line + verbatim quote that anchors the future scenario. "Concurrency hygiene drift" alone fails the contract; "concurrency hygiene drift: file A has lock, file B:line X is RMW, file C:line Y is TOCTOU" passes. Vibe paragraphs do not ship.
Banned phrasings (auto-flag if produced):
Each role prompt is a fixed template. Substitute {{SCOPE_BRIEF}} and {{PR_PATH}}:
You are a senior application security engineer (L5). Review only the changes in {{PR_PATH}} introduced between BASE and HEAD per {{SCOPE_BRIEF}}.
Enumerate threats against these canonical taxonomies. Cite the ID(s) with every finding:
OWASP Top 10 2021 (web application, current release as of 2026):
- A01 Broken Access Control · A02 Cryptographic Failures · A03 Injection
- A04 Insecure Design · A05 Security Misconfiguration · A06 Vulnerable/Outdated Components
- A07 Identification & Authentication Failures · A08 Software/Data Integrity Failures
- A09 Security Logging/Monitoring Failures · A10 SSRF
OWASP API Top 10 2023 (every endpoint touched is in scope):
- API1 BOLA (object-level authz — the IDOR class) · API2 Broken Authentication
- API3 BOPLA (property-level authz — mass assignment) · API4 Unrestricted Resource Consumption
- API5 Function-Level Authz · API6 Unrestricted Access to Sensitive Business Flows
- API7 SSRF · API8 Security Misconfiguration · API9 Improper Inventory Mgmt · API10 Unsafe Consumption of APIs
OWASP LLM Top 10 2025 (any code that calls an LLM, ingests AI output, or builds prompts):
- LLM01 Prompt Injection (direct + indirect via tool input, retrieved docs, file content)
- LLM02 Sensitive Information Disclosure · LLM03 Supply Chain (model/data provenance)
- LLM04 Data and Model Poisoning · LLM05 Improper Output Handling (model output used as code/SQL/HTML/shell)
- LLM06 Excessive Agency (model with tool access exceeds caller's privileges)
- LLM07 System Prompt Leakage · LLM08 Vector/Embedding Weaknesses
- LLM09 Misinformation · LLM10 Unbounded Consumption
CWE Top 25 2024 (cite specific CWE-IDs when applicable): CWE-79 XSS · CWE-787 OOB Write · CWE-89 SQLi · CWE-352 CSRF · CWE-22 Path traversal CWE-125 OOB Read · CWE-78 OS command injection · CWE-416 UAF · CWE-862 Missing authz CWE-434 Unrestricted upload · CWE-94 Code injection · CWE-20 Improper input validation CWE-77 Command injection · CWE-287 Improper authentication · CWE-269 Improper priv mgmt CWE-502 Deserialization of untrusted data · CWE-200 Information exposure CWE-863 Incorrect authz · CWE-918 SSRF · CWE-476 NULL deref · CWE-798 Hardcoded creds CWE-190 Integer overflow · CWE-400 Uncontrolled resource consumption · CWE-306 Missing auth for critical function
2025-era threat addendum (categories that have eaten real production code in the last 24 months and are not yet fully reflected in the lists above):
- Indirect prompt injection: user-controlled content + retrieved docs + tool output flowing into LLM prompts without delimiter discipline or output validation.
- AI output as executor input: model-generated SQL / shell / HTML / code passed to interpreters or rendered without sandboxing.
- Supply-chain primitives (post-axios, post-xz, post-eslint-config-prettier): any new dep with a
postinstall/preinstallscript; maintainer change < 90 days old; cross-major version bumps; lockfile-only edits withoutpackage.jsondeltas; missing sigstore/cosign or SLSA-provenance verification on releases that should have it.- Cloud IMDS / SSRF: requests to
169.254.169.254, link-local, RFC1918 private ranges, DNS-rebinding-prone host validation, IPv6 mapped variants.- JWT modern flaws: alg confusion (HS256 verified with RS256 public key as HMAC secret),
kidheader path-traversal/SQLi, missingaud/issvalidation, refresh tokens with no rotation, JWT-as-session-cookie.- Webhook handlers: missing HMAC signature verification, missing timestamp/nonce check (replay), constant-time compare not used.
- GraphQL: missing query depth/complexity limit, introspection enabled in prod, alias abuse for rate-limit evasion, batched mutations bypassing per-call auth.
- Prototype pollution sinks:
Object.assign/_.merge/JSON.parse → assignpaths with attacker-controlled keys (__proto__,constructor,prototype).- Serverless state reuse: in-memory caches/globals shared across invocations of the same warm Lambda/Worker — auth state, user context, request ID bleed.
- Modern XSS: trusted-types bypass; framework sanitizer escapes (
dangerouslySetInnerHTML,v-html,bypassSecurityTrust*,{@html}); attribute-injectedjavascript:URLs in<a href>/<form action>/<iframe src>.- Concurrency primitives: lost-update on counters/balances (read-modify-write to a remote store), TOCTOU on auth checks before async work, double-spending of share-link / invite tokens.
Confidence rule (Sentry-pattern): HIGH = vulnerable pattern + attacker-controlled input traced through the diff. MED = pattern matches but input source unclear. LOW = defense-in-depth only. Report only HIGH. Log MED/LOW separately for the meta-verifier.
Every finding must cite: OWASP ID(s) + CWE ID + file:line range + verbatim code quote + concrete exploit scenario (one sentence) + fix (one sentence). Cap: 8 findings. Don't list a category without concrete code evidence. Skip generic "you should validate input" — only specific, exploitable findings ship.
Review dependency and lockfile changes. Enumerate:
- New deps: package age, maintainer count, recent maintainer change, GitHub stars/last-commit, postinstall script presence, license drift.
- Version bumps: cross-major bumps, ranged versions opened up, lockfile-only edits without
package.jsonchange.- Typosquats: spelling-distance check against popular packages.
- Transitive surface: did the lockfile pull in known-CVE versions of transitive deps?
- Postinstall / lifecycle scripts in new deps — quote them. Confidence rule: HIGH only when a specific concrete risk is identified. Cap: 5 findings.
Review the diff for logic bugs introduced by the PR. Focus:
- Off-by-one, boundary errors, null/undefined paths the diff opens.
- Error contract drift: new endpoints with inconsistent error shapes; swallowed errors (
catch {}, default-zero patterns).- Comment-code drift: comments above changed lines describing the old behavior.
- Concurrency: shared mutable state introduced; missing locks/transactions; promise-fan-out without
Promise.allerror semantics understood.- Public API contracts changed silently.
- Time/timezone/locale bugs in new code.
- State machine: new states added without all transitions handled (
default: throw). Confidence rule: HIGH = reproducible bug or test case; MED = inspection-level; LOW = code smell. Cap: 8 HIGH-confidence findings.
You evaluate the damage this PR could cause beyond what the diff shows. Three lenses: structural risk, principle violations (only when load-bearing), distributed-systems hygiene (only when relevant).
Structural risks (every finding names the future damage scenario, not just the structure):
- Irreversibility: destructive migration, schema drop, ID-space change, deleted feature flag, removed backward-compat shim.
- Architectural lock-in: new abstraction layer that future code will accrete to; new framework for a single use case; new top-level module with weak boundary.
- Surface widening: new public API, new auth surface, new file upload path, new external network call, new IAM grant.
- Coupling introduced: new cross-module imports that weren't there; circular dependency risk; new shared mutable state.
- Foot-gun: API that invites misuse by callers (no type narrowing on dangerous values, easy-to-forget cleanup, error swallowed by design).
- Intent laundering: silent catch, swallowed error, fail-open default, default value masking a missing key.
- Chesterton's Fence: PR removes a guard / fallback / weird-looking code without naming what it was for.
Principle violations (only flag when concretely load-bearing — not every SRP nit ships):
- SOLID:
- SRP — class/module with two clearly distinct reasons to change in the diff
- OCP — pattern of modifying existing class to add a case, where the case should have been new subtype/strategy
- LSP — subtype broken parent contract (return type narrowed to throw, precondition strengthened, postcondition weakened)
- ISP — fat interface forces consumers to implement methods they don't use
- DIP — high-level module imports concrete low-level (
import { PostgresClient }in a use-case file)- DRY: real duplication of logic (copy-pasted with one tweak that will diverge), not "looks similar". Three similar lines is not duplication.
- YAGNI: new abstraction with zero current second caller. New config flag with no consumer.
- Law of Demeter:
a.b.c.d.method()chains crossing module boundaries.- Postel's Law: input-validation strictness drift on the receive side; new endpoint accepting fields the schema doesn't declare.
- Hyrum's Law: behavior other code now depends on, being changed silently (timestamp precision, ordering of iteration, default value, error message text used in tests).
- Conway's Law leak: module boundary mirrors team boundary, not problem boundary.
Distributed-systems checklist (flag only when the diff introduces or modifies network calls / queues / RPC / cross-service state):
- 8 fallacies of distributed computing — which one is the PR assuming away? (network reliable, latency zero, bandwidth infinite, network secure, topology stable, one administrator, transport homogeneous, transport cost zero)
- Idempotency: retries safe? unique idempotency key? at-least-once delivery handled? duplicate-detection window?
- Timeout / retry / backoff: defined? bounded? jittered? per-request budget?
- Circuit breaker / bulkhead / pool isolation on new external call?
- Clock skew: code assumes monotonic / synchronized clocks across hosts?
- Causality / ordering: messages may re-order? exactly-once vs at-least-once semantics explicit?
- Saga / 2PC / outbox / SAGA-compensating-action: distributed transaction across services without a coordination pattern?
- Partial failure: what happens if half the writes succeed?
Each finding must name the specific future scenario the issue enables, with a concrete trigger that would falsify the concern. Cap: 6 findings.
Review migration files + ORM model changes. Enumerate:
- NOT NULL added to tables with existing rows without backfill → write failure on rollout.
- Index creation locking:
CREATE INDEXon large tables withoutCONCURRENTLY(Postgres) / equivalent.- Drop columns / drop tables with no down-migration path or unstable foreign-key references.
- Down migration is lossy (recreates schema with defaults, discards data introduced by up).
- Multiple migrations on the same day that could be squashed before they ship — name them.
- Tenant-scoping: new tables missing tenant FK / RLS; new indexes missing tenant prefix.
- Transactionality: DDL outside a transaction in a step that needs atomicity. Cap: 6 findings.
Review hot-path changes. Enumerate:
- New N+1 queries in route/service code (ORM lazy load inside loop).
- Unbounded list operations (no LIMIT, no pagination) on user-touchable endpoints.
- Blocking I/O on hot path (sync FS, sync network).
- Memory growth: in-process caches without eviction; large objects retained in closures.
- Indexes: new queries without supporting index; new index without query usage.
- Hot-loop allocations (per-request work that could be hoisted). Confidence rule: HIGH only when the new code introduces the issue (don't pile on pre-existing hot paths the diff merely touched). Cap: 5 findings.
Review frontend changes. Enumerate:
- XSS sinks (
dangerouslySetInnerHTML,innerHTML,v-html,bypassSecurityTrustHtml).- Role-gated UI that hides affordances but leaves the action reachable (button
disabledwhile handler still callable from devtools).- Server-derived permissions ignored by client (canDoX flag computed but never consumed at call sites).
- CLS / layout shift on permission-loading skeletons.
- Optimistic UI that diverges from server state on permission denial.
- Hardcoded user-visible strings bypassing i18n (when i18n exists in the repo).
- Accessibility regressions: removed labels, removed focus management, new
div onClickwithout keyboard handler. Cap: 6 findings.
Review for production-readiness gaps in new code paths:
- New failure modes without logs / metrics / alerts.
- New endpoint without latency / error metric.
- New background job without retry / DLQ / monitoring.
- PII logged: emails, tokens, request bodies containing user data.
- New external dependency without circuit-breaker / timeout.
- Rollback path: feature flag gating new behavior? Or hard cutover? Cap: 5 findings.
Review test changes + the test coverage of new code:
- Structural-only tests (mock everything → assert call counts; no behavior verified).
- Snapshot tests as the only assertion on new logic.
- New branches uncovered: new role check / new state — no test for the denial path.
- Flakiness signatures: arbitrary
setTimeout,Math.randomin test bodies, time-of-day dependencies.- Test infra changes that mask failures (now-skipped tests, broadened mocks).
- Negative-case coverage missing: input validation tested only on happy path. Cap: 5 findings.
Single fresh subagent. Does not see Phase 1 reasoning — only the findings list + the actual code.
For each finding from Phase 1, the gate agent must:
CONFIRMED | PARTIAL | NOT CONFIRMED | STALE (code changed under the reviewer's feet).Drop rules (applied at the gate):
NOT CONFIRMED → drop.STALE → re-issue to reviewer with current code.PARTIAL → keep with adjusted severity, note the adjustment.Known failure mode: Sonnet adversarial verifiers exhibit compounding pessimism when chained without an Opus meta-pass. The gate agent must avoid rejecting on stylistic grounds — only the evidence rules above can drop a finding.
Cross-reviewer contradictions and negative space. Inspired by deep-thinking-partner Stage 3.
Run a single agent across all gate-confirmed findings:
Output: a delta of findings vs Phase 2. Categories: KEPT / ESCALATED / DROPPED / NEW (from negative space).
Opus, not Sonnet. Catches the failure modes Sonnet adversarial verifiers exhibit:
Output: a final findings list, ranked. This is the input to synthesis.
| Tier | Meaning | Examples |
|---|---|---|
| 🔴 BLOCK | Must fix before merge | Data loss, RCE, auth bypass, broken migration, mass-assignment of identity |
| 🟠 FIX-BEFORE-MERGE | Functional bug, missing test on load-bearing path, broken contract | Logic bug introduced, role-gate computed but unused, lossy migration down |
| 🟡 FIX-FOLLOWUP | Architecture / perf / observability concerns; file as issue | New abstraction lock-in, missing metric, blast-radius widening |
| ⚪ NIT | Tiny; cap 3, "plus N similar" for overflow | One-line fix, naming clarity that affects new code |
| 🟣 PRE-EXISTING | Bug exists on master; PR exposes/touches but doesn't introduce | Tagged separately; never blocks |
| ⚠️🟣 AMPLIFIED-PRE-EXISTING | Bug exists on master AND this PR materially widens its blast radius (e.g. moves it from self-only to cross-tenant) | Appears in BOTH the ⚠️ red-flag section (with the amplification scenario) AND the 🟣 footer (with the underlying bug). Never blocks merge, but must be filed as a follow-up issue. |
| ⚠️ RED FLAG | Damage beyond the diff — separate header section | Irreversibility, lock-in, supply-chain delta, foot-gun, intent laundering |
Hard caps on the posted report:
🔧 **Super review — <mode> mode**
Two-pass review (N parallel specialists → false-positive gate → Opus meta-verify). Only twice-confirmed findings below.
**Verdict:** <Ready to merge | Needs attention | Needs work>
---
### ⚠️ Red flags (damage beyond the diff)
<≤3 items, each: one paragraph naming the future scenario + at least one file:line + verbatim quote + the trigger to invalidate the concern. ⚠️🟣 Amplified-pre-existing items go here too, marked, and ALSO appear in the 🟣 footer.>
---
### 🔴 BLOCK — must fix before merge
<each finding: file:line, evidence quote, why-it-matters, fix>
### 🟠 FIX-BEFORE-MERGE
<same shape>
### 🟡 FIX-FOLLOWUP
<same shape>
### ⚪ Nits (≤3 shown; plus N similar)
<one-liners>
---
### ✅ Reviewed and cleared
<one-liners on what was checked and found clean — buys credibility for the BLOCK list>
---
### 🟣 Pre-existing bugs touched but not introduced (file separately)
<one-liners with file:line. NEVER blocks this PR. Recommend filing as issue.>
---
<sign-off line, optional persona>
--json-output <path>)When invoked with /super-review:run --json-output <path> ... (or --json-output - for stdout), the orchestrator writes a JSON document with the full findings list in addition to posting the GitHub comment / inline threads. Schema:
{
"version": "1",
"verdict": "Ready to merge" | "Needs attention" | "Needs work",
"mode": "full" | "fast" | "sec" | "smells",
"pr": { "owner": "...", "repo": "...", "number": 42, "base_sha": "...", "head_sha": "..." },
"config_loaded": true, // .super-review.json was found and parsed
"sub_skills_loaded": ["typescript", "react", "nextjs"],
"phase_timings_ms": { "0": 12000, "1": 242000, ... },
"estimated_cost_usd": 1.69,
"actual_cost_usd": 1.84, // sum of per-call usage
"findings": [
{
"id": "unique-stable-id-for-cross-pr-memory",
"severity": "BLOCK" | "FIX-BEFORE-MERGE" | "FIX-FOLLOWUP" | "NIT" | "RED-FLAG",
"skill": "cybersec" | "react" | "...",
"scope": "in-diff" | "pre-existing" | "amplified-pre-existing",
"file": "backend/src/server/hooks/registerHooks.ts",
"line": 21 | [20, 22], // single line OR range
"body": "<the full finding text — same prose that appears in the GitHub thread>",
"code_quote": "...verbatim code citation...",
"owasp": ["A09"], // present on cybersec findings
"cwe": ["CWE-532"], // present on cybersec findings
"fix_summary": "Export sanitizeUrl from a shared util; apply at the access-log boundary."
}
],
"cleared": ["string list of what was checked and found clean"],
"pre_existing_issues_filed": ["#142", "#143"] // if autoFileIssues: true
}
Consumers:
auto mode — captures this file to score against expected.jsonverdict + findings into custom reporters / Slack notifiersfindings[].id as the stable key into history.jsonlIf --json-output is unset, behavior is unchanged from v2.0 / v2.1.
Preferred: inline review threads. Findings are posted as per-line inline review threads via:
gh api repos/<owner>/<repo>/pulls/<n>/reviews \
-F commit_id=<head_sha> \
-F event=COMMENT \
-F 'body=<top-level summary>' \
-F 'comments[][path]=<file>' \
-F 'comments[][line]=<line>' \
-F 'comments[][body]=<finding body>' \
-F 'comments[][side]=RIGHT'
Why: each finding becomes a resolvable thread on the diff line where it lives; PR authors can mark Resolve conversation per-issue; line context renders inline. The single top-level review body contains only the verdict + finding index + red flags + cleared list — individual findings live in their respective threads.
If inline threads can't be posted (e.g. line not in the diff hunk because the finding spans a moved file), fall back to a single summary comment with that finding included inline.
Fallback summary-comment rules (unchanged):
--body-file, never via heredoc. Markdown bodies must be written to a temp file (e.g. /tmp/super-review-<pr>-body.md) and posted with:
gh pr comment <n> --repo <owner/repo> --body-file /tmp/super-review-<pr>-body.md
Why: shell heredocs mangle backticks. A ``` inside bash -c "$(cat <<'EOF' ... EOF)" consistently survives as literal \``` in the rendered comment, breaking every code fence. This bug shipped on the first production run of this skill — do not repeat it. Editing existing comments uses the same rule via gh api -X PATCH repos/<owner>/<repo>/issues/comments/<id> -F body=@/tmp/file.md.gh api repos/<owner>/<repo>/issues/comments/<id> --jq '.body' | grep -c '^```') and confirm the code-fence count is even and matches what you posted. Asymmetric or zero count = re-edit before declaring done.gh api -X DELETE) to avoid stacking — OR edit-in-place via PATCH (preferred when only content changed, keeps the original URL stable).gh issue create). Touching them on the PR creates scope creep — the lesson from real reviews.https://github.com/<owner>/<repo>/blob/<SHA>/<path>#L<start>-L<end>).file:path:line + a verbatim code quote (3-10 lines).bookId without authz check at controllers/foo.ts:42-48" passes.review invocation.superpowers:receiving-code-review. Chain into it after this skill posts..super-review.jsonIf the target repo contains .super-review.json at root, Phase 0 reads it and applies overrides. Schema reference: .super-review.schema.json at this plugin's root.
{
"$schema": "https://raw.githubusercontent.com/mattnowdev/super-review/main/.super-review.schema.json",
"caps": {
"block": 3,
"fix_before_merge": 5,
"fix_followup": 5,
"nit": 3,
"red_flag": 3
},
"disabledReviewers": ["frontend"], // skip frontend for backend-only services
"disabledSubSkills": ["accessibility"], // skip a11y if not relevant
"severityOverrides": { // promote/demote specific patterns
"new-endpoint-without-metric": "BLOCK",
"long-method": "NIT"
},
"patternAllowlist": [ // patterns the team consciously accepts
{ "skill": "crypto", "pattern": "math-random-tokens", "paths": ["tests/fixtures/**"] }
],
"redFlagAddons": [ // project-specific red flags
{ "name": "schema migration during business hours", "trigger": "migrations/*.ts" }
],
"crossModelCheck": { // Phase 4.5
"enabled": false,
"model": "gpt-5",
"onlyFor": ["BLOCK", "FIX-BEFORE-MERGE"]
},
"autoFileIssues": false, // auto gh issue create for 🟣 pre-existing
"tokenBudget": {
"warnAboveUsd": 1.00,
"abortAboveUsd": 5.00
}
}
Reviewers' prompts include the relevant overrides; the orchestrator validates the file against the schema and refuses to proceed if invalid (with the validation error).
Optional — strongest accuracy gain when present. If a tree-sitter helper is configured (via superReviewHelper config or ~/.claude/super-review/helpers/semantic-diff), Phase 0 invokes it to produce an AST-level diff: which functions/classes/symbols changed, their callers, type flow. Output goes into the scope brief and is consumed by reviewers to:
If no helper is configured, Phase 0.5 is skipped and reviewers use raw git diff (current behavior). Helper interface spec: see references/semantic-diff-helper.md in this plugin root.
Defends against "Claude agreeing with Claude" shared-prior risk. Enabled via config crossModelCheck.enabled: true. After Phase 4 (Opus meta), the orchestrator invokes the configured external model (GPT-5 / Gemini 3 / etc.) on the final findings list and asks: "Re-derive the impact of each of these N findings from the cited code alone. Report DISAGREE if the impact doesn't follow."
Any DISAGREE with concrete reasoning → demote one severity tier (BLOCK → FIX-BEFORE-MERGE, etc.) and flag in the meta artifact. Doesn't drop findings; just adjusts confidence. Skip if model returns rate-limit / timeout.
Triggered on demand, not automatic. When the PR author has replied to inline threads, the orchestrator can re-read its own findings against author pushback:
accept / partial / dispute.dispute: re-derive the finding from code. If the author cited concrete evidence (file:line, test result, external reference), retract with an apology comment. If the author said "no" without evidence, hold and explain why.Triggered via /super-review:run rereview <PR>.
Per-repo: .claude/super-review/<repo>/history.jsonl. Each line: { pr, finding_id, skill, pattern, severity, file_line, outcome }. Outcomes captured: merged (accepted), dismissed-by-author (with optional reason), dropped-by-meta, cross-model-disagreed.
Phase 2 reads history at startup and down-weights patterns this repo has historically rejected as FP (drop them at the gate unless evidence is HIGH-confidence + new file). Phase 4 escalates patterns this repo keeps re-introducing despite past flags (the PR doesn't fix it, history shows N similar occurrences → upgrade severity AND propose a CLAUDE.md edit).
Memory is gitignored by default (per-developer); teams can opt to commit it for shared learning.
Each phase emits a status marker to stdout (and to a 🤖 super-review status PR comment that's updated in-place when running in CI):
▸ Phase 0 (scope-lock + config + sub-skill detection)... done in 12s
▸ Phase 1 (parallel: 7 reviewers)... done in 4m 02s — 23 findings
▸ Phase 2 (false-positive gate)... done in 1m 14s — 14 confirmed, 9 dropped
▸ Phase 3 (collide)... done in 38s — 2 escalated, 1 new from negative space
▸ Phase 4 (Opus meta)... done in 51s — 1 demoted, 0 missed positives
▸ Phase 4.5 (cross-model check, gpt-5)... done in 27s — 0 disagreed
▸ Phase 5 (synthesize + post)... 14 findings posted as inline threads
This is the user-facing contract; no progress = the skill silently hung; debug accordingly.
Before Phase 1 dispatch, the orchestrator estimates token spend from: file count, average file size in diff, reviewer count, sub-skill catalog sizes. Output:
Estimated cost for this run:
Phase 1 (7 reviewers × ~25k tokens each) ~$0.92
Phase 2 (gate, 1 agent × ~40k) ~$0.18
Phase 3 (collide, 1 × ~30k) ~$0.14
Phase 4 (Opus meta × ~50k) ~$0.45
─────────
Total estimated: ~$1.69
If above tokenBudget.warnAboveUsd → confirm with user before proceeding. If above abortAboveUsd → abort and propose chunking.
/super-review:run --onboard runs a one-time "discover your stack + propose conventions" pass on a fresh repo:
CLAUDE.md listing inferred rules.super-review.json with reasonable caps for the team sizeUse once per repo.
If config autoFileIssues: true, every pre-existing bug discovered (but never blocking the PR per the scope rule) is auto-filed via gh issue create --label super-review-preexisting --title "..." --body "...". The PR comment includes a reference: "✅ 3 pre-existing bugs filed as separate issues: #142, #143, #144."
If autoFileIssues: false (default), they're just listed in the PR comment for the team to triage.
The super-review plugin ships these sibling skills. The orchestrator detects which apply to a given diff (see Phase 0 sub-skill detection table) and appends their anti-pattern catalogs to the relevant reviewer prompts. None are required — if none trigger, the pipeline runs with the inline taxonomy only.
super-review:react — React 18.3 → 19+ anti-patterns (useEffect races, hydration, key prop, use(), useActionState, React Compiler interactions)super-review:nextjs — Next.js 15/16 (Server Actions, RSC boundary, use cache directive, async request APIs, parallel routes)super-review:postgres — Postgres 16/17/18 (lock escalation, deadlocks, JSONB indexing, MVCC, pgBouncer, PG17 MERGE, PG18 virtual generated columns)super-review:orm — Prisma 5/6, MikroORM, TypeORM, Drizzle (N+1, transaction propagation, raw SQL escape hatches, Prisma 6 breaking changes)super-review:crypto — Application crypto (RNG, AES-GCM IV reuse, padding oracles, JWT, password hashing, RSA, TLS, key separation)super-review:web-headers — CSP / HSTS / CORS / COOP+COEP / Permissions-Policy / SRI / cookie attributes / CHIPSsuper-review:llm-sec — LLM app security depth (indirect prompt injection, output-as-executor, slopsquatting, excessive agency, tool-arg validation, vector store risks)super-review:i18n — Internationalization (key parity, ICU pluralization, locale-naive formatting, RTL, translated-text test assertions)super-review:code-smells — Fowler / refactoring.guru catalog (Bloaters, OO Abusers, Change Preventers, Dispensables, Couplers, plus Flag Arguments / Stringly Typed / Magic Numbers)super-review:typescript — TS 5.x specifics (any vs unknown, as vs guards, satisfies, using, branded types, assertNever, const type params, NoInfer)super-review:testing — Test-code quality (structural-mock-only, snapshot abuse, brittle selectors, missing negative cases, AAA violations)super-review:accessibility — WCAG 2.2 (focus management, target size 2.5.8, dragging 2.5.7, accessible auth 3.3.8/9, focus appearance 2.4.11)super-review:graphql — depth/complexity limits, field-level authz, N+1 + DataLoader, persisted queries, alias-abuse rate-limit bypasssuper-review:python — mutable defaults, bare excepts, type-hint drift, sync-in-async, dataclass slots, modern 3.12/3.13 featuressuper-review:go — goroutine leaks, context propagation, typed-nil interface, %w wrapping, channel direction, race-condition patternssuper-review:rust — unwrap/Clone discipline, async cancellation soundness, Arc<Mutex> vs channels, thiserror vs anyhow, unsafe + SAFETYsuper-review:kubernetes — resource limits, securityContext, NetworkPolicy, PDB, runAsNonRoot, secret-as-file vs envsuper-review:dockerfile — non-root user, multi-stage, .dockerignore, build-cache layering, secret mounts vs ARGsuper-review:terraform — state locking, for_each vs count, lifecycle.prevent_destroy, provider pinning, IAM via policy-documentsuper-review:llm-prompts — structured output schemas, eval datasets, instruction/data delimiters, output-length caps, version pinningsuper-review:audit-self — meta-skill that reviews super-review's own past findings on a repo, proposes config patches + prompt edits. Invoke periodically.deep-thinking-partner — Phase 3 COLLIDE is inspired by its Stage 3 pattern. If installed, delegate to it for richer adversarial collision; otherwise the inline instructions suffice.security-review (bundled with Claude Code) — a simpler one-shot cybersec pass. Use only for fast mode when you want a quick lighter scan; not a substitute for the OWASP/CWE-anchored Cybersec L5 reviewer above.obra/superpowers — dispatching-parallel-agents and verification-before-completion add rigor to Phase 1 / Phase 5 when installed.review skill.superpowers:receiving-code-review. Chain into it after this skill posts./super-review:run <PR_URL_or_number> — full pipeline (default mode)/super-review:run fast <PR> — fast mode (<200 LOC PRs)/super-review:run sec <PR> — security-only mode/super-review:run smells <PR> — code-smells emphasis/super-review:run --onboard — one-time stack detection + scaffolds CLAUDE.md + .super-review.json for a fresh repo/super-review:run rereview <PR> — Phase 6 re-evaluation after author has responded to inline threads/finishing-a-development-branch selects "merge" — chain into super-review:run for the final pass.For periodic skill calibration: /super-review:audit-self (separate sub-skill).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (mattnowdev/super-review) — no native marketplace selected
npx claudepluginhub p/mattnowdev-super-review22 skills in this plugin
/accessibilityAccessibility (WCAG 2.2) review referenceWCAG 2.2 accessibility anti-patterns reference loaded by super-review:run when the diff touches client-facing UI. Covers the new 2.2 criteria (Focus Appearance, Dragging, Target Size, Consistent Help, Redundant Entry, Accessible Authentication) plus the perennial misses — div-as-button, focus management on route/modal change, contrast, label/placeholder confusion, aria-hidden on focusable elements, alt-text discipline. Patterns automated axe/Lighthouse scans miss. Load when `client/`, `app/`, `src/`, `*.tsx`/`*.jsx`/`*.vue`/`*.svelte` files in diff, OR HTML templates touched./audit-selfsuper-review:audit-selfSelf-audit sub-skill for super-review. Reads past super-review comments on a PR (or across multiple PRs in a repo) and audits the audits — surfaces repeated false positives, missed-positive patterns, and proposes concrete skill-prompt edits. Use when the user says "audit super-review", "review the reviews", "what's super-review getting wrong", "/super-review:audit-self", or wants to tune the skill against this team's actual usage history./code-smellsCode-smells review referenceCode-smell catalog (Fowler / refactoring.guru) adapted for PR review. Covers Bloaters (Long Method, Large Class, Primitive Obsession, Long Parameter List, Data Clumps), OO Abusers (Switch Statements, Temporary Field, Refused Bequest), Change Preventers (Divergent Change, Shotgun Surgery), Dispensables (Duplicate Code, Dead Code, Speculative Generality, Comments-as-explanation), Couplers (Feature Envy, Inappropriate Intimacy, Message Chains, Middle Man), plus Flag Arguments, Stringly Typed, Magic Numbers. Load when the diff has a large single-file change (>150 LOC), a new class with >5 methods, function moves across files, or the user explicitly asks for a refactor review./cryptoCrypto review referenceCryptography anti-patterns reference loaded by super-review:run. Covers weak RNG, AES-GCM IV reuse, AES-CBC padding oracles, JWT alg confusion, password-hashing parameters, RSA padding, TLS verification bypass, key separation, secrets in logs. Load when the diff touches `crypto`/`jose`/`jsonwebtoken`/`bcrypt`/`argon2` or auth code paths./dockerfileDockerfile review referenceDockerfile + container-image anti-patterns reference loaded by super-review:run when the diff touches container build files. Covers root-user execution, multi-stage hygiene, build-cache layering, secret handling, base-image pinning, and reproducibility. Load when `Dockerfile`, `Dockerfile.*`, `*.dockerfile`, `docker-compose.yml`, or `.dockerignore` appears in diff./goGo review referenceGo 1.22+/1.23/1.24 anti-patterns reference loaded by super-review:run when the diff touches Go files. Covers goroutine leaks, context propagation, nil-interface traps, error-wrapping, defer-in-loop, range-over-func, weak pointers, and the per-iteration loop variable change. Load when `*.go` files in diff, or `go.mod` / `go.sum` modified.