Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
.claude/skills/majiayu000-security-threat-model/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | -5% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-22 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-04 | ✓→✗ | ▼ Worse | 43% | 0% |
| case-10 | ✓→✗ | ▼ Worse | -14% | 0% |
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.
textscope: 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.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-03 | fail→fail | 21,009 | 22,768 | +8% | 1 | 1 | 0% | 3,617 | 4,335 | +20% | 0 | 0 | — |
case-01 | fail→fail | 31,258 | 25,041 | -20% | 1 | 1 | 0% | 5,528 | 5,147 | -7% | 0 | 0 | — |
case-02 | fail→fail | 49,028 | 26,727 | -45% | 1 | 1 | 0% | 8,257 | 4,749 | -42% | 0 | 0 | — |
case-04 | pass→fail | 12,744 | 16,829 | +32% | 1 | 1 | 0% | 2,560 | 3,657 | +43% | 0 | 0 | — |
case-05 | pass→pass | 12,409 | 17,697 | +43% | 1 | 1 | 0% | 2,577 | 3,797 | +47% | 0 | 0 | — |
case-06 | pass→pass | 10,221 | 12,322 | +21% | 1 | 1 | 0% | 1,611 | 2,347 | +46% | 0 | 0 | — |
case-07 | pass→pass | 18,424 | 14,254 | -23% | 1 | 1 | 0% | 2,803 | 2,719 | -3% | 0 | 0 | — |
case-08 | fail→pass | 22,876 | 19,314 | -16% | 1 | 1 | 0% | 3,709 | 3,506 | -5% | 0 | 0 | — |
case-09 | pass→pass | 20,180 | 28,524 | +41% | 1 | 1 | 0% | 3,424 | 5,173 | +51% | 0 | 0 | — |
case-10 | pass→fail | 24,516 | 17,933 | -27% | 1 | 1 | 0% | 3,828 | 3,288 | -14% | 0 | 0 | — |
case-11 | fail→fail | 22,047 | 22,929 | +4% | 1 | 1 | 0% | 3,597 | 4,218 | +17% | 0 | 0 | — |
case-12 | pass→pass | 18,863 | 14,709 | -22% | 1 | 1 | 0% | 3,016 | 2,821 | -6% | 0 | 0 | — |
case-13 | pass→fail | 21,674 | 20,979 | -3% | 1 | 1 | 0% | 3,697 | 3,995 | +8% | 0 | 0 | — |
case-14 | pass→pass | 20,501 | 22,092 | +8% | 1 | 1 | 0% | 3,113 | 3,745 | +20% | 0 | 0 | — |
case-15 | fail→fail | 19,585 | 22,209 | +13% | 1 | 1 | 0% | 3,201 | 4,112 | +28% | 0 | 0 | — |
case-16 | pass→pass | 27,031 | 19,523 | -28% | 1 | 1 | 0% | 4,825 | 3,676 | -24% | 0 | 0 | — |
case-17 | fail→pass | 23,385 | 23,077 | -1% | 1 | 1 | 0% | 3,989 | 4,093 | +3% | 0 | 0 | — |
case-18 | pass→fail | 23,133 | 20,909 | -10% | 1 | 1 | 0% | 3,796 | 3,702 | -2% | 0 | 0 | — |
case-19 | fail→fail | 18,609 | 17,658 | -5% | 1 | 1 | 0% | 3,166 | 3,378 | +7% | 0 | 0 | — |
case-20 | fail→fail | 23,215 | 31,908 | +37% | 1 | 1 | 0% | 3,930 | 5,700 | +45% | 0 | 0 | — |
case-21 | fail→fail | 16,796 | 17,118 | +2% | 1 | 1 | 0% | 2,697 | 3,123 | +16% | 0 | 0 | — |
case-22 | fail→pass | 21,278 | 20,301 | -5% | 1 | 1 | 0% | 3,529 | 3,843 | +9% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of -9 percentage points is the difference between those two pass rates over the 22 comparable cases. 6 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.