threat-modeling

threat-modeling is a skill for Claude Code from Vimalk0703/shipworthy. It costs 58 tokens per session (3,510 once invoked), scanned A, original, MIT.

A security review method that uses the STRIDE framework to check how an attacker might impersonate users, alter data, deny actions, expose information, disrupt service, or gain extra permissions.

In plain words
What is it for?
Reviewing new services, APIs, authentication, permissions, data stores, and data flows for threats and suitable safeguards.
Why use it?
It provides a structured way to find security problems while a system is being designed, before they become harder to fix.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the shipworthy plugin — 66 skills, 7 commands, 3 hooks shipped together

Good fit Reviewing new services, APIs, authentication, permissions, data stores, and data flows for threats and suitable safeguards.

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

Made for: Claude Code.

Or install shipworthy, the plugin that ships this one along with the rest of its 66 skills, 7 commands, 3 hooks.

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/vimalk0703/shipworthy/threat-modeling/github.svg)](https://agentmods.dev/skills/vimalk0703/shipworthy/threat-modeling)
Your own site
<a href="https://agentmods.dev/skills/vimalk0703/shipworthy/threat-modeling"><img src="https://agentmods.dev/badge/skills/vimalk0703/shipworthy/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/vimalk0703/shipworthy/threat-modeling"><img src="https://agentmods.dev/badge/skills/vimalk0703/shipworthy/threat-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,510 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.00058 $0.03510
Opus 5 $0.00029 $0.01755
Sonnet 5 $0.00012 $0.00702
Haiku 4.5 $0.00006 $0.00351

Measured 5d ago against content hash 9bacb868a2d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 5d 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/security/threat-modeling/SKILL.md · 376 lines

How it starts

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

Threat Modeling with STRIDE

Core Principle

Threat modeling is a structured way to think about what can go wrong with a system's security before an attacker finds out. Do it during design, not after launch. The STRIDE framework gives you six categories of threats to systematically evaluate.


When to Threat Model

  • Before building any new service or feature that handles user data.
  • When adding a new external integration or API.
  • When changing authentication or authorization logic.
  • When introducing a new data store or data flow.
  • During design document review (see the design-documents skill).
  • At least annually for existing critical services.

The STRIDE Framework

S -- Spoofing (Pretending to Be Someone Else)

Question to ask: "Can an attacker pretend to be another user, service, or component?"

What to verify:

  • All API endpoints require authentication (no accidental public endpoints).
  • Authentication tokens are validated on every request, not just at login.
  • Service-to-service calls use mutual TLS or signed tokens, not shared secrets.
  • Email/SMS-based verification prevents account takeover.
  • OAuth redirect URIs are strictly validated (no open redirects).
  • API keys are scoped to specific permissions, not full access.

Common mitigations:

  • Use strong authentication (OAuth 2.0 + PKCE, SAML, or WebAuthn).
  • Implement multi-factor authentication for sensitive operations.
  • Use short-lived tokens (15 min access tokens, longer refresh tokens).
  • Validate the aud (audience) claim in JWTs to prevent token reuse across services.
  • Rotate API keys and credentials on a schedule.
// Verify JWT on every request -- not just presence but validity
function authenticateRequest(req: Request): User {
  const token = req.headers['authorization']?.replace('Bearer ', '');
  if (!token) throw new AuthError('Missing authentication token');

  const payload = jwt.verify(token, publicKey, {
    algorithms: ['RS256'],
    audience: 'api.myservice.com',     // Prevent token reuse from other services
    issuer: 'auth.mycompany.com',      // Verify who issued the token
  });

  return { id: payload.sub, roles: payload.roles };
}

Read the full file on GitHub · 376 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. 5d ago First seen · 376 lines · 58 tokens per session scan A 9bacb868a2d2

Subscribe to this mod's changes

threat-modeling is a skill published in the GitHub repository Vimalk0703/shipworthy (7 stars, last pushed 5mo ago), licensed MIT. It adds 58 tokens to every session and 3,510 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

hedgehog-planning-intake

Use on any core for first-run planning intake — Phase 0 runs the vendored BMAD-METHOD planning shelf, shared by every core, and Phase 1 (mining 04-prd.md into intent records plus the Add-ons/sync-and-remote-entities decision) is full-stack-app's and pwa-app's shared procedure — identical mechanics, a different…

skyf0xx/hedgehog · 0 tokens

bmad-product-brief

Create, update, or validate a product brief. Use when the user wants help producing, editing, or validating a brief.

skyf0xx/hedgehog · 31 tokens

bmad-deep-recon

Decision-grade research, three ways: draft a deep-research prompt for the user to run in their own tool (ChatGPT, Gemini, Grok, Perplexity, …), process a finished research report — file it, distill a succinct cited summary with metadata that downstream skills consume without reprocessing — or run the research here…

skyf0xx/hedgehog · 167 tokens

hedgehog

Use when the user writes the word "Hedgehog" anywhere in a request, or has agreed to install the Hedgehog build discipline in a project that does not have it yet. Hedgehog builds prose as well as code — articles, essays, blog posts, tweets, threads, newsletters, announcements, and marketing or product copy of any…

skyf0xx/hedgehog · 0 tokens

conventional-commits

Use when uncommitted changes need to be split into atomic, conventional commits ordered for review. Triggers on "commit this", "make commits", "clean up commits", "commit the changes". In Hedgehog, each Loop step is already meant to be its own commit — this skill matters most when a Correction Protocol fast-forward…

skyf0xx/hedgehog · 88 tokens

hedgehog-contributing

Use when the user wants to contribute a fix or ROADMAP.md item back to the Hedgehog project itself (skyf0xx/hedgehog) rather than their own project. Triggers on "let's fix that in Hedgehog", "I want to contribute", "let's pick up a roadmap item", or when tweaker offers this at the end of a build and the user says yes.…

skyf0xx/hedgehog · 120 tokens