/nlsmdn:review-security [--staged | --unpushed | --changed | --all]from nlsmdn
Security audit for vulnerabilities, secrets, and unsafe patterns. Use before releases, after adding auth code, or when reviewing third-party integrations.
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.
Security audit for common vulnerabilities and unsafe patterns.
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-security # Review context-related code
/review-security --staged # Review staged changes
/review-security --unpushed # Review files changed across all unpushed commits
/review-security --changed # Review unstaged changes
/review-security --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.
Do NOT skip checks:
pip-audit, safety check, bundle audit, govulncheck) must be installed separately. If missing, they silently produce no output rather than erroring.--staged, --unpushed, and --changed review the full file content, not just the diff. Pre-existing vulnerabilities in the file are flagged even if the staged/unstaged/unpushed change is unrelated.Determine scope based on flags (see Scope table above). For --all, map the relevant
entry points, actors, protected resources, and trust boundaries before assigning checks.
Keep a compact in-session coverage list; no report files are required.
Review each file against the Security Checklist below, prioritizing categories in this order:
Parallelize if scope has >5 files: spawn one sub-agent per checklist category, each scanning all files. 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.
Check dependencies using the ecosystem-specific commands in the Dependency Vulnerabilities section
Validate candidates against the evidence requirements below, checking existing controls before accepting a finding. Classify severity using Review grading.
Report findings grouped by severity using the Output Format below. For --all, include
the coverage summary; a clean finding list does not establish complete coverage.
For each vulnerability, identify the actor and their actual capabilities, controlled input or action, intended permission or trust boundary, affected resource, and concrete security result. Cite the source path from entry point through effective controls to the sensitive operation. Check middleware, shared policy helpers, database policies, and relevant configuration rather than treating a missing inline check as proof.
State whether verification is source-only or reproduced locally, with exact file/line evidence and any decisive test result. A complete source trace can establish a defect without a live exploit. If deployment behavior, provider policy, or another unavailable fact decides the outcome, put the hypothesis in Validation gaps, with the missing fact and a bounded check; do not assume the control is present or absent, or include it in graded finding counts. Use dummy identities and records for local checks; a review does not authorize probing live services or accessing other users' data. Recommend the smallest fix that enforces the boundary.
For --all, summarize relevant surfaces and boundaries as examined, partially examined,
not examined, or not applicable, with evidence or a reason. Include skipped scanners
and unresolved deployment assumptions. Collect actual coverage from workers; assignment to an
agent alone does not count as examination. Keep this in the response, or return it to the
calling review coordinator, unless the user requested an artifact.
References below use OWASP Top 10 2021 category numbers (A01–A10).
For code examples, grep patterns, false-positive rules, and dependency audit commands, see references/security-checklist.md.
references/security-checklist.md for patterns and false-positive filtering rules* for sensitive APIs)review-perf; operation termination and cancellation belong to review-correctness.Run ecosystem-specific audit commands — see references/security-checklist.md for commands by ecosystem.
Keep scanner/vendor ratings as evidence. Grade each applicable vulnerability using Review grading after checking the deployed version, reachability, mitigations, and consequence.
For each vulnerability below include actor/input, boundary/resource, demonstrated result, source trace, and verification method. Keep non-security suggestions separate from defects.
## Security Review: {scope}
### Critical Issues (Must Fix)
- {file}:{line} - {vulnerability type}: {description}
**Fix:** {remediation}
### Improvements (Should Fix)
- {file}:{line} - {issue}
**Fix:** {remediation}
### Suggestions (Nice to Have)
- {file} - {issue}
### Dependency Vulnerabilities
| Package | Vendor severity | CVE | Fix Version |
|---------|----------|-----|-------------|
| {pkg} | Critical | CVE-XXXX-XXXX | {version} |
### Validation gaps
- {source-grounded hypothesis}: {missing fact}; {bounded validation step}
### Coverage (--all)
| Surface / boundary | Status | Evidence or gap |
|--------------------|--------|-----------------|
| {entry point → protected resource} | {examined / partially examined / not examined / not applicable} | {source paths, checks, or reason} |
Staged changes introduce SQL injection:
/review-security --staged
Reviews staged files and catches a login handler using string concatenation to build a SQL query with user input. Traces attacker-controlled input to the executed query. If it permits unauthorized data access or mutation, reports Must Fix with a parameterized-query repair; the syntax alone does not establish exploitability.
Pre-release audit finds hardcoded secret:
/review-security --all
Parallel agents scan the full codebase by security category. Finds a hardcoded API key in a config file and a JWT secret committed as a string literal, along with an overly permissive CORS policy allowing all origins.
Solution: If the flagged code is deliberate (e.g., a test fixture with hardcoded credentials, or a localhost-only CORS wildcard), add a comment like // SECURITY: intentional - <reason> so future audits can skip it with context.
Solution: Exclude generated files (e.g., *.min.js, dist/, generated/) from the scope and audit only the source inputs. For vendored code, check the upstream project's security advisories rather than scanning the minified output.
--all, use parallel agents per category for speedBoundary evidence and coverage guidance are informed by Cloudflare's security-audit skill.
What SKILL.md sets; muted values are Claude Code's defaults
xhighOther 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