Build a threat model for a target codebase. Three modes: "interview" walks an application owner through the four-question framework and produces a threat model from their answers; "bootstrap" derives a threat model from the code plus past vulnerabilities (CVEs, git history, pentest reports) when no owner is available; "bootstrap-then-interview" chains the two when both owner and codebase are present. All write THREAT_MODEL.md in a shared schema. Use when asked to "threat model", "build a threat model", "map the attack surface", or "what should we be worried about in this codebase".
$npx -y skills add anthropics/defending-code-reference-harness --skill threat-modelInstalls into the current project.
Run `npx skills use "https://github.com/anthropics/defending-code-reference-harness" --skill "anthropics/defending-code-reference-harness/threat-model"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/anthropics/defending-code-reference-harness" that are relevant to the current task. Run `npx skills add "https://github.com/anthropics/defending-code-reference-harness"` and select the relevant skills, then follow their instructions.