Security Threat Model
Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and writes a concise Markdown threat model. Trigger only when the user explicitly asks to threat model a codebase or path, enumerate threats/abuse paths, or perform AppSec threat modeling. Do not trigger for general architecture summaries, code review, or non-security design work.
npx claude-code-templates@latest --skill ••••••••••••••••••••Interactive Terminal Locked
Unlock this skill to run and inspect the interactive installation sequence.
Threat Model Source Code Repo
Deliver an actionable AppSec-grade threat model that is specific to the repository or a project path, not a generic checklist. Anchor every architectural claim to evidence in the repo and keep assumptions explicit. Prioritizing realistic attacker goals and concrete impacts over generic checklists.
Quick start
1) Collect (or infer) inputs:
references/prompt-template.md to generate a repository summary.references/prompt-template.md. Use it verbatim when possible.Workflow
1) Scope and extract the system model
2) Derive boundaries, assets, and entry points
3) Calibrate assets and attacker capabilities
4) Enumerate threats as abuse paths
5) Prioritize with explicit likelihood and impact reasoning
6) Validate service context and assumptions with the user
7) Recommend mitigations and focus paths
8) Run a quality check before finalizing
references/prompt-template.md<repo-or-dir-name>-threat-model.md (use the basename of the repo root, or the in-scope directory if you were asked to model a subpath).Risk prioritization guidance (illustrative, not exhaustive)
References
references/prompt-template.mdreferences/security-controls-and-assets.mdOnly load the reference files you need. Keep the final result concise, grounded, and reviewable.
How to Use & Getting Started
# Step 1: Initialize skill agent setup
npx skills add Security Threat Model --install-production
python -m pip install -r requirements.txt
codex plugin install Security Threat Model@latest
export API_KEY=secret_token_key_here
Installation Runbook & Walkthrough Locked
Unlock this skill to reveal complete step-by-step setup guides, terminal commands, configuration recipes, repository links, and interactive installation video walkthroughs.
Unlock full access to Security Threat Model
Get instant access to complete setup guides, repository source code, and integration assets.
More in system
View all system skills →Awesome Self-Hosted
The definitive list of Free and Open Source network services and web applications that can be hosted on your own home server or VPS.
Awesome Mac
A comprehensive collection of premium and open-source macOS software across developer tools, design utilities, media apps, and system extensions.
Awesome CLI Apps
A curated list of command-line applications for development, productivity, file navigation, system monitoring, and media playback.