/nlsmdn:review-interfaces [--staged | --unpushed | --changed | --all]from nlsmdn
Review interface design for functions, classes, modules, components — naming, params, encapsulation, YAGNI, usability. Triggers "review interfaces".
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.
Interface design review for functions, classes, modules, and components.
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.
/review-interfaces # Review context-related code
/review-interfaces --staged # Review staged changes
/review-interfaces --unpushed # Review files changed across all unpushed commits
/review-interfaces --changed # Review unstaged changes
/review-interfaces --all # Full codebase audit (parallel agents)
| 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 | Glob source files, parallel agents |
--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.
Determine scope based on flags (see Scope table above)
Review each file against all 6 categories in the Interface Checklist below
Parallelize if scope has >5 files: spawn one sub-agent per category, each scanning all files for that category. Merge results and deduplicate.
Dispatch workers that return findings without editing files. Disable delegation tools where supported; read-only access alone does not prevent delegation. Any coordinating role needs explicit subtasks, a descendant limit, and a stopping condition in its brief.
Classify severity using Review grading; justify the impact with evidence.
Report findings grouped by severity using the Output Format below
Does the interface guide callers toward correct usage?
label prop AND children both accepting text content) — pick onecopy(string, string)) — use named params or wrapper typesremove vs delete vs destroy)open/close, start/end, add/remove) — both should exist if either doesdata, info, handle, process, manager) that obscure purposerender(true)) — use named options or separate functionsstring for a known set of values → use enum/union)null where an empty collection would eliminate null checks for callersstatus: string instead of status: 'active' | 'inactive'). Review caller usability here; language reviewers own representation details. A demonstrated bad transition or result belongs to review-correctness, even when a type change is the repair.a.getB().getC().doThing())For annotated BAD/GOOD code examples for each category, see references/interface-checklist.md.
## Interface Review: {scope}
### Critical Issues (Must Fix)
- {file}:{line} - {issue type}: {description}
**Impact:** {why it matters}
**Fix:** {solution with code example}
### Improvements (Should Fix)
- {file}:{line} - {issue}
**Fix:** {solution}
### Suggestions (Nice to Have)
- {file} - {issue}
Staged changes introduce a component with overlapping props:
/review-interfaces --staged
Reviews staged files and catches a <Button> component that accepts both label (string) and children for button text. Checks the precedence contract and real callers. An undocumented redundant choice is Nice to Have; inconsistent output on an ordinary caller path can be Should Fix. Suggests one clear label contract without assuming that the two props alone prove a serious defect.
Full audit finds god class with 15 public methods:
/review-interfaces --all
Parallel agents scan the full codebase by category. Finds a UserService class that handles authentication, profile updates, notification preferences, and billing — four distinct responsibilities. Suggests splitting into focused services.
Solution: If the interface is intentionally generic (e.g., a utility library), note the design decision in a code comment (e.g., // Intentionally flexible: used by 5+ consumers with different needs). Re-run the review and the context will help distinguish intentional flexibility from accidental over-engineering.
Solution: The 3-4 parameter guideline is a heuristic. Functions with 5 well-named, distinct-typed parameters may be fine. The real signal is: can a caller guess the correct argument order without checking the signature? If yes, the count is acceptable.
--all, use parallel agents per categoryWhat 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