threat-model

threat-model is a skill for Claude Code from rana/skills. It costs 60 tokens per session (910 once invoked), scanned A, original, MIT.

A structured security analysis of a system's architecture. It identifies valuable data and services, maps where trust changes and data moves, and records threats using STRIDE, a common threat-classification method.

In plain words
What is it for?
Use it when designing a system, starting a new implementation, or reaching a major project phase to create a prioritized threat register.
Why use it?
It finds likely attack paths before implementation makes them expensive to fix, and connects each risk with a planned mitigation.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the y plugin — 64 skills, 14 commands, 8 agents shipped together

Good fit Use it when designing a system, starting a new implementation, or reaching a major project phase to create a prioritized threat register.

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

Made for: Claude Code.

Or install y, the plugin that ships this one along with the rest of its 64 skills, 14 commands, 8 agents.

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-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/rana/skills/threat-model/github.svg)](https://agentmods.dev/skills/rana/skills/threat-model)
Your own site
<a href="https://agentmods.dev/skills/rana/skills/threat-model"><img src="https://agentmods.dev/badge/skills/rana/skills/threat-model/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-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/rana/skills/threat-model"><img src="https://agentmods.dev/badge/skills/rana/skills/threat-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 910 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.00060 $0.00910
Opus 5.5 $0.00024 $0.00364
Sonnet 5.5 $0.00012 $0.00182
Haiku 4.5 $0.00006 $0.00091

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

Security

Grade A, and why

threat-model 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.

skills/threat-model/SKILL.md · 81 lines

How it starts

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

Read all project markdown documents and examine the codebase to ground in the project's actual architecture — not a generic checklist.

Threat Model

Phase 1: Asset Inventory

Identify what the system protects:

  • Data assets — What data exists? What's its sensitivity classification? Content, credentials, PII, embeddings, metadata, logs, analytics.
  • Computational assets — What services process data? What are their cost structures? Which have variable cost (API calls, compute)?
  • Reputation assets — What trust does the system hold? Brand, content integrity, user confidence, regulatory standing.

Phase 2: Trust Boundaries

Map where trust changes:

  • External → internal — User input entering the system. Browser → API. Crawler → content. Upload → processing pipeline.
  • Internal → external — System calling third-party services. API keys leaving the boundary. Data sent to processors.
  • Privilege transitions — Anonymous → authenticated. Editor → admin. Development → production. Human-approved → auto-served.
  • Temporal boundaries — Build-time vs. runtime. Ingestion-time vs. serve-time. Cache-warm vs. cache-cold.

Phase 3: Data Flow Analysis

Trace sensitive data through the system:

  • Where does it enter? Where is it stored? Where is it processed? Where does it exit?
  • At each hop: is it encrypted? Is it validated? Is it logged? Is it retained?
  • What happens to data at each trust boundary crossing?

Phase 4: STRIDE Threat Enumeration

For each trust boundary and data flow, evaluate:

Category Question
Spoofing Can an attacker impersonate a legitimate entity?
Tampering Can data be modified in transit or at rest without detection?
Repudiation Can actions be performed without accountability?
Information Disclosure Can sensitive data leak through errors, logs, timing, or side channels?
Denial of Service Can the system be made unavailable or prohibitively expensive to operate?
Elevation of Privilege Can an attacker gain capabilities beyond their authorization level?

Read the full file on GitHub · 81 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. 1mo ago First seen · 81 lines · 60 tokens per session scan A f80c94771561

Subscribe to this mod's changes

threat-model is a skill published in the GitHub repository rana/skills (1 stars, last pushed 6mo ago), licensed MIT. It adds 60 tokens to every session and 910 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-03.

Related

Other skills, from other repositories

decision

Single entry point for all decision operations: capture, search, manage. Routes based on natural language intent.

zimalabs/code-decisions · 23 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens

pr-review

Comprehensive PR review across six dimensions — cost impact, environment drift, ownership gaps, SOC 2 compliance, deprecated API / version hygiene, and rollback feasibility. Each mode inspects the diff and current file state, reports findings with severity, and recommends concrete fixes. Use when preparing a PR for…

nitinjain999/platform-skills · 81 tokens

extract-resume

Parse a resume's uploaded PDF into structured JSON (basics, experience, projects, skills, education) and save it to the editor.

suxrobGM/jobpilot · 32 tokens

ensure-pipelines-host

Ensures the tenant has a usable Power Platform Pipelines host environment before any pipeline operation runs. Detects host state via the same resolution order as the Power Apps UI (org-db setting → BAP env metadata → default-custom-host setting); if any existing host (Platform or Custom) is found, uses it. If no host…

microsoft/power-platform-skills · 222 tokens

delegate

Let Claude Architect route a versioned implementation spec through the trusted MCP runtime, independently review the Candidate Artifact, record a decision, and integrate only accepted bytes. Use for implementation delegation, Producer selection, or commitment-boundary review.

PyModel/claude-architect · 47 tokens