threat-modeling

threat-modeling is a skill for Claude Code from ulises-jeremias/agent-toolkit. It costs 48 tokens per session (2,031 once invoked), scanned A, original, MIT.

A security planning method that maps a system's assets, users, trust boundaries, and data flows, then checks for common threats. STRIDE covers spoofing, tampering, denial of service, data exposure, and other security risks; the guide also covers risks specific to AI agents.

In plain words
What is it for?
Use it to threat-model a new system, data flow, agent, tool integration, or multi-agent handoff and create prioritised security acceptance criteria.
Why use it?
It exposes security risks early, before architecture and integrations are difficult to change. It connects each risk to mitigations and testable security requirements.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the agent-toolkit-complete plugin — 106 skills shipped together

Good fit Use it to threat-model a new system, data flow, agent, tool integration, or multi-agent handoff and create prioritised security acceptance criteria.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ulises-jeremias/agent-toolkit/threat-modeling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ulises-jeremias/agent-toolkit --skill threat-modeling
Clone the repo
git clone --depth 1 https://github.com/ulises-jeremias/agent-toolkit

Made for: Claude Code.

Or install agent-toolkit-complete, the plugin that ships this one along with the rest of its 106 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for threat-modeling

README.md
[![agentmods](https://agentmods.dev/badge/skills/ulises-jeremias/agent-toolkit/threat-modeling/github.svg)](https://agentmods.dev/skills/ulises-jeremias/agent-toolkit/threat-modeling)
Your own site
<a href="https://agentmods.dev/skills/ulises-jeremias/agent-toolkit/threat-modeling"><img src="https://agentmods.dev/badge/skills/ulises-jeremias/agent-toolkit/threat-modeling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for threat-modeling

Your own site · 80×15
<a href="https://agentmods.dev/skills/ulises-jeremias/agent-toolkit/threat-modeling"><img src="https://agentmods.dev/badge/skills/ulises-jeremias/agent-toolkit/threat-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,031 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.02031
Opus 5.5 $0.00019 $0.00812
Sonnet 5.5 $0.00010 $0.00406
Haiku 4.5 $0.00005 $0.00203

Measured 1mo ago against content hash 9c87fa52c71a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

threat-modeling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-toolkit-complete/.github/skills/threat-modeling/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Threat Modeling — STRIDE + Agentic Threats

Guide architecture → threat model → security review → security acceptance criteria. Produces a STRIDE table augmented with agentic-specific threats (prompt injection, tool poisoning, excessive agency, inter-agent trust), risk-ranked with mitigations and acceptance criteria.

Evidence-linked, portable, incremental. Architecture discovery reuses C4/Mermaid inputs (#369); outputs feed agentic-security-reviewer + owasp-agentic-review + security-reviewer.

Sources: Microsoft STRIDE (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) + OWASP Threat Modeling + OWASP Agentic Security (prompt injection, tool poisoning, excessive agency, data leakage, insecure plugin/MCP). See https://learn.microsoft.com/en-us/azure/security/develop/threat-modeling-tool-threats and https://owasp.org/www-project-threat-model/ .

When to use

  • New system/C4 design (architect output), new data flow (user → agent → tool → external), new trust boundary (skill composition, MCP addition, swarm handoff)
  • Before security-reviewer / owasp-agentic-review prioritizes mitigations
  • On architecture change — incremental mode re-runs only on deltas

Inputs

Input Source Required
Architecture diagram architect / C4/Mermaid (#369) — docs/architecture/*.md, Mermaid C4Context/flowchart Yes (or textual description for small scopes)
Assets Code + docs: skills, agents, MCP registry, secrets, data stores Yes
Trust boundaries User ↔ agent, agent ↔ MCP, agent ↔ external host, inter-agent, skill composition Yes
Data flows audit-capability.py shell/network/MCP/hooks surface, registry YAML, hook configs Yes
Actors Users, agents (by persona), MCP servers, external services Yes

Outputs

  • threat-model.md per references/threat-model-template.md: assets/boundaries/flows/actors → STRIDE + agentic threats table (severity, likelihood, impact, confidence, evidence) → mitigations → security acceptance criteria
  • Incremental diff when architecture discovery changed
  • Handoff: agentic-security-reviewer consumes findings for OWASP review; security-reviewer for app-layer vulns

Read the full file on GitHub · 101 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 101 lines · 48 tokens per session scan A 9c87fa52c71a

Subscribe to this mod's changes

threat-modeling is a skill published in the GitHub repository ulises-jeremias/agent-toolkit (19 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 2,031 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

verify

Fact-check claims encountered during reading — dates, names, events, citations. Use when encountering historical facts or disputed claims.

yha9806/academic-writing-toolkit · 26 tokens

skillnote

Self-hosted skill registry for OpenClaw. Stores procedures your team writes (name, description, body), syncs them to disk before each task, and collects which-helped/which-failed signals from the agent so the registry improves over time.

luna-prompts/skillnote · 54 tokens

pr-alignment-loop

Iterate a PR to its final form by running two opposing reviewer droids (reviewer-robustness and reviewer-minimalist) in a bounded back-and-forth loop. The main orchestrator synthesizes their feedback, makes edits, runs tests, and stops when both approve, on stagnation, or after 3 rounds. Use when the user asks to…

nikships/skills-registry · 122 tokens

publish-website

Publish a website to Porkbun Secure Static Hosting. Use when the user asks you to build, create, update or put live a website, landing page or placeholder page for a domain they have at Porkbun, mentions Porkbun hosting or static hosting, or asks how to upload site files to Porkbun.

oborseth/Porkbun-MCP · 65 tokens

create-rule

Use when creating, writing, or updating a Claude Code rule file (.claude/rules/.md or /.claude/rules/.md), or when asking about rule format, path scoping, or rule best practices.

paultyng/skill-issue · 48 tokens

platform-setup

Set up, verify, and troubleshoot Katalon True Platform/TestOps MCP connectivity for any AI coding agent. Use when you need to install or configure the Katalon MCP server, connect to a Katalon platform account, verify available Katalon MCP tools, diagnose missing authentication or repository access, confirm…

katalon-labs/true-skills · 110 tokens