/gabbe:threat-modelfrom GABBE
Guides STRIDE threat modeling before implementing security-sensitive features like auth, file upload, payment, or API endpoints. Prevents design-time vulnerabilities.
Ships in GABBE. 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.
Create a STRIDE threat model BEFORE implementing any security-sensitive feature. Prevents security issues at design time (cheapest point to fix) rather than after implementation (expensive) or in production (catastrophic).
Phase and gate: S02 (system threat model, human gate) and before any security-sensitive feature. Evidence: docs/security/THREAT_MODEL.md and per-feature files in docs/security/threat-models/. Part of security-baseline.skill.md; the S07 reviewer checks that each mitigation exists.
Identify system components and trust boundaries
docs/architecture/)Apply STRIDE to each component
For each component (API endpoint, service, data store), systematically ask:
S — Spoofing (impersonation)
T — Tampering (data modification)
R — Repudiation (deny actions)
I — Information Disclosure (data leaks)
D — Denial of Service
E — Elevation of Privilege
Score each threat
| Factor | Low | Medium | High |
|---|---|---|---|
| Likelihood | Attacker needs special access/skills | Known exploit pattern exists | Trivial to exploit |
| Impact | Minor data exposure | User data compromised | All data, system compromise |
Priority = Likelihood × Impact (High×High = Critical)
Propose mitigations for High and Critical threats
| Threat | STRIDE | L | I | Priority | Mitigation |
|---|---|---|---|---|---|
| Stolen JWT allows impersonation | S | H | H | Critical | Short expiry (15min), refresh token rotation, token revocation list |
| IDOR on /users/{id} endpoint | I | M | H | High | Verify ownership: user.id === session.userId before returning |
| No rate limit on /auth/login | D | H | M | High | Max 5 attempts/min per IP, 3 per account, exponential backoff |
Fill THREAT_MODEL_TEMPLATE.md
docs/security/THREAT_MODEL.md for the system (S02) and docs/security/threat-models/[feature-name]-threat-model.md for a featureprompt-injection-defense.skill.md and agent-tool-review.skill.mdRecord new security invariants as EARS requirements in the spec or in the security section of AGENTS.md (only the human amends CONSTITUTION.md)
Create tasks for mitigations
Human review required
| Letter | Category | Question to ask |
|---|---|---|
| S | Spoofing | Who is claiming to be who, and how do we verify it? |
| T | Tampering | What data can be modified by unauthorized parties? |
| R | Repudiation | Can actions be denied? Are they logged immutably? |
| I | Information Disclosure | What can be leaked, and to whom? |
| D | Denial of Service | What can be exhausted, flooded, or blocked? |
| E | Elevation of Privilege | How can someone gain more access than intended? |
Completed threat model file at docs/security/threat-models/[name]-threat-model.md + tasks added for mitigations.
project/TASKS.md. If the row cannot be written, stop and tell the human.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe49 skills in this plugin
/adr-writerGenerate Architecture Decision Records for significant technical decisions. Use when: architecture decision, ADR, why did we choose, why are we using, architectural choice./api-designAPI contract (OpenAPI, GraphQL SDL or proto) written before code, with resources, errors, pagination and authentication. Use when a new endpoint or API is needed or the contract of an existing one must change./arch-designArchitecture design from approved requirements — quality scenarios, style choice, decomposition, 4+1 or arc42 views, ADRs and risks. Use when a new system or major subsystem needs an architecture before implementation planning./assurance-ladderChoose how strongly a component must be verified, from plain tests (level 0) to a machine-checked proof of a small core (level 3), record the choice in an ASSURANCE_PLAN, and know which evidence each level leaves. Use at S01/S02 when planning verification, when a requirement mentions concurrency, money, authorisation or safety, or when asked how sure we are that code is correct. Use when: assurance level, how strongly to verify, formal verification, choose verification level, assurance plan, prove correctness, model checking, high-risk component./audit-trailAppends one structured row per decision, phase change, approval or failure to agents/memory/AUDIT_LOG.md. Use when a decision, human approval, gate result or task outcome must be recorded, or when someone asks why something was done./characterization-testsUse before changing code that has no tests or weak tests. Pins what the code does today with golden-master and characterisation tests, handles non-determinism, and records a coverage baseline, so later changes can be checked against it. Use when: characterization test, characterisation test, golden master, approval test, pin behaviour, no tests, legacy tests, snapshot current behaviour, baseline coverage.Other plugins' skills for the same job