/threatmodel:quickfrom threatmodel
Fast threat assessment (~30s). Returns JSON with risk level, top threats, critical gaps. For hooks and CI/CD.
Ships in threatmodel. 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.
/threatmodel:quick [--focus <files>] [--format json|text]
{
"risk_level": "high",
"top_threats": [
{
"title": "SQL Injection",
"severity": "critical",
"target": "src/api.js:45"
}
],
"critical_gaps": [
{ "title": "Missing input validation", "severity": "high" }
],
"recommendation": "Address 1 critical threat before proceeding."
}
.threatmodel/state/ - Use existing threats.json, gaps.json if availablepassword.*=.*["'] (hardcoded creds)eval\(|exec\( (code injection)query.*\+.*req\. (SQL injection)innerHTML.*= (XSS)| Condition | Level |
|---|---|
| Any critical | critical |
| 3+ high | high |
| 1-2 high or 3+ medium | medium |
| Otherwise | low |
After completing the assessment, if risk_level is critical or high:
/threatmodel:full for complete STRIDE analysisIf risk_level is medium or low:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
npx claudepluginhub josemlopez/claude-threatmodel --plugin threatmodel