Favicon of threat-model

threat-model Skill

AI Agent SkillPythonOpen source

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; Published by anthropics in defending-code-reference-harness.

Decision snapshot

Is this a fit?

Best for

Testing, Security review, Data analysis, Design and media

Works with

Compatibility not yet detected.

Access

Can write or update data, Write actions, Filesystem access, Shell access

Setup

Copy skill directory

Project health

1 month ago · NOASSERTION license

Considerations

Confirm write permissions and scope before use. Access note: Local files. Access note: Shell access.

What is threat-model Skill?

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; Published by anthropics in defending-code-reference-harness. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
96/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement. See how SkillIndex evaluates profiles.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Testing
  • Security review
  • Data analysis
  • Design and media
  • Testing use cases

Declared skill metadata

  • Source file: .claude/skills/threat-model/SKILL.md

Allowed tools declared by source

ReadGlobBash(python3 .claude/skills/_lib/checkpoint.py:*)GrepWriteBash(git:*)Bash(gh api:*)Bash(find:*)Bash(ls:*)Bash(cat:*)AskUserQuestionTask

These fields retain source and confidence evidence from the indexed SKILL.md.

Compatibility and setup

Copy skill directory
  • Install or run with Copy skill directory
  • Local files
  • Shell access

Requirements and access

Local filesShell access

Security and permissions

Review permissions before connecting any MCP server to an agent. Pay special attention to whether it can read local files, write data, call external services, or perform destructive actions.

Write actionsFilesystem accessShell accessCan write or update data

When to use threat-model Skill

  • Use it for testing.
  • Use it for security review.
  • Use it for data analysis.
  • Use it for design and media.

Built with

PythonCopy skill directory

Editorial notes

Source

  • Creator: anthropics
  • Repository: anthropics/defending-code-reference-harness
  • Skill file: .claude/skills/threat-model/SKILL.md

What it does

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;

Skill instructions

threat-model A threat model answers "what could go wrong with this system, who would do it, and what should we do about it?" independently of whether any specific bug has been found yet. It is the map; vulnerability discovery is the metal detector. A good threat model tells the pipeline where to look and tells triage which findings matter. Litmus test: If patching one line of code makes an entry disappear, it was a vulnerability, not a threat. A threat ("attacker achieves RCE via untrusted media parsing") still stands after every known bug is fixed; a vulnerability ("drwav.h:412 doesn't bounds-check chunksize") does not. This skill produces threats. Vulnerabilities appear only as evidence that raises a threat's likelihood score. Invocation: /threat-model [bootstrap-then-interview|bootstrap|interview] <target-dir [flags] --- Step 0 — Safety preamble (always runs first) This skill performs static analysis only. It reads source, git history, and any vulnerability reports the user supplies

Verified compatibility and discovery

Frequently asked questions

What is threat-model?

threat-model is a open-source AI agent skill with Copy skill directory. 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.

Who is threat-model best for?

threat-model is best for reusing agent instructions, scripts, and references, testing workflows, security review workflows, data analysis workflows.

How do I install threat-model?

Install or run threat-model using Copy skill directory. Check threat-model for the latest setup command.

Is threat-model actively maintained?

threat-model may need a closer maintenance check before production use.

Share:

Stars
7,241
Forks
582
Last commit
1 month ago
Last verified
Aug 22, 2026
Metadata fetched
Aug 22, 2026
Repository age
4 months
License
NOASSERTION

Project health auto-fetched from the source repository.

Maintain this resource?

Review this source-backed profile, send a correction with evidence, or link to it from your documentation. Claims verify your relationship to the project; profile facts still require source evidence and editorial review.

Alternatives to threat-model