/threat-model:threat-model-authoring <target path for the threat-model document>from threat-model
Drafts phase 3.5 of a threat model from orientation brief, surface analysis, and maintainer answers. Writes threat-model.md to canonical §1.1–§1.19 structure with provenance tags.
Ships in threat-model. 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.
None: SKILL.md is the whole skill.
Phase 3.5. Write the deliverable to the section structure in output-structure.md. Read principles.md first — the style bar is "describe the project as it is, not as it should be," and "write so a human can read it": short, direct sentences (one idea each), plain words, active voice, real verbs over nominalizations, and short bulleted lists or table rows instead of piled-up noun stacks. Target the reading level of good developer documentation, not a research paper — accuracy first, but never at the cost of plain prose.
The deliverable deliberately mixes both kinds of content in one document:
threat-model.yaml is threat-model-sidecar's job.)SECURITY.md or an
equivalent authoritative model existed; retain every source claim until a
maintainer explicitly approves removing the map.QN on an
assumption or inferred tag resolves to §1.18. No hedge-tags ("implicit",
"documented in purpose", "generally known").unresolved / inferred for dimensions where a
guarantee plausibly exists but was not confirmed. This is the main lever for
cutting MODEL-GAP without weakening closure safety. It is also the easiest
thing in the model to overdo, so keep it inside the three bounds in
output-structure.md: an absent guarantee is a disclaimer, but an absent
behaviour you scanned for is a §1.5 assumption; a disclaimer carries only as
far as the source you cite actually reaches; and a guarantee "plausibly
exists" when the project has historically fixed reports of that class. Give
every disclaimer a boundary and a tier — triage fails closed on a missing
tier, so an untiered disclaimer escalates every report it should have
answered.security-critical tier. If the
guarantee is unratified, leave the matrix row unresolved and put the choice
to the maintainer in §1.18. Publishing an unratified security-critical
guarantee is worse than publishing a gap: integrators build on §1.11.relaxed policy); use (inferred, QN) when the question is genuinely open
(escalate-only under every policy). Do not relabel a guess as documented to
make it close — that launders the author's inference into the project's
authority and is forbidden.strict default, or relaxed). A draft with no inferred /
assumption is fully reviewed or overclaiming; mostly unratified is not
ready to publish.unratified draft when §3.7 applies), triage-policy declaration (strict
default / relaxed), provenance legend, glossary pointer (inline a short
plain-language glossary in the model — or copy glossary.md alongside
threat-model.md in the target repo and link that copy — so non-expert
readers can decode the jargon; use the reference
glossary as the source to inline or
copy from, and never link that skills-repo path from the published model — it
will not resolve in the target repo), draft-confidence count, sibling
models, generation metadata (producing model/agent + version, effort level,
and the plugins/skills actually used, or "human-authored"), and the boxed
triager quick-start whose steps reference sections that actually exist.
For the backtest note, on the initial 3.5 draft write exactly
- **Backtest note**: _pending phase 3.6_ and nothing more. Drafting is phase
3.5; you have not run the backtest and cannot know its result. Phase 3.6
replaces the placeholder with real figures, and self-check Gate 3 fails if the
placeholder survives to publication — which is the point. A drafted-in note
saying the backtest passed is how a model comes to certify a gate that never
ran.
On any later pass, never overwrite a real backtest note and never author
one yourself. Authoring runs again in the 3.7 revision loop, normally
after 3.6, so re-applying the placeholder here would delete the one figure
set the gate exists to check and fail the model on a gate it had passed.
The quick-start must open with the triage-policy step and close with the
provenance gate — which tag may close, which must escalate, and the
security-critical and silence floors — plus the closed / provisional /
escalated status vocabulary. A box that routes to a disposition without
gating the close is the single most common way a published model licenses a
close it is not entitled to make.### Worked routing examples table of 2–4
de-identified rows, at least one routing VALID, exported by phase 3.6.
On a re-run, preserve what 3.6 exported rather than re-deriving it.dependency-contract; add the all-status closure constraint.
Optionally add the Mermaid triage-decision flowchart when it aids a non-expert
triager — it must mirror the precedence order exactly, not introduce a second
rule.strict: never; relaxed: low-blast-radius
provisional closes only), and never a security-critical property-disclaimed,
KNOWN-NON-FINDING, or dependency-contract. An accepted model has no
inferred or assumption claims; retain review/draft status while any §1.18
item remains.unresolved matrix row and a
proposed-answer §1.18 question.Not applicable — <reason>.Root-level threat-model.md, beside threat-model.yaml and
threat-model.json, ready for the
threat-model-backtest gate and the threat-model-sidecar derivation. Keep it
to one sitting (3–8 pages) — sprawl is a smell.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alpha-omega-security/threat-model --plugin threat-model8 skills in this plugin
/threat-modelProduce a threat model for a targeted open-source repository or package: its implicit security contract (assumptions, guarantees, disclaimed properties, and known misuses), not an audit, pentest, CVE list, or build-hygiene review. USE WHEN asked to produce, write, or generate a threat model, model the security contract, or explain which threats a library accepts. This orchestrator runs the canonical workflow, delegates to threat-model-* specialists, and publishes threat-model.md, threat-model.yaml, and threat-model.json (authority: prose > YAML > JSON). To classify a finding against an existing model, use threat-model-triage. DO NOT USE FOR bug hunting, code review, CVE enumeration, or supply-chain/SDLC hygiene.
/threat-model-backtestBacktest phase 3.6 of threat-model production against historical findings before sign-off. USE WHEN a draft model must prove it can uniquely route real reports. Builds a stratified producer-side corpus across components and contract dimensions, clusters large corpora by sink and attack class, and routes each item blind to one §1.17 disposition. Reports MODEL-GAP, contradictory or ambiguous routing, coverage, qualified §1.15 candidates, and §1.18 questions. The corpus is not published. DO NOT USE FOR: drafting, sidecar generation, or triaging one new finding.Other plugins' skills for the same job