Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/suyogpawar88/Threat-Modelnpx agentmods add skills/suyogpawar88/threat-model/threat-modelingWrote 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.
[](https://agentmods.dev/skills/suyogpawar88/threat-model/threat-modeling)<a href="https://agentmods.dev/skills/suyogpawar88/threat-model/threat-modeling"><img src="https://agentmods.dev/badge/skills/suyogpawar88/threat-model/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.
<a href="https://agentmods.dev/skills/suyogpawar88/threat-model/threat-modeling"><img src="https://agentmods.dev/badge/skills/suyogpawar88/threat-model/threat-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00346 | $0.04299 |
| Opus 5 | $0.00173 | $0.02150 |
| Sonnet 5 | $0.00069 | $0.00860 |
| Haiku 4.5 | $0.00035 | $0.00430 |
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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Threat Modeling Skill
Pulls live context from Jira, Jenkins, ServiceNow, and a code repository via this plugin's MCP
connectors, then runs an end-to-end threat model covering both conventional application/API systems
and AI/ML/LLM infrastructure: a data flow diagram, trust boundaries and threat actors, a STRIDE
threat register scored for likelihood and business impact (optionally the full 7-stage PASTA process
for higher-rigor engagements), a Page/API/Module-scoped AppSec / penetration-testing test case
plan (see references/appsec-pentest-test-cases.md), a compensating-controls and
mitigation-assurance assessment, a compliance gap analysis, and every threat and attack-chain step
mapped to the relevant OWASP Top 10 list(s) — OWASP Top 10 (web AppSec), OWASP API Security Top 10,
and OWASP Top 10 for LLM Applications — plus MITRE ATT&CK / MITRE ATLAS technique IDs. Deliverables:
a draw.io-compatible DFD, a draw.io-compatible threat model diagram (trust boundaries + threat
actors), a Word report, and/or an Excel risk register — whichever output formats the user asks for.
Need just a standalone pentest checklist without a full threat model? Run
scripts/build_pentest_checklist.py directly against
references/appsec_pentest_test_cases_library.json (or a scoped copy of it) for a ready-to-use
Excel tracker.
Why pull from tools instead of asking for a description: a ticket or repo almost always contains more architectural truth than a user can recite from memory — auth middleware in the repo, actual deploy steps in Jenkins, prior incidents in ServiceNow, or AI-framework usage (LangChain, a vector DB client, a model-serving container) that tells you this is an AI-scoped system before the user even says so. Grounding the model in that material produces a more accurate DFD and catches things a manual description would miss.
Why Sonnet by default: scripts/summarize.py is called to compress large raw payloads (console
logs, big ticket threads, large repo files) before they enter this session's context. It defaults to
claude-sonnet-5 — a strong cost/quality balance for extractive summarization — via the MODEL_NAME
env var. Point it at another available model (see config/model-config.example.json) if the user
wants higher-fidelity summaries (claude-opus-4-8) or lower cost on high-volume pulls
(claude-haiku-4-5-20251001). This only affects the summarization helper — the main threat-modeling
reasoning always runs on whichever model is driving the current session.
Running this outside Claude Code / Cowork: this skill's instructions, reference docs, and Python
scripts are plain markdown/JSON/Python with no Claude-specific dependencies, so the same workflow
runs under OpenAI Codex CLI (via the root AGENTS.md) and Cursor (via .cursor/rules/threat-modeling.mdc
and .cursor/mcp.json) — see README.md's "Using this plugin outside Claude Code" section for setup
per tool. Whichever agent is driving, follow this file and its references/ the same way.
What ships with it
17 files 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.
- references/ai-threat-taxonomy.md 8.6 KB
- references/appsec_pentest_test_cases_library.json 34 KB
- references/appsec-pentest-test-cases.md 27 KB
- references/attack-chain-mapping.md 2.9 KB
- references/compensating-controls-and-gaps.md 4.2 KB
- references/examples/AppSec_Pentest_Test_Case_Checklist_Template.xlsx 17 KB
- references/examples/sample_ai_report_data.json 30 KB
- references/examples/sample_ai_threat_model_spec.json 4.0 KB
- references/examples/sample_dfd.drawio 3.1 KB
- references/examples/sample_report_data.json 22 KB
- references/examples/sample_threat_model_spec.json 2.5 KB
- references/examples/sample_threat_model.drawio 6.5 KB
- references/mitre-mappings.md 5.2 KB
- references/owasp-mappings.md 3.9 KB
- references/pasta-methodology.md 5.4 KB
- references/report-data-schema.json 8.4 KB
- references/stride-methodology.md 5.3 KB
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.
- 11d ago First seen · 264 lines · 346 tokens per session scan A b096f8282d83
threat-modeling is a skill published in the GitHub repository suyogpawar88/Threat-Model (6 stars, last pushed 1mo ago), licensed MIT. It adds 346 tokens to every session and 4,299 once invoked, about $0.0017 per session on Opus 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-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…