[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DETHFWF1JNX2G7805MMR9Z":3,"skill-same:01M7DETHFWF1JNX2G7805MMR9Z":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7DETHFWF1JNX2G7805MMR9Z","threat-modeling",null,"Use when writing or reviewing a threat model, designing a system with security implications, or evaluating security claims and trade-offs — covers the seven questions, layered decomposition, risk status categories, and spotting weak security reasoning","kejadlen\u002Fdotfiles","kejadlen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8639?v=4","01M7DEPV4SN2WBW50SBF2KG7D1","Alpha Chen","01M7DEPV5FBX0YWCBKEVHKT8E2",10,"MIT","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: threat-modeling\ndescription: Use when writing or reviewing a threat model, designing a system with security implications, or evaluating security claims and trade-offs — covers the seven questions, layered decomposition, risk status categories, and spotting weak security reasoning\n---\n\n# Threat modeling\n\nAn informal, practical approach to threat models, from Soatok's guide.\nThreat modeling belongs at the design stage — architectural mistakes\n(wrong abstractions, unsolvable ordering requirements) are detectable\nthere and expensive to discover post-implementation.\n\n## The seven questions\n\nA threat model answers these, in roughly this order:\n\n1. What are we protecting? (assets)\n2. Who or what wants to harm it? (threat actors — hackers, activists,\n   cyber-stalkers, disgruntled employees, hostile legislators,\n   nation-states)\n3. How might 2 attack 1? (attack vectors)\n4. What will we do to prevent 3? (controls)\n5. How are the assets related and connected? Think in graphs, not\n   lists — attacks travel along relationships.\n6. What assumptions are we making, especially in 4 and 5?\n7. What threats are we deliberately not addressing? (accepted risks)\n\nQuestions 6 and 7 separate good threat models from bad ones. An\nincorrect assumption undermines the whole model — the Invisible\nSalamanders attack works because AEAD schemes like AES-GCM and\nChaCha20-Poly1305 are assumed to bind a ciphertext to a single key,\nand they don't. Writing assumptions down is how unknown unknowns get\nfound.\n\n## Method\n\n- Map the system's components graphically and draw the relationships\n  between components that interact or depend on each other.\n- Work in nested abstraction layers: start broad, then drill into\n  specifics. Different components have different security dependencies —\n  a database's needs aren't a load balancer's.\n- For each layer, document inputs, outputs, and answers to the seven\n  questions. For layers you're not examining deeply, document the\n  assumptions you're making about them instead.\n- Look for relationships that shouldn't exist and sever them.\n- Treat the result as a living document. A model unchanged for years\n  while vulnerabilities accumulate is a red flag, not a sign of\n  stability.\n\n## Structure of a good one\n\nSoatok's [Public Key Directory threat model][pkd] (key transparency for\nthe Fediverse) is the worked example. Sections: assumptions stated\nupfront, then assets, then actors (attackers and protected parties,\neach given a role name), then risks. Each risk gets a status:\n\n| Status | Meaning |\n|---|---|\n| Prevented by design | The attack cannot happen |\n| Mitigated | The attack fails unless an assumption breaks |\n| Addressable | Mitigation is possible but takes effort |\n| Open | Accepted risk; the attack will succeed |\n\nThe anti-pattern is a flat list of attack types with no assumptions, no\nasset inventory, no relationships, and stale coverage (Matrix's threat\nmodel earns a C- on these grounds). That said: a shitty threat model\nbeats not having a threat model.\n\n## Using it to evaluate claims\n\nThe same discipline detects weak security reasoning in debates and\nreviews: check the factual premises, check whether a proposed control\nactually mitigates the stated risk, and check for hedges that don't\nhold in the scenario they claim to address. Example from the\npost-quantum debate: hybrid PQ+ECDH hedges against a pre-Q-Day break of\nthe PQ algorithm but adds zero security post-Q-Day, so \"hybrid always\"\nis not the safety argument it sounds like — pure ECDH is what Q-Day\nretroactively breaks.\n\nControls trade against usability, and the trade cuts back: \"security at\nthe expense of usability comes at the expense of security\" (Avi\nDouglen). Threat modeling sometimes surfaces controls that improve\nboth — passkeys kill credential stuffing (asymmetric, domain-bound,\nnothing reusable to stuff) and are easier to use than passwords.\n\n[pkd]: https:\u002F\u002Fgithub.com\u002Ffedi-e2ee\u002Fpublic-key-directory-specification\u002Fblob\u002Fmain\u002FSpecification.md#threat-model\n\n## Sources\n\n- [Soatok's Informal Guide to Threat Models](https:\u002F\u002Fsoatok.blog\u002F2026\u002F06\u002F30\u002Fsoatoks-informal-guide-to-threat-models\u002F) (Soatok, 2026)\n","# Threat modeling\n\nAn informal, practical approach to threat models, from Soatok's guide.\nThreat modeling belongs at the design stage — architectural mistakes\n(wrong abstractions, unsolvable ordering requirements) are detectable\nthere and expensive to discover post-implementation.\n\n## The seven questions\n\nA threat model answers these, in roughly this order:\n\n1. What are we protecting? (assets)\n2. Who or what wants to harm it? (threat actors — hackers, activists,\n   cyber-stalkers, disgruntled employees, hostile legislators,\n   nation-states)\n3. How might 2 attack 1? (attack vectors)\n4. What will we do to prevent 3? (controls)\n5. How are the assets related and connected? Think in graphs, not\n   lists — attacks travel along relationships.\n6. What assumptions are we making, especially in 4 and 5?\n7. What threats are we deliberately not addressing? (accepted risks)\n\nQuestions 6 and 7 separate good threat models from bad ones. An\nincorrect assumption undermines the whole model — the Invisible\nSalamanders attack works because AEAD schemes like AES-GCM and\nChaCha20-Poly1305 are assumed to bind a ciphertext to a single key,\nand they don't. Writing assumptions down is how unknown unknowns get\nfound.\n\n## Method\n\n- Map the system's components graphically and draw the relationships\n  between components that interact or depend on each other.\n- Work in nested abstraction layers: start broad, then drill into\n  specifics. Different components have different security dependencies —\n  a database's needs aren't a load balancer's.\n- For each layer, document inputs, outputs, and answers to the seven\n  questions. For layers you're not examining deeply, document the\n  assumptions you're making about them instead.\n- Look for relationships that shouldn't exist and sever them.\n- Treat the result as a living document. A model unchanged for years\n  while vulnerabilities accumulate is a red flag, not a sign of\n  stability.\n\n## Structure of a good one\n\nSoatok's [Public Key Directory threat model][pkd] (key transparency for\nthe Fediverse) is the worked example. Sections: assumptions stated\nupfront, then assets, then actors (attackers and protected parties,\neach given a role name), then risks. Each risk gets a status:\n\n| Status | Meaning |\n|---|---|\n| Prevented by design | The attack cannot happen |\n| Mitigated | The attack fails unless an assumption breaks |\n| Addressable | Mitigation is possible but takes effort |\n| Open | Accepted risk; the attack will succeed |\n\nThe anti-pattern is a flat list of attack types with no assumptions, no\nasset inventory, no relationships, and stale coverage (Matrix's threat\nmodel earns a C- on these grounds). That said: a shitty threat model\nbeats not having a threat model.\n\n## Using it to evaluate claims\n\nThe same discipline detects weak security reasoning in debates and\nreviews: check the factual premises, check whether a proposed control\nactually mitigates the stated risk, and check for hedges that don't\nhold in the scenario they claim to address. Example from the\npost-quantum debate: hybrid PQ+ECDH hedges against a pre-Q-Day break of\nthe PQ algorithm but adds zero security post-Q-Day, so \"hybrid always\"\nis not the safety argument it sounds like — pure ECDH is what Q-Day\nretroactively breaks.\n\nControls trade against usability, and the trade cuts back: \"security at\nthe expense of usability comes at the expense of security\" (Avi\nDouglen). Threat modeling sometimes surfaces controls that improve\nboth — passkeys kill credential stuffing (asymmetric, domain-bound,\nnothing reusable to stuff) and are easier to use than passwords.\n\n[pkd]: https:\u002F\u002Fgithub.com\u002Ffedi-e2ee\u002Fpublic-key-directory-specification\u002Fblob\u002Fmain\u002FSpecification.md#threat-model\n\n## Sources\n\n- [Soatok's Informal Guide to Threat Models](https:\u002F\u002Fsoatok.blog\u002F2026\u002F06\u002F30\u002Fsoatoks-informal-guide-to-threat-models\u002F) (Soatok, 2026)\n",{"name":5,"description":7},"main","54400d2fb3ebb925baf35311c647aaa31e7a5222","ai\u002Fskills\u002Fthreat-modeling",0,"https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fkejadlen","https:\u002F\u002Fkejadlen.dev","2026-11-14 03:39:37",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add kejadlen\u002Fdotfiles --skill threat-modeling",{"tool":38,"command":39},"bunx","bunx skills add kejadlen\u002Fdotfiles --skill threat-modeling",{"tool":41,"command":42},"pnpm","pnpm dlx skills add kejadlen\u002Fdotfiles --skill threat-modeling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7DEVM19CB8GSCZV56PHA594","zoekt","Use when searching code across repositories — prefer zoekt over grep\u002Fripgrep for indexed code search. Covers indexing repos, search syntax, and query patterns.","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fzoekt\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7DEVF10JKR56RSX30PZ8BNH","writing-for-accessibility","Use when writing documentation, alt text, diagrams, or any content that should be accessible to people with disabilities. Covers alt text, color contrast, inclusive language, and accessible visuals. Also use when reviewing documents for accessibility.","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fwriting-for-accessibility\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7DEVA0Q63VMQWG32VN18XYB","writing-error-messages","Use when writing, reviewing, or improving error messages in code, CLI tools, APIs, or UIs. Covers identifying the cause, explaining the fix, and setting the right tone. Also use when error messages are vague, unactionable, or confusing.","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fwriting-error-messages\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7DEV6GGF2H3FW3YCPWXRRT6","working-in-the-open","Use when making design decisions during implementation — routes rationale to the right venue (commits, task comments, code comments, or documentation) based on how durable the context needs to be","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fworking-in-the-open\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7DEV2XTM37B9S0QV8X9SNSW","web-standards","Use when writing or reviewing HTML, CSS, or browser JavaScript — covers semantic markup, native platform features over libraries, Baseline browser support, accessibility and APCA contrast, and optional validation with vnu, axe, and Lighthouse","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fweb-standards\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7DETYVQNPNGXC094DT0PTDF","web-design","Use when designing or building web UI, frontends, or styling — covers personal web design preferences, fluid layout, and Alpine.js","https:\u002F\u002Fgithub.com\u002Fkejadlen\u002Fdotfiles\u002Fblob\u002Fmain\u002Fai\u002Fskills\u002Fweb-design\u002FSKILL.md",[],[]]