Reviews PRs, diffs, branches, or commit ranges with evidence-backed P0-P3 findings, A-F ship grades, and fix paths. Supports findings-only, grade-only, and fix modes across seven review lanes including security and deploy safety.
Ships in suede-code. 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.
Read when SKILL.md points to them; scripts run unread.
One skill for judging code: what is wrong, and whether it ships. Every finding has a file, evidence, and a fix path. Every grade has the evidence that earned it. No finding without evidence; no volume without signal.
Runs only when asked. Never fire this as a side effect of a diff, a save, or a commit.
An agent with repository read access and Git; Bash is needed for local tests and the bundled commit-dirt scan. Fix mode additionally needs authorized file edits. Review can proceed with explicitly unverified runtime checks when execution is unavailable.
Every check, grade, and ship verdict here is a recommendation to the user, not a control on the agent.
ship, ship-with-caveats,
hold, letter grades, and BLOCKED items are advice attached to the work.| Request sounds like | Mode | Emits |
|---|---|---|
| "review and grade", "is this safe to ship", "check this PR" | full (default) | Findings, grade, deploy safety, commit dirt, ship gate |
| "findings only", "no grade", "line by line", "find the bugs" | --findings-only | Findings, deploy safety, commit dirt, ship gate. No letters. |
| "grade only", "give it a letter", "A-F verdict", "should this merge" | --grade-only | Lane grades, caps, required upgrades, ship gate. No findings list. |
Grade-only still runs Step 1 (Instant-F) and still reads the code. It skips the itemized findings output, not the investigation.
Other modes that combine with any of the above:
--fix: apply fixes (see Fix Mode).--threat-verify: confirm declared threat-model mitigations exist.
Procedure in references/threat-verify.md; read it only in this mode.Depth (state it at the top of every output):
--quick (about 2 min): pattern scan for obvious bugs, secrets, missing null
checks, injection, broken error handling. No cross-file analysis.--standard (default, about 10 min): per-file correctness on changed paths,
language traps, state handling, test coverage of changed behavior, call graph
within changed files, maintainability baseline.--deep (about 25 min): full import graph, call-chain tracing, whole-repo and
history pass, critic lanes. Use for auth, payments, migrations, public APIs.Model: Sonnet by default. Recommend Opus for auth, payments, and public API surfaces.
Name three things before analysis:
#123, Closes #45), a path the caller
passed, a matching file under docs/ or specs/. If none exists, write
"no spec available" and judge intent from the PR description alone. Never
invent requirements.Pin the comparison point and prove it is reviewable: git rev-parse <base>
resolves, diff with three dots (git diff <base>...HEAD) so the comparison
runs against the merge-base, and the diff is non-empty. A bad ref or empty
diff fails here in one line.
Build it before judging the diff:
Flag beyond-the-diff risk when related files, defaults, docs, env, or deploy requirements no longer agree.
Do not hand-review what a tool already decides. Detect what the repo ships
(package.json scripts, config files, lockfiles) and run only that. Never add
a tool the repo does not use. Never report a result you did not run.
| Stack | Type check | Lint | Test | Other |
|---|---|---|---|---|
| Web / Node | npx tsc --noEmit | npm run lint (changed files) | npm test | npm audit when deps changed |
| MCP server (Node) | node --check <server>.mjs | configured linter | repo MCP tests | One stdio session: initialize, notifications/initialized, then list/call/read/get |
| iOS / Swift | the build is the check | SwiftLint if configured | XCTest target | xcodebuild -scheme X -destination 'platform=iOS Simulator,name=<device>' build |
| API / backend | compile step if any | configured linter | contract or schema tests | OpenAPI validation against the live route |
Severity mapping: a type error on a changed line is P2 (P1 on a critical path); a failing test on changed behavior is P1; a test that silently stopped running is P2; a reachable, exploitable dependency CVE is P0 or P1; a verified live secret is P0; a broken production build in a release review is P0.
Cite command, exit status, and the file:line it implicates. A gate that cannot run goes in Verification as "not run" with the reason.
House rules bind. Read CLAUDE.md, AGENTS.md, CONTRIBUTING.md,
.editorconfig, and formatter, linter, or review config. Do not flag what a
rule permits; do flag what it forbids. The nearest-ancestor rule wins for files
under its path. When the user dismisses a finding as deliberate, record it in
one line (pattern, why allowed, path scope) and do not raise it again.
Any match is an automatic F and a P0 finding. Report file and line. Other lanes cannot raise the grade.
alg: none or a hardcoded secret.Load only the sections that match the diff:
references/traps-web.md: TypeScript, React, accessibility, Next.js, SEO
impact, database (Drizzle, Prisma), performance and Core Web Vitals.references/traps-swift-ios.md: Swift, SwiftUI, and client-server contract
drift for iOS.references/maintainability-baseline.md: twelve structural checks for
--standard and --deep, diff-scoped and always labeled as judgment.Runs automatically when the diff touches auth/, api/, middleware/,
routes/, pages/api/, or imports crypto, session, or payment modules. Cite
the category in each finding using the OWASP Top 10:2025 numbering: A01
Broken Access Control (now includes SSRF), A02 Security Misconfiguration, A03
Software Supply Chain Failures, A04 Cryptographic Failures, A05 Injection, A06
Insecure Design, A07 Authentication Failures, A08 Software or Data Integrity
Failures, A09 Security Logging and Alerting Failures, A10 Mishandling of
Exceptional Conditions. API and mobile changes also map to the OWASP API
Security Top 10 (2023) and MASVS. What counts as a finding per category is in
references/security-baselines.md.
Observability delta (any new handler, endpoint, job, cron, or consumer):
flag catch blocks that only console.error or swallow silently; new paths
with no log on entry or failure; React subtrees with no error boundary; new DB,
external API, or model calls with no timing or trace span; analytics events
the old code fired and the new code dropped; background jobs that finish
without logging count, duration, or failure reason.
--deep only)git log -L or git blame the touched lines. A change that
reintroduces a previously fixed shape is a regression; cite the prior commit.hold and name the smallest next check.A whole-repo claim with no named symbols is not evidence.
sequenceDiagram or flowchart only when data crosses
three or more boundaries or an async, auth, or payment path changes.--grade-only)For full and grade-only modes, read the complete grading contract before assigning a grade. It defines all seven lanes, letter meanings, gate mapping, surface caps and debt weighting. An Instant-F or deploy-safety result still applies in every mode; never assign a letter from impression.
Rate each pass | conditional | block:
git revert cannot undo it (migrations, sent email,
charges, deletes, storage writes, queue publishes) → block.~0% (flagged), ~partial (one flow), or
~100% (shared middleware, auth, hot query).Run the bundled scanner from the target repo instead of eyeballing:
bash <skill-dir>/scripts/commit-dirt-scan.sh main...HEAD, or pipe a diff
with -. It is read-only and always exits 0. Confirm each hit against the
diff before reporting. If it cannot run, check every added line by hand.
Seven categories: secrets and credentials; debug artifacts; conflict markers;
staged build output (node_modules/, .next/, dist/, .DS_Store, logs);
WIP breadcrumbs (DO NOT MERGE, TEMP:, lorem ipsum); oversized or binary
blobs over 500 KB; exposed internals (internal hosts, staging URLs, personal
emails). Rate each clean | suspicious | dirty. Overall DIRTY is a P0
finding and moves the gate to hold. SUSPICIOUS is named for the reviewer
to confirm.
Lead with findings by severity. Group a repeated pattern once ("appears in 4 files: ..."). If a structural defect exists, report it first and alone, and hold the line-level findings it governs as deferred.
P0 and P1 use the full block:
[P0] path/to/file.ts:142
Issue: JWT secret falls back to empty string; any token is valid when SECRET is unset.
Fix: process.env.JWT_SECRET ?? (() => { throw new Error('JWT_SECRET required') })()
Verify: set JWT_SECRET="" and curl /api/me: expect 401, currently 200.
OWASP: A04:2025 Cryptographic Failures
Confidence: high
P2 and P3 get one line each:
[P2] components/Feed.tsx:88, index used as key on .map(); use item.id.
Severity: P0 data loss, security exposure, payment loss, broken release, or unsafe public behavior. P1 likely production regression, auth bug, broken primary path, false published statement, missing deploy requirement. P2 real edge-case failure, incomplete state, test gap on changed behavior. P3 low-risk cleanup. A concern that cannot be tied to a file, route, command, or behavior goes under Open Questions.
Confidence is observable: high = reproduced, traced across the call
graph, or tied to a named failing input; medium = read, not executed;
low = looks wrong, nothing proves it. Label every P0 and P1. A low-confidence
security suspicion keeps its severity with the label attached; low-confidence
style notes collapse into one "nitpicks" line.
Before emitting, cut anything with no file:line and fix, anything a gate already reports, and anything that would not change the ship decision or earn a human reviewer's comment.
--fix or an explicit request)Auth and session behavior across app, API, native shells, and server · rights, provenance, licensing, royalty, and agent-commerce claims match implemented behavior · payment, wallet, x402, checkout, and credit flows fail closed · public pages invent no metrics, pricing, partners, testimonials, or release promises · deploy and account assumptions match local guidance before production claims · store screenshots, metadata, and privacy answers match the app · migrations, env, flags, cron, queues, webhooks, and secrets are documented · contracts do not drift across web, backend, mobile, and docs.
Open with Simple explanation: one plain paragraph a ten-year-old can follow covering whether it passed and the single biggest reason. Then, by mode:
Depth:
Findings (full, --findings-only)
Code Grade (full, --grade-only: 7 lanes + overall, cap applied, why, required upgrades)
Deploy Safety (all modes: 8 dimensions + SAFE TO DEPLOY | DEPLOY WITH CONDITIONS | DO NOT DEPLOY)
Commit Dirt (all modes: 7 categories + CLEAN | SUSPICIOUS | DIRTY)
Open Questions
Verification (checked / not checked, with commands and exit codes)
SHIP GATE: hold | ship-with-caveats | ship: [one sentence naming the blocker or caveat]
For no findings, say so and name residual risk or unrun checks. To revise a grade, name what changed. Silence means accepted.
Worked examples, read only when calibrating: references/worked-example.md
(a full pass on a real file) and references/worked-example-grade-only.md
(lane arithmetic in grade-only mode).
Worked contract gives a bounded input, expected output and failure check for this workflow.
CARD.md (opens in a new tab)agents/openai.yaml (opens in a new tab)references/grading-contract.md (opens in a new tab)references/maintainability-baseline.md (opens in a new tab)references/security-baselines.md (opens in a new tab)references/threat-verify.md (opens in a new tab)references/traps-swift-ios.md (opens in a new tab)references/traps-web.md (opens in a new tab)references/usage-contract.md (opens in a new tab)references/worked-example-grade-only.md (opens in a new tab)references/worked-example.md (opens in a new tab)scripts/commit-dirt-scan.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/suede-code:suede-codefrom suede-code
npx claudepluginhub jasoncolapietro/suede-creator-skills --plugin suede-code2 skills in this plugin
2 plugins in one repository ship this exact skill · first indexed Nov 26, 2026
Other plugins' skills for the same job