threat-model
Skill9 starsChanged 19 days agoMITView on GitHub
Create or update docs/THREAT_MODEL.md — a STRIDE-style design-level threat model with trust boundaries, attack surface, threats and mitigations. Use when the user asks for a threat model, an attack-surface analysis or a STRIDE pass, or says 'what could go wrong security-wise', 'identify the threats', 'lock this down before launch'. For reviewing a specific diff or branch, use the built-in /security-review instead.
62 other projects use a version of this.
Adopted by
Most recently taken up by
- anthropics/claude-plugins-officialtheir own version, first seen Nov 29, 2026
- navikt/copilottheir own version, first seen Nov 16, 2026
- Lucface/claude-skillstheir own version, first seen Nov 16, 2026
- MichaelRyanWood/claude-skillstheir own version, first seen Nov 16, 2026
- seancabalse/agentic-playbooktheir own version, first seen Nov 16, 2026
- Yomudogly/oh-my-agytheir own version, first seen Nov 16, 2026
Used with
Projects with it also use vuln-scan, supply-chain-review and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AnthropicSkillvuln-scan
Static source-code vulnerability scan. Reads a target directory (and THREAT_MODEL.md if present), spawns parallel review subagents per focus area, and writes VULN-FINDINGS.json + .md for /triage to consume. Read-only — no building, running, or network. For execution-verified crashes, use vuln-pipeline instead. Use when asked to "scan for vulns", "review this code for security issues", "find bugs in <dir>", or as the step between /threat-model and /triage.
Also in 5 projects that use this
MesteriisSkillsupply-chain-review
Reviews lockfiles, installers, provenance, CI permissions, dependency confusion, artifacts, registries, and publishing.
Also in 3 projects that use this
AnthropicSkillpatch
Generate candidate fixes for verified security findings. Consumes
Also in 4 projects that use this
shihwesleySkillorbit
This skill should be used when the user says '/orbit', '/orbit init', '/orbit status', '/orbit test', '/orbit staging', '/orbit use', '/orbit sidecars', '/orbit logs', '/orbit stop', '/orbit check', '/orbit templates', asks about environment status or switching, wants to run tests in Docker containers, needs to manage dev/test/staging environments, or asks about sidecar services like PostgreSQL or Redis for their project.
Also in 3 projects that use this
mbwsimsSkilltest-plan
This skill should be used when the user asks to "plan tests", "what should I test", "what tests do I need", "test plan for", "testing strategy for", "test matrix for", "what cases should I cover", "help me plan tests", mentions "/test-plan", or wants to understand what tests are needed before writing any test code.
Also in 3 projects that use this
Sagargupta16Skilldependency-audit
Audit project dependencies for security vulnerabilities, licensing issues, maintenance health, and optimization opportunities. Use it during regular security audits (monthly or quarterly); before a major release when you want to ensure the dependency tree is clean; when evaluating whether to adopt or replace a dependency; after a security advisory affects one of your dependencies; when your install times or bundle sizes have grown noticeably.
Also in 4 projects that use this
Other versions62 projects use a version of this.
Word for word · 1
- 0xrafasec/ai-workflow★ 9100% same
Edited · 0
None found.
Wrote their own version · 61
- anthropics/claude-plugins-official★ 49ksame name
- openai/codex-security★ 14ksame name
- openai/plugins★ 8.4ksame name
- anthropics/defending-code-reference-harness★ 7.5ksame name
- Q00/ouroboros★ 6.4ksame name
- me2resh/apexyard★ 542same name
- jmanico/grim-prompter★ 497same name
- Cosmian/kms★ 380same name
- mbwsims/claude-universe★ 71same name
- navikt/copilot★ 65same name
51 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- dotfiles/CLAUDE.mdCLAUDE.md
- adrSkill
- architectureSkill
- autopilotSkill
- commitSkill
- designSkill
- featureSkill
- fixSkill
- issuesSkill
- new-projectSkill
- prdSkill
- prSkill
- roadmapSkill
- specSkill
- verify-designSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 55 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Create or update the threat model.
- Distinctive: line 12
Before interviewing, understand the system's security surface:
- Very specific: line 15
Read docs/THREAT_MODEL.md — if revising, don't start from scratch
- Very specific: line 16
Read docs/ARCHITECTURE.md for system structure and trust boundaries
- Distinctive: line 17
Read the project's agent instructions (CLAUDE.md or AGENTS.md) and README.md
- Very specific: line 92
No architecture doc? → "Define system structure with /wf:architecture"
“Common” is measured: kept by at least 6 in 10 of the 55 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create or update the threat model. Argument: $ARGUMENTS (an optional focus area; update only that part and leave the rest)
In hosts that do not substitute $ARGUMENTS (e.g. Codex), it is the text the user wrote after the skill name.
Context Gathering
Before interviewing, understand the system's security surface:
- Check for existing docs:
- Read
docs/THREAT_MODEL.md— if revising, don't start from scratch - Read
docs/ARCHITECTURE.mdfor system structure and trust boundaries - Read the project's agent instructions (
CLAUDE.mdorAGENTS.md) andREADME.md
- Read
- Survey the codebase for auth, input handling, data access (raw SQL vs parameterized), secrets, exposed endpoints and service exposure (
docker-compose.yml, deployment config). - Summarize what you found — "Here's what I see from a security perspective: ..."
Interview
Use AskUserQuestion, asking only what the code and docs do not answer, in rounds of at most 3-4 questions. Where AskUserQuestion is unavailable but the user can answer in chat (e.g. Codex), ask the same question in chat as a short numbered list and wait for the answer; a headless run or a dispatched agent has no such user, and the headless rule applies instead. If the user cannot be asked (a headless run), write from what exists and list each assumption as an open question.
- Trust boundaries — What is trusted? What is untrusted? Where are the boundaries?
- Authentication — How do users/agents/services prove identity? What mechanisms exist today?
- Authorization — Who can do what? How are permissions modeled?
- Sensitive data — What data is sensitive? Credentials, PII, financial? Where does it live? How is it protected at rest and in transit?
- Attack surface — What is exposed to the internet? To local users? To other services? What inputs does the system accept?
- Threat actors — Who would attack this? Script kiddies, insiders, nation states? What are their capabilities?
- Compliance — Any regulatory requirements? SOC2, GDPR, HIPAA, PCI? (skip if none apply)
- Existing security measures — What's already in place? What's missing?
For inherited projects: "I see you're using X for auth — is that intentional or legacy? I notice Y has no input validation — is that a known gap?"
Write
Write to docs/THREAT_MODEL.md:
# Threat Model
**Last updated:** [date]
## Trust Assumptions
[What is the trust model? What is trusted, what is untrusted? Include a Mermaid diagram of the trust hierarchy.]
## Security Properties
[Non-negotiable security invariants. Things that must always hold.]
- [Property 1]
- [Property 2]
## Attack Surface
| Surface | Exposure | Controls |
|---------|----------|----------|
| [surface] | [who can reach it] | [what protects it] |
## Threats
[Walk each trust boundary and data flow through S/T/R/I/D/E (spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege); omit categories that do not apply. If a control cannot be confirmed from the code, mark it `unverified`, never `implemented`.]
### [Component or flow]
| # | STRIDE | Attack | Impact | Likelihood | Defense | Status |
|---|--------|--------|--------|------------|---------|--------|
| 1 | [S/T/R/I/D/E] | [attack description] | [what happens] | [Low/Med/High] | [how it's prevented] | [implemented / unverified / missing] |
## Sensitive Data Inventory
| Data | Classification | At Rest | In Transit | Access Control |
|------|---------------|---------|------------|----------------|
| [data type] | [level] | [protection] | [protection] | [who can access] |
## Gaps (not yet implemented)
- [Control — what it protects against — priority]
## Compliance Requirements
[Only if applicable. Regulatory frameworks, what they require, current status.]After Writing
- Present the document to the user for review. Iterate until they're satisfied.
- Suggest next steps based on what exists:
- No architecture doc? → "Define system structure with
/wf:architecture" - Ready to plan the build? → "Run
/wf:roadmap, then/wf:spec <task>per task (or/wf:spec <name>directly for one feature outside a roadmap)"
- No architecture doc? → "Define system structure with
- Remind the user that security-sensitive PRs still need
/security-review; this document is its input, not a substitute.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

