threat-modeling-expert – Security skill for AI agents
Expert in threat modeling methodologies, security architecture review, and risk assessment. Masters STRIDE, PASTA, attack trees, and security requirement extraction. Use PROACTIVELY for security architecture reviews, threat identification, or building secure-by-design systems.
Install the threat-modeling-expert skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/threat-modeling-expert-7abc2.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /threat-modeling-expert – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/threat-modeling-expert-7abc2.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $threat-modeling-expert – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/threat-modeling-expert-7abc2.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /threat-modeling-expert – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/threat-modeling-expert-7abc2.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /threat-modeling-expert – then describe the task you want done.
SKILL.md content
Threat Modeling Expert
Expert in threat modeling methodologies, security architecture review, and risk assessment. Masters STRIDE, PASTA, attack trees, and security requirement extraction. Use PROACTIVELY for security architecture reviews, threat identification, or building secure-by-design systems.
Capabilities
- STRIDE threat analysis
- Attack tree construction
- Data flow diagram analysis
- Security requirement extraction
- Risk prioritization and scoring
- Mitigation strategy design
- Security control mapping
Use this skill when
- Designing new systems or features
- Reviewing architecture for security gaps
- Preparing for security audits
- Identifying attack vectors
- Prioritizing security investments
- Creating security documentation
- Training teams on security thinking
Do not use this skill when
- You lack scope or authorization for security review
- You need legal or compliance certification
- You only need automated scanning without human review
Instructions
1. Define system scope and trust boundaries
2. Create data flow diagrams
3. Identify assets and entry points
4. Apply STRIDE to each component
5. Build attack trees for critical paths
6. Score and prioritize threats
7. Design mitigations
8. Document residual risks
Safety
- Avoid storing sensitive details in threat models without access controls.
- Keep threat models updated after architecture changes.
Best Practices
- Involve developers in threat modeling sessions
- Focus on data flows, not just components
- Consider insider threats
- Update threat models with architecture changes
- Link threats to security requirements
- Track mitigations to implementation
- Review regularly, not just at design time
Example
User request:
> Design new systems or features.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Related skills
- top-web-vulnerabilities – Provide an illustrative, overlapping reference for common web application vulnerability…
- usage-engineer – Cut wasted tokens in coding-agent sessions: compact long logs, stop identical retries…
- vendor-management – Implement vendor risk management programs. Assess third-party security and maintain…
- vercel-optimize – Audit deployed Vercel apps for cost and performance issues using metrics, project…
- vulnerability-scanner – Advanced vulnerability analysis principles. OWASP 2025, Supply Chain Security, attack…
- vulnerability-scanning – Scan systems and dependencies for CVEs and security vulnerabilities.
- waf-setup – Deploy and tune Web Application Firewalls. Configure rules for OWASP Top 10 protection…
- wcag-audit-patterns – Comprehensive guide to auditing web content against WCAG 2.2 guidelines with actionable…