/threat-model:threat-model-sidecar <path to the prose threat-model document>from threat-model
Emits and validates machine-readable threat-model.yaml and threat-model.json companions from prose threat model documents. Use when publishing a threat model for automated triage or dependency analysis.
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.
Owns §1.19: emit threat-model.yaml and threat-model.json alongside the
prose document so shared triage tooling can consume the model without parsing
prose. Follow the schema in
sidecar-schema.md for the YAML
and the mapping in
json-report-schema.md for
the JSON exactly — companions are only useful to tooling if they are
structurally uniform across projects. Authority order: prose > yaml >
json. The JSON is a flat, lossy export for consumers of schema.json; it is
never a triage input.
prose_version to the canonical
relative prose path plus SHA-256 of its exact UTF-8 bytes, and regenerate
whenever the prose changes.schema: threat-model-sidecar/v2 fields as
given; extend with project-specific keys only under an x- prefix. The
JSON schema forbids extensions entirely; what does not fit stays in the YAML.documented and maintainer become documented; inferred and
assumption become inferred. The collapse only goes down — a record whose
sidecar provenance is inferred or assumption must never surface in the
JSON as documented. That direction hands a JSON-only consumer a licence the
model never granted.components (scope: in|out, out-reason, and per-
component reachability precondition).host_side_effects[] — explicit present/absent/conditional host
effects with components, conditions, and provenance.entry_points[].parameters[] — every attacker-controllable
parameter must have a non-empty caller_must_enforce and at least one
value in its control_kinds array.contract_dimensions[] — all eight required dimensions for
every in-scope component, including explicit not-applicable rows;
claimed/disclaimed rows reference stable property IDs and unresolved rows
reference §1.18 question IDs.outputs[] (taint: same-as-input | sanitized | constrained,
in-scope component, separately provenanced invariants, and downstream
must-not-assume records).adversaries[] (in/out of scope, capabilities, excluded
capabilities, goals, provenance).dependency_policy + dependencies[], including stable
relied_on_properties, acknowledged obligation IDs, adversary capabilities
actually forwarded, and output channels/taint handling; an empty list plus
zero_runtime_dependencies: true is the explicit zero-dependency claim,
not an omission. Leave outputs_consumed: [] unless the project holds an
output-sanitization-kind property about a dependency's output — each
entry's supports_property_id must reference such a property. If the
project passes a dependency's output straight through and disclaims
sanitization (the common case), the list stays empty; the passthrough taint
is already recorded in §1.8 outputs[] and the §1.12 disclaimers. Do not
point supports_property_id at a behavioral, atomicity, or probabilistic
property.build_policy + build_flags[] (default, security_relevant,
support stance, affected property IDs/effects, provenance).properties_claimed[] (kind, components, tier, conditions,
violation symptoms, provenance).properties_disclaimed[] (components, conditions,
false_friend: true|false, provenance).downstream_responsibilities[] linked to obligation/property IDs.known_misuses[], the structured basis for VALID-HARDENING.known_non_findings[], with component/sink, conditions, and
discharged_by stable IDs sufficient for exact (not fuzzy) matching.dispositions plus disposition_precedence — the fixed closed
enum and first-match order, verbatim.draft, unratified-draft,
under-review, accepted) using the mapping in sidecar-schema.md; set
confidence to match the §1.1 counts exactly. Project the header's triage
policy to the top-level triage_policy (strict default / relaxed).
Carry tier (security-critical | correctness-only) on every
properties_disclaimed[] entry so a consumer can enforce the assumption
security-critical floor. Project the §1.1 generation metadata to the
top-level generation block (model, effort, plugins[]); omit the block
only when the prose header records a fully human-authored model.threat-model.json per
json-report-schema.md:
documented/maintainer → documented,
inferred/assumption → inferred. A JSON block built from many sidecar
records takes the weakest of the set. Collapse confidence the same way:
documented + maintainer, inferred + assumption.OUT-OF-MODEL: dependency-contract has no JSON value; a JSON-only
consumer falls through to model_gap, which escalates. Do not invent a
label for it.entry_points to one row per (entry point × parameter). An
attacker_controllable: conditional row must carry a non-empty
condition.why_safe, and point cites at the discharging
entry in the same document (properties_provided[3] style). The JSON
drops the sidecar's components and symptom fields, so why_safe is
the only place left to carry the scope.repository, commit (git rev-parse HEAD in the modeled tree),
date, scope_subpath, and a short §1.2 description.Reject (and hand back) if any of these fail:
confidence equals the header's draft-confidence count.model_status is the normalized schema value for the prose status.prose_version has the required path-plus-SHA-256 form and its digest
matches the prose bytes.caller_must_enforce; explicit none — <property ID> means safe handling is
project-owned, while every actual caller obligation has a stable ID.control_kinds array containing only
valid values.dispositions is exactly the closed enum — no project-specific
dispositions invented (a finding fitting none is MODEL-GAP, a prose
revision, not a new label).disposition_precedence equals §1.17's canonical first-match order.properties_claimed[] entry has a tier and at least one
violation_symptom; every claimed/disclaimed property and contract row
has provenance.under-review or
unratified-draft.triage_policy is strict or relaxed (defaulting to strict when the
header is silent); every assumption provenance record carries a
question_id, and every properties_disclaimed[] entry carries a tier.generation block matches the §1.1 generation metadata (model,
effort, and the plugins[] actually used), or is absent only when the prose
records a fully human-authored model.x- prefix.For threat-model.json:
schema.json.dispositions is exactly the nine schema values, verbatim.inferred or assumption appears as documented.confidence is the collapsed sidecar count: documented + maintainer
and inferred + assumption.known_non_findings[] entry's why_safe names the in-scope
components it covers and the symptom it discharges, and its cites
resolves to the row of the claim that discharges it — a real but
unrelated index does not pass.commit is the real sha of the modeled tree, not a placeholder.threat-model.md, threat-model.yaml, and threat-model.json together at the
modeled root (inside the subdirectory for a scoped run), plus a one-line note of
the prose_version the YAML was derived from for the orchestrator's finalize
gate. The JSON carries no prose binding — only commit and date — one more
reason it is an export, not the model.
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-authoringDraft phase 3.5 of a threat model from the orientation brief, surface analysis, and maintainer answers. USE WHEN writing threat-model.md to the canonical §1.1–§1.19 structure. Combines concise prose with the §1.7 trust table and contract matrix, §1.8 output statements, §1.17 disposition table, §1.1 triager quick-start, and any prior-policy back-map. Tags every non-trivial claim as documented, maintainer, or inferred; maps inferred claims to §1.18; and maintains confidence counts. DO NOT USE FOR: sidecar generation, backtesting, or triage./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./threat-model-interviewRun phase 3.4 maintainer question waves for threat-model production. USE WHEN inferred claims need ratification or interview-first versus draft-first mode must be chosen. Asks 3–7 prioritized proposed-answer questions per wave; wave 1 always covers scope, intended use, configuration support, and host side effects. Records answers, promotes inferred provenance to dated maintainer provenance, and retires matching §1.18 questions. Supports the phase 3.7 termination policy. DO NOT USE FOR: fabricating maintainer positions, drafting the whole model, or triage./threat-model-reconOrient and mine an open-source repository for threat-model production phases 3.1–3.2. USE WHEN starting a threat model or surveying security posture before modeling. Reads README, top-level docs, SECURITY/THREAT docs, maintainer issue rulings, and changelog rationale; carves component families; flags shipped-but-unsupported code; classifies project type; and absorbs an existing embedded threat model as a strict superset with a prior-policy back-map. Produces an orientation brief. Read-only. DO NOT USE FOR: deep code-surface analysis (use threat-model-surface), drafting, bug hunting, code fixes, or triage./threat-model-surfacePerform phase 3.3 deep analysis of an in-scope attack surface for a threat model. USE WHEN the orientation brief is ready and code must be read to derive the §1.7 per-input trust table and contract-dimension matrix, §1.5 no-surprise side-effects inventory, §1.4 reachability preconditions, and §1.8 output taint. Reads public entry points for contract rather than defects, timeboxes each component family, and marks uncovered surface inferred. Produces a surface analysis. Read-only. DO NOT USE FOR: bug hunting, code review, orientation, or drafting the prose model.Other plugins' skills for the same job