threat-modeling

threat-modeling is a skill for Claude Code, Codex from alunduil/alunduil-chezmoi. It costs 95 tokens per session (1,743 once invoked), scanned A, original, 0BSD.

A security review that uses STRIDE, a checklist of common attacker actions, to examine a system design. It walks through a data-flow diagram, including trust boundaries, and records threats and mitigations for each relevant part.

In plain words
What is it for?
Use it to create, update, or audit a threat model for a system, component, data flow, or design, and to find missing or outdated protections.
Why use it?
It turns the broad question of what could go wrong into a repeatable review before the system is released.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create, update, or audit a threat model for a system, component, data flow, or design, and to find missing or outdated protections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alunduil/alunduil-chezmoi/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 alunduil/alunduil-chezmoi --skill threat-modeling
Clone the repo
git clone --depth 1 https://github.com/alunduil/alunduil-chezmoi

Made for: Claude Code, Codex.

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/alunduil/alunduil-chezmoi/threat-modeling/github.svg)](https://agentmods.dev/skills/alunduil/alunduil-chezmoi/threat-modeling)
Your own site
<a href="https://agentmods.dev/skills/alunduil/alunduil-chezmoi/threat-modeling"><img src="https://agentmods.dev/badge/skills/alunduil/alunduil-chezmoi/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/alunduil/alunduil-chezmoi/threat-modeling"><img src="https://agentmods.dev/badge/skills/alunduil/alunduil-chezmoi/threat-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,743 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.00095 $0.01743
Opus 5 $0.00048 $0.00872
Sonnet 5 $0.00019 $0.00349
Haiku 4.5 $0.00010 $0.00174

Measured 12d ago against content hash ab1b40feb3dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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.

dot_claude/skills/threat-modeling/SKILL.md · 156 lines

How it starts

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

Threat modeling

References:

A threat model answers what an attacker can do to a design, before the design ships. STRIDE is the categorisation that turns that open question into a finite checklist: for a given design the threats are static, so walking every element against the categories that apply to it terminates.

Work from the design. Engineers know their own system better than they know what an attacker wants from it, and the element walk reaches the same threats without that guess.

Input

The model is a data flow diagram with trust boundaries drawn. Its element list is the enumeration checklist and its element names are the threat table's row keys, so the diagram has to exist first — invoke the dfd skill when it doesn't.

Categories

Category Violates Is
Spoofing Authenticity Using another party's identity — credentials, a signature, an address
Tampering Integrity Malicious modification of data, at rest or in transit
Repudiation Non-repudiation Denying an action the system cannot prove happened
Information disclosure Confidentiality Exposure of data to someone not granted access to it
Denial of service Availability Denying service to valid users
Elevation of privilege Authorisation An unprivileged party gaining privileged access

Element types

Which categories a DFD element is subject to. Enumerate these and stop:

Element type Categories
External entity S, R
Process S, T, R, I, D, E
Data store T, R, I, D
Data flow T, I, D

Read the full file on GitHub · 156 lines

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. 12d ago First seen · 156 lines · 95 tokens per session scan A ab1b40feb3dd

Subscribe to this mod's changes

threat-modeling is a skill published in the GitHub repository alunduil/alunduil-chezmoi (2 stars, last pushed today), licensed 0BSD. It adds 95 tokens to every session and 1,743 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

batch-grill-me

A relentless interview that asks every frontier question at once, round by round.

M0rtalPhe0nix/dotfiles · 20 tokens

dotfiles-bootstrap

Bootstrap a workstation with the dotfiles framework. Takes a GitHub user / owner+repo / explicit clone URL and runs dot init (which shells out to chezmoi) with the right safety prompts. Honors the active agent profile (ask / plan / apply / audit) so it defaults to dry-run in safer modes and full apply in apply.

sebastienrousseau/dotfiles · 88 tokens

vibe

Delegate a coding task to a cheap AI model (Mistral Vibe by default, but any provider Vibe knows about — DeepSeek, Gemini Flash, etc.) and supervise the result via git diff. Claude orchestrates, the cheap model codes. Claude consumes 500-1500 tokens per delegation regardless of how many file reads the delegate does…

sebastienrousseau/dotfiles · 137 tokens

aiq-research

Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.

laurigates/dotfiles · 25 tokens

telegram

Send notifications, interactive questions, or multiple-choice polls to the user via Telegram. Use when the user asks to be notified ("ping me", "notify me on Telegram", "ask me when..."), when a long-running task finishes and the user is likely away, when an irreversible action needs out-of-band confirmation, or when…

laurigates/dotfiles · 117 tokens

repo-activity

Scan all git repositories under /repos and report recent activity — last commit age, branch, uncommitted changes — in age-bucketed tables. Use when the user asks for a repo activity overview, "what have I been working on", portfolio status, or which repos are active/dormant.

laurigates/dotfiles · 65 tokens