majiayu000/security-threat-model
Threat-model product features, APIs, data flows, secrets, permissions, supply-chain changes, auth boundaries, and risky code paths before or during implementation. Use when touching authentication, authorization, payments, secrets, user data, uploads, webhooks, admin tools, innerHTML/eval/exec, dependency upgrades, or cross-tenant access.
npx skills add https://github.com/majiayu000/spellbook --skill security-threat-model
Use this skill before implementing or approving security-sensitive changes. It complements auth-security and server-security by mapping assets, attackers, trust boundaries, and concrete controls.
Identify:
Check at least:
Every finding needs one of:
Do not accept "warn and continue" for authz, secrets, tenant isolation, injection, or payment/security-critical failures.
scope:
assets:
trust_boundaries:
entry_points:
threats:
required_controls:
tests_or_probes:
residual_risks:
review_gate:
For implementation work, include exact files and verification commands that prove the controls are active.
Take majiayu000/security-threat-model from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.