threat-modeler/SKILL.md
STRIDE threat modeling and privacy impact assessment to generate security/privacy requirements. Use before requirement-architect to shift security left.
npx skillsauth add agile-v/agile_v_skills threat-modelerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You operate early in requirements phase (before requirement-architect). Goal: Security as Requirements.
STRIDE threat modeling + privacy impact assessment → generate CRITICAL priority security/privacy candidate REQs. Security is not "compliance artifact" — it's a first-class requirement that blocks release if violated.
# Threat Model
## System Overview · Data Flow Diagram (Mermaid)
## THREAT-XXXX: [Name]
**Component:** [login, API, DB] · **STRIDE:** [S/T/R/I/D/E] · **Likelihood:** [H/M/L] · **Impact:** [H/M/L] · **Severity:** [CRITICAL/HIGH/MEDIUM/LOW]
**Attack Vector:** [How exploited] · **Affected Assets:** [credentials, PII, availability]
**Mitigation:** [Parameterized queries, input validation, rate limiting, MFA, etc.] · **Type:** [Prevent/Detect/Respond/Accept]
**Candidate REQ:** CANDIDATE-SEC-XXXX
Common Threats (examples):
# Privacy Impact Assessment
## PII-XXXX: [Data Element]
**Type:** [email, SSN, credit card, health, biometric] · **Sensitivity:** [Critical/High/Medium/Low]
**Purpose:** [Why collected] · **Legal Basis:** [Consent, contract, legal obligation, legitimate interest]
**Storage:** [DB, cache, logs, backups, third-party] · **Encryption:** [AES-256 at rest, TLS 1.3 in transit]
**Access:** [Who: admin, support, engineer] · **Retention:** [7 years, until deletion, 90 days]
**Third-Party Sharing:** [Payment processor, analytics, etc.] · **Cross-Border:** [US→EU with DPA/SCCs]
**User Rights:** [Access, rectification, erasure, portability]
## PRIV-XXXX: [Privacy Risk]
**PII:** PII-XXXX · **Risk:** [Accidental exposure, unauthorized access, retention violation]
**Likelihood:** [H/M/L] · **Impact:** [H/M/L - GDPR fines, user harm] · **Severity:** [CRITICAL/HIGH/MEDIUM/LOW]
**Mitigation:** [Sanitize errors, delete on request, consent mechanism]
**Candidate REQ:** CANDIDATE-PRIV-XXXX
Common Risks (examples):
For each THREAT-XXXX or PRIV-XXXX:
## CANDIDATE-SEC-XXXX: [Requirement from threat]
**Priority:** CRITICAL (security always CRITICAL or HIGH) · **Threat:** THREAT-XXXX
**Requirement:** [Testable statement: "All SQL queries shall use parameterized queries"]
**Constraint:** [No string concat in SQL; use ORM; whitelist input chars]
**Verification:** [SQLMap scan 0 vulns; code review grep `execute(f"` 0 matches; manual injection attempts fail]
**Done:** [ ] Queries use ORM/prepared statements · [ ] Input validation · [ ] SQLMap passes · [ ] Code review passes
Traceability: THREAT-XXXX → CANDIDATE-SEC-XXXX → REQ-XXXX (CRITICAL) → ART-XXXX (mitigation code) → TC-XXXX (security test) → Red Team executes → Gate 2
Add revision header: <!-- Revision: C2 | Date: ... | Changes: Added THREAT-0008, updated PRIV-0001 for CCPA -->
With requirement-architect: Security/privacy REQs → CRITICAL priority (never downgrade without Human approval) With logic-gatekeeper: Validates security REQs are measurable/testable With test-designer: Creates security test cases (automated scans + manual pen tests) With red-team-verifier: Executes security tests; CRITICAL defect if exploit succeeds With observability-planner: Security metrics (failed login rate, suspicious activity, rate limit hits)
development
The Verification Agent — challenges Build Agent artifacts via independent verification. Executes tests against artifacts. Use to audit code, schematics, or firmware against requirements.
development
# Skill: system-understanding-agent ## Purpose Use this skill when Agile V is applied to an existing codebase, documentation set, or knowledge base. The skill consumes Understand Anything outputs and creates a concise, reviewable system overview that gives agents sufficient context before modifying code. This is **Gate 0** of the integrated Agile V lifecycle. No requirements should be generated, and no code should be built, until this skill has run and the system overview has been reviewed.
development
# Skill: regression-selection-agent ## Purpose Select and prioritize regression tests based on the impact map and graph dependency relationships. This skill ensures that existing tests are identified, prioritized, and run after a change, and that gaps in test coverage are flagged before the Red Team step. --- ## Trigger conditions Use this skill when: - Existing behavior must not break (regression risk). - An impact map is available. - The change affects shared modules, services, or APIs.
development
# Skill: impact-analysis-agent ## Purpose Identify the likely impact of a proposed change before implementation. This skill maps the change request to graph nodes, identifies affected files, functions, APIs, and tests, and produces a reviewable impact map that gates the Build Agent's context. --- ## Trigger conditions Use this skill when: - A change request targets an existing system. - The change could affect multiple files or modules. - Regression risk exists (the change touches shared c