/nlsmdn:review-correctness [target] [--staged | --unpushed | --changed | --all]from nlsmdn
Review code for bugs, incorrect state transitions, races, and failure handling, including closed-world branching, unknown external values, swallowed errors, masking defaults, invariants, deadlines, cancellation, and retry safety. Use for "review correctness", "review logic", "review defensive", "check exhaustiveness", "fail fast review", or "robustness review".
Ships in nlsmdn. 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.
Check correct behavior under normal inputs, failures, and changing assumptions. Perform both passes below; a general bug scan does not replace the failure-path checklist.
Read references/defensive-checklist.md for examples, language-specific exhaustiveness mechanisms, and supporting sources when a finding needs them. Follow this skill's ownership and evidence rules when using those examples.
Use only these finding priorities, in descending order:
Grade the demonstrated consequence, realistic reachability, and available recovery against project priorities. A category, missing convention, hypothetical future problem, or confidence that a claim is true does not set its priority. Do not assign automatic severity floors or ceilings. Keep unverified claims in validation gaps, outside the graded finding count; distinguish suggestions from defects. For plans, trace the consequence if implemented and state the assumptions.
Use the short labels Must Fix, Should Fix, and Nice to Have in summaries and ledgers.
Keep effort, verification status, user-facing change size, and tool/vendor diagnostic ratings
separate. When called by code-review, return its requested evidence and impact fields; the parent
owns scoring and final triage. Otherwise apply this rubric directly. Omit empty priority sections.
code-review, use its supplied file list and diff scope without recomputing them. An explicit target selects those files or directories; otherwise use the Scope table.AGENTS.md / CLAUDE.md and the contracts and tests around the scoped code. Trace callers, dependencies, and observable results, including guards outside the diff.Read-only, including temporarily. Do not edit the reviewed checkout. Run experiments only in a disposable copy, subject to the project's instructions. Do not create worktrees or change git state without authorization.
| Flag | Scope | Method |
|---|---|---|
| (none) | Context-related code | Files from the current conversation context: any files the user has discussed, opened, or that you have read/edited in this session. If no conversation context exists, ask the user to specify files or use --staged/--changed/--all. |
--staged | Staged changes | git diff --cached --name-only |
--unpushed | Files changed across unpushed commits | git diff --name-only $(git rev-list HEAD --not --remotes | tail -1)^..HEAD |
--changed | Unstaged changes | git diff --name-only |
--all | Full codebase | Enumerate source files |
--unpushed derives its range from git rev-list HEAD --not --remotes (oldest unpushed commit's parent → HEAD). If nothing is unpushed, or there is no remote/upstream (or the range walks back to the root commit) so it can't be determined reliably, stop and ask the user to pick another scope.
else, default, or wildcard that handles one specific known case by elimination, including negated predicates such as status != cancelled meaning active.0, empty strings/collections, default enum values) that conceal a missing required value or broken upstream contract.Assign the finding by its demonstrated consequence, not by the syntax of the fix. A concrete behavioral bug remains reportable even if a type or architecture change is the best repair. Do not suppress it merely because another reviewer could also discover it; the parent deduplicates shared root causes.
| Concern without a demonstrated behavioral defect | Primary reviewer |
|---|---|
| Invalid field combinations, weak domain types, error-type/API modeling | Language review for representation; review-interfaces for public contracts |
| Repeated validation, duplicated case tables, redundant guards | review-cleancode; review-architecture for placement across modules |
| Retry amplification across layers, backoff/jitter policy, failure isolation and cascading failures | review-architecture |
| Growing caches, buffers, queues, large reads, missing pagination, accumulated connections/listeners | review-perf |
| Attacker-controlled exhaustion, injection, authn/authz, security validation | review-security |
| Hidden shared state, effect placement, mutation of caller-owned data | review-functional; trace concrete race/order failures here |
| Missing tests or weak assertions | test --review; lack of a test alone is not a correctness finding |
| Version-specific library contracts and required API setup | review-library-use; use its documented conventions as evidence when tracing behavior |
For diff scopes, report defects introduced or exposed by the change, including newly affected consumers outside the diff. For explicit whole-file or whole-repo audits, review all selected behavior.
When called by code-review, follow its mode-specific finding and scoring instructions: comprehensive mode uses independent scorers, while quick mode uses the integrated reviewer’s self-verification. Standalone, use the shared Review grading section. Do not assign a severity floor to exhaustiveness/timeouts or a ceiling to misleading guards.
Each finding includes:
file:line, the problem, and its consequence.Finish with coverage: behaviors traced, related callers/tests inspected, checks run, and unresolved limitations. If nothing survives verification, say No actionable findings. and give the coverage statement.
Ordinary logic: review-correctness --staged finds a loop indexing one past the last element on a one-item input. Report the input and failing access, with the bound correction.
Future extension: a payment-kind branch handles PayPal in an unnamed final else. Name the future kind that would be refunded through PayPal; recommend explicit known cases and the language's exhaustiveness mechanism. An intentional generic display fallback is fine.
New value, old consumer: the diff adds PAUSED; a repository search finds if status != CANCELLED: charge(). Report the newly reachable charge of a paused subscription even though the consumer is outside the diff.
Ambiguous retry: a payment succeeds remotely but its response times out; the retry creates another payment. Trace the missing idempotency protection and duplicate charge. Separately, a cache that grows with each successful request belongs to performance.
No defect: all inputs are parsed at the boundary, branches are exhaustive, and operations inherit an enforced deadline. Do not request extra private-function validation, wildcard branches, or redundant timeout arguments.
Limit the exhaustiveness check to named cases where the fallback means one particular case. Test whether the same behavior would be correct for a future value, and respect intentionally open domains.
Trace callers, scope owners, runtime configuration, and library guarantees. Absence in this function is not evidence that protection is missing. Report uncertainty if the guarantee cannot be established.
Describe one root cause and its concrete consequence. Keep behavioral analysis here; leave a representation-only, capacity-only, or structural recommendation to its owner. The parent combines duplicate reports rather than counting them as independent defects.
What SKILL.md sets; muted values are Claude Code's defaults
highOther plugins' skills for the same job
65 skills in this plugin
/blind-spotsSurface consequential decisions a plan, design, or research brief left silently assumed, by interviewing the user in dependency order. Use when the user says "blind spots", "grill me", "stress-test this plan", "poke holes in this", "what am I missing", "interrogate this design", "what haven't I decided", or needs a loose idea or research brief clarified before work begins. Do NOT use for a clear factual lookup, to explain a previous reply in more detail (use `huh`), to generate ideas when it is unclear what to build (use `ideation`), or to review an already-written plan with agents (use `review-plan`)./brainstormWork out how to solve a problem the user can already name — interview them with `blind-spots` to understand it, generate structurally different approaches, validate each with an independent critic, then present the survivors with trade-offs and a recommendation. Use when the user says "brainstorm", "brainstorm approaches", "how should we solve/approach/tackle X", "what are our options", "compare approaches", "think this through with me", or wants solutions weighed before committing. Works on any topic, with codebase recon when a repo is involved; `--debate` adds external advisors for high-stakes calls. Do NOT use when stuck on what to build or what the problem is (use `ideation`), to probe an already-chosen plan (use `blind-spots`), or to pick a library or service (use `evaluate-tech`).npx claudepluginhub nielsmadan/skills --plugin nlsmdn