/security:security-diff-reviewfrom security
Security review of one code change — a diff, PR, or branch — anchored to what changed, swept out to sibling call sites of any shared helper it touches. Use when the user says "security review this PR", "is this change safe to merge", or "run a security pass on my feature branch". Not for trust boundaries (threat-model), fixing a set of findings (hardening-proposal), or whole-repo audits.
Ships in security. 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.
Review a code change for reachable vulnerabilities. Anchor findings to the diff and follow affected dependencies far enough to establish the security consequence. A clean review is a valid outcome.
Read the changed lines, their callers, supporting code, and relevant controls. When a shared parser, authorization guard, escaping function, or query builder changes, inspect its other call sites for the same failure. Track unchecked callers as coverage limits instead of claiming the sweep is complete.
For each candidate establish an untrusted source, a dangerous sink, a reachable path between them, and the missing or ineffective control. Account for middleware, wrappers, tenant boundaries, and deployment conditions. A category label or suspicious function name is insufficient evidence.
Example: an endpoint may lack a visible ownership check while shared middleware already enforces it. Verify that middleware covers this route and the resource identifier used by the sink before reporting an authorization bypass.
Use references/static-finding-assessment.md for ambiguous reachability or confidence. Apply the falsification-review question to consequential findings: what existing control would defeat this attack, and is it present?
Inherit the repository threat-model severity basis when available; otherwise use references/severity-policy.md. Account for attacker prerequisites and user impact consistently across findings.
For each supported finding give the location, source-to-sink path, missing control, severity with its driver, and affected sibling callers. Separate unverified candidates from findings. Do not perform live attacks or mutate external systems merely to strengthen a review.
If no candidate survives, say that no vulnerabilities were found within the reviewed scope. State what was checked and material verification limits; absence of findings is not a guarantee that a change is safe to merge.
Every finding has a reachable path and a consistent severity basis. The review states its actual scope, distinguishes evidence from assumptions, and accounts for shared callers without expanding into unrelated repository auditing.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/hardening-proposalTurns security findings into a hardening proposal: clusters them by violated invariant and lays out a baseline plus two or three distinct options with tradeoffs. Use when the user says "how should we fix these findings", "propose a hardening plan", or "options to close this class of bugs". Not for one change (security-diff-review), trust boundaries (threat-model), or triaging findings./threat-modelWhole-repo threat model, built before security review: trust boundaries, assets, attacker stories, and the severity basis reviews inherit. Use when the user says "threat model this service", "what's our attack surface", or "map the trust boundaries". Not for accidental failures (failure-mode-analysis), one change (security-diff-review), or fixing findings (hardening-proposal).Other plugins' skills for the same job
npx claudepluginhub smithdak/skillsmith --plugin security