Skip to content
Security
Skill

/threat-model-generation

Generate or refresh a STRIDE-based threat model for the current repository using Bug Hunter-native artifacts. Use whenever the repository has no threat model yet, the architecture changed materially, a security review needs fresh trust-boundary context, or the user explicitly

From plugin
bug-hunter
56110 skills

Claude Code

$ npx -y skills add codexstar69/bug-hunter --skill threat-model-generation --agent claude-code

SKILL.md

threat-model-generation.SKILL.md
name: threat-model-generation
description: Generate or refresh a STRIDE-based threat model for the current repository using Bug Hunter-native artifacts. Use whenever the repository has no threat model yet, the architecture changed materially, a security review needs fresh trust-boundary context, or the user explicitly asks for a threat model.

Threat Model Generation

This is a bundled local Bug Hunter companion skill. It generates portable threat-model artifacts under `.bug-hunter/`.

Purpose

Create the security context that the other security skills depend on:

  • trust boundaries
  • major components
  • STRIDE threats
  • vulnerability pattern library
  • severity/config defaults

Required outputs

Write:

  • `.bug-hunter/threat-model.md`
  • `.bug-hunter/security-config.json`

Workflow

1. Read `.bug-hunter/triage.json` if available for file structure and domain hints. 2. Inspect the repository to identify:

  • languages and frameworks
  • public/authenticated/internal entry points
  • data stores and external integrations
  • sensitive assets and trust boundaries

3. Generate a concise STRIDE threat model. 4. Generate a matching security config with thresholds and tech-stack metadata.

Compatibility

`prompts/threat-model.md` is generated from this skill for older clients. This skill is the canonical source and must be edited instead of the generated compatibility prompt.

Output rules

  • Keep the threat model short enough for downstream agents to consume.
  • Be specific about trust boundaries and vulnerable code patterns.
  • Keep all artifacts under `.bug-hunter/`, never `.factory/`.
Read more
@codexstar69
Ships withbug-hunter

Adversarial AI bug hunter with auto-fix skill for Claude Code, Cursor, Codex CLI, GitHub Copilot CLI, Kiro CLI, Opencode, Pi Coding Agent, and more. Multi-agent pipeline finds security vulnerabilities, logic errors, and runtime bugs — then fixes them autonomously on a safe branch.

Stars on GitHub

Momentum

stars in total
561
Star history of codexstar69/bug-hunter on GitHub, a chart by star-history.com

Other skills on bug-hunter.

doc-lookup

doc-lookup

Unified documentation lookup for Bug Hunter agents. Uses Context Hub (chub) as primary source with Context7 API fallback.…

fixer

fixer

Surgical code fixer for Bug Hunter. Implements minimal, precise fixes for verified bugs. Uses doc-lookup (Context Hub + Context7)…

hunter

hunter

Behavioral code analysis for Bug Hunter. Finds logic, security, concurrency, and contract defects with traced runtime triggers…

recon

recon

Triage enrichment for Bug Hunter. Maps tech stack, trust, state, error, concurrency, and service boundaries without reclassifying…

referee

referee

Final arbiter for Bug Hunter. Independently verifies behavioral findings, resolves Skeptic challenges, and calibrates severity…

More skills from other plugins.

api-security

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…

@zhaoxuya520@zhaoxuya520Install Skill
nemoclaw-user-guide

nemoclaw-user-guide

Find official NemoClaw documentation for installation, configuration, operation, or troubleshooting. Also handles requested docs…

@nvidia@nvidiaInstall Skill

Questions about threat-model-generation.

Which coding agents can use threat-model-generation?
threat-model-generation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.