/security:hardening-proposalfrom security
Turns 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.
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.
Individual patches close individual holes; a hardening proposal closes the class. Findings that look separate usually violate the same invariant — the proposal's job is to name that invariant, define what "fixed" would mean as a testable property, and lay out distinct ways to get there so the decision is made on tradeoffs, not on the first idea that worked.
Group the findings by the property they each break, not by file or by CWE number. Three injection findings, a path-traversal, and an SSRF may all be one invariant — "untrusted input never reaches a sink without passing a context-appropriate control." Naming the shared invariant is what turns a list of patches into an architectural decision. A finding that fits no cluster gets its own; do not force it.
For each cluster, state the invariant the hardened system will hold, phrased so it can be falsified: not "input is validated" but "every SQL sink receives only parameterized values; string-concatenated SQL fails a build check." A target invariant you cannot write a test or a lint rule against is an aspiration, and it will not survive contact with the next feature. This is the same discipline as an architecture-spec design invariant, applied to security properties.
For each cluster, present a baseline (what holds today, and its residual risk) plus two or three genuinely distinct options — distinct in mechanism, not three flavors of the same idea. Typical axes of real difference: fix-at-the-sink vs fix-at-the-boundary vs remove-the-capability; runtime enforcement vs build-time enforcement; library adoption vs in-house control. If two options collapse to the same tradeoffs, they are one option, not two.
Pressure-test the leading option with the falsification-review discipline: state the strongest case against it and the evidence that would flip the choice, before presenting it as the recommendation. If the companion is unavailable, check the counterargument and the proposed control's failure mode directly before recommending it.
Score each option across the dimensions that actually decide it — coverage of the cluster, blast radius of the change, performance cost, developer friction, time to implement, and residual risk. Be honest about unknowns: where a dimension is genuinely unknown or a wash, write "unknown" or "neutral" rather than omitting the cell — an omitted tradeoff reads as no tradeoff and biases the choice. A before/after diagram for the recommended option makes the boundary change legible; render it with the doc-visuals discipline when available; otherwise use a simple diagram whose boundaries match the proposed mechanism.
Matrix layout, the option skeleton, and the honesty gates are in references/proposal-format.md.
Each cluster names a falsifiable target invariant. Each option is distinct in mechanism and scored on the same dimensions, with unknowns marked rather than hidden. The recommendation states its driver and the condition that would change it. A proposal that offers one dressed-up option, or a matrix with no "neutral"/"unknown" cells anywhere, has probably hidden a tradeoff.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smithdak/skillsmith --plugin security3 skills in this plugin
/security-diff-reviewSecurity 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./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