[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JQDZDYJ9TMZ3KZNJP762CF":3,"skill-same:01M6JQDZDYJ9TMZ3KZNJP762CF":76},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":14,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6JQDZDYJ9TMZ3KZNJP762CF","tdd-workflow",null,"Guide test-driven development with red-green-refactor. For NEW code via test-first — use test-suite-design for adding tests to existing code.","SWEStash\u002Fswe-workflow-skills","SWEStash","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272895713?v=4","01M6JNRQ84JN5WFK9S1V5H4G46","SWE Stash","01M6JNRQCM45X8WPNHY30TSAB0",1,"MIT","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"tdd","workflow","tdd workflow","guide","Existing","for","adding tests","with","triggers","tests","green","red-green-refactor","use","design","write","refactor","code","development","write tests","implement","2026-11-10 10:12:30",false,"---\nname: tdd-workflow\ndescription: \"Guide test-driven development with red-green-refactor. For NEW code via test-first — use test-suite-design for adding tests to existing code.\"\nwhen_to_use: \"Triggers: use tdd, test first, write the tests, red green refactor, test-driven, what should I test, write tests before code, failing test, implement using TDD.\"\n---\n\n# TDD Workflow\n\nGuide implementation through the red-green-refactor cycle. TDD produces code that is testable by design, has a living specification, and tends toward simpler solutions because you only write what's needed to pass the next test.\n\n## ⛔ The Iron Law\n\n**No production code without a failing test you have watched fail.**\n\nIf you wrote code before the test, set it aside and restart from the test — **stash it rather than delete it** (`git stash`, or a scratch file) so the work is recoverable but out of sight; don't keep it \"as reference\" or \"adapt it\" while writing the test. **A deadline is not an exception to this** — it is the situation the rule exists for. A test you didn't watch fail proves nothing: you don't know whether it tests the right thing. This is the one rule that the rest of the workflow protects.\n\n## The Cycle\n\n```\n┌──────────────────────────────────┐\n│           RED                     │\n│  Write a failing test that        │\n│  describes the next behavior      │\n├──────────────────────────────────┤\n│           GREEN                   │\n│  Write the minimum code to        │\n│  make the test pass               │\n├──────────────────────────────────┤\n│           REFACTOR                │\n│  Improve the code while           │\n│  keeping all tests green          │\n└──────────────────────────────────┘\n         ↑                    │\n         └────────────────────┘\n```\n\n## Workflow\n\n### Step 0: Plan the Test List\n\nBefore writing any test, create a list of behaviors to test. Derive this from acceptance criteria or the task description. Order from simplest to most complex:\n\n1. **Happy path** — the simplest valid scenario\n2. **Edge cases** — boundary values, empty inputs, single items\n3. **Error cases** — invalid input, missing resources, permission failures\n4. **Integration points** — interactions with other components\n\n**Exit condition** — one line, then keep going in the same response:\n*\"Test list: `\u003Cn>` behaviors, starting with `\u003Cthe simplest one>`.\"*\n\n**This step is not a gate on delivering.** The test list is the roadmap — each item becomes\none red-green-refactor cycle — but presenting it is not the deliverable. **Run the first\ncycle in the same response**: a real failing test body, the minimum code that passes it, and\neither a named refactor or an explicit \"nothing to refactor yet\". A reply that stops at test\nnames and input values has delivered nothing testable.\n\nWhere a requirement is under-specified, **state the assumption and encode it in the test** —\na test the user corrects beats a question they must answer. Ask only when the assumption\nwould change what the code is, not merely a value you can name in one line.\n\n### Step 1: RED — Write a Failing Test\n\nWrite exactly one test that describes the next behavior. The test should:\n\n- Have a descriptive name that reads like a specification: `test_user_cannot_login_with_expired_password`\n- Follow the Arrange-Act-Assert pattern (or Given-When-Then)\n- Test behavior, not implementation (assert on outputs, not internal state)\n- Fail for the right reason (missing function, wrong return value — not syntax error)\n\nRun the test and confirm it fails. Show the failure output to the user. If the test passes immediately, either the behavior already exists or the test is wrong.\n\n### Step 2: GREEN — Make It Pass\n\nWrite the **minimum code** to make the failing test pass. This is critical — resist the urge to write the \"right\" solution. Minimum means:\n\n- Hard-code a return value if that's enough\n- Use the simplest possible data structure\n- Skip error handling if no test requires it yet\n- Ignore performance, elegance, or future needs\n\nRun all tests (not just the new one). Everything must be green.\n\n### Step 3: REFACTOR — Improve Under Green\n\nNow improve the code while all tests stay green. Look for:\n\n- **Duplication** → Extract methods, constants, or shared setup\n- **Naming** → Rename to reveal intent\n- **Complexity** → Simplify conditionals, flatten nesting\n- **Responsibility** → Extract classes\u002Fmodules if a function does too much\n\nAlso refactor the tests:\n- Remove duplication in test setup (use fixtures\u002Fhelpers)\n- Improve test names if the behavior is clearer now\n- Ensure tests are independent (no shared mutable state)\n\nRun all tests after each refactoring step. If anything breaks, undo the last change immediately.\n\n### Step 4: Repeat\n\nPick the next item from the test list. Return to Step 1.\n\nAfter completing all items, do a final review — see [references\u002Ftest-quality.md](references\u002Ftest-quality.md).\n\n## Adapting TDD to Different Contexts\n\n**Unit tests** (default): Test a single function or class in isolation. Mock external dependencies. Fast feedback loop (milliseconds).\n\n**Integration tests**: Test how components work together. Use for database queries, API endpoints, message handling. Slower but catch wiring bugs.\n\n**Outside-in TDD**: Start with an acceptance test (failing), then drive the implementation with unit tests. Useful when you know the desired API or user interaction.\n\n**Inside-out TDD**: Start with the core domain logic, build outward. Useful when the domain is complex and the interface is flexible.\n\nSuggest the appropriate approach based on the task. Default to unit tests unless the task is primarily about integration.\n\n## What NOT to TDD\n\nTDD is a design tool, not a coverage tool. Don't TDD:\n- Trivial getters\u002Fsetters\n- Framework configuration\n- Third-party libraries themselves — test *your code's use* of them at the integration level; don't re-assert what the library's own tests already cover (its compression, its persistence, its parsing)\n- UI layout (visual regression tools are better here)\n\n## Principles Applied\n\n- **YAGNI**: The test list prevents building more than needed. If there's no test for it, don't build it.\n- **KISS**: Minimum code to pass forces simplicity.\n- **Functional Independence**: Tests that mock dependencies encourage decoupled design.\n- **DRY**: Refactoring phase explicitly targets duplication.\n- **FIRST**: Tests should be Fast, Independent, Repeatable, Self-validating, and Timely — see [references\u002Ftest-quality.md](references\u002Ftest-quality.md) for the full checklist and test smell detection.\n\n## Rationalizations to reject\n\nThese are the excuses that lead to skipping the test. None of them hold up.\n\n| Excuse | Reality |\n|--------|---------|\n| \"It's too simple to test\" | Simple code still breaks. The test costs 30 seconds; the regression costs an afternoon. |\n| \"I'll add the tests after\" | Tests written after the code pass immediately — they prove the code does what it does, not what it should. |\n| \"I already tested it manually\" | Manual checks aren't repeatable and don't guard against the next regression. |\n| \"Deleting working code is wasteful\" | Sunk cost. Unverified code is debt, not progress. |\n| \"Tests-after achieve the same thing\" | Tests-first ask \"what should this do?\"; tests-after ask \"what does this do?\" — different specs. |\n| \"TDD will slow me down\" | Debugging untested code is slower than writing the test first. |\n| **\"We ship in 30 minutes — no time for this\"** | **The deadline is when the law matters most, not when it lapses.** A demo that ships on unverified code is how the bug reaches production with nobody watching. Test-first on the one behavior that matters beats tests-after on all of them. |\n| **\"But the code is already written and it works\"** | You do not know that — you watched it work once, by hand. **Stash it, don't delete it** (`git stash`, or move it to a scratch file): it stays recoverable and out of sight so you cannot copy from it while writing the test. Then write the failing test, watch it fail, and re-derive. If the stash turns out to match, you lost two minutes and gained a test that means something. |\n\n## Red flags — stop and correct course\n\n- You're writing implementation and will \"get to the test next.\"\n- A new test passes the first time you run it (you never saw RED).\n- You can't explain why the test failed in the RED phase.\n- You're glancing at not-yet-deleted draft code while writing the \"test-first\" version.\n- You're editing the *test* to make it pass — the test was the spec; change the code, or escalate if the spec itself is wrong.\n\n## Cross-Skill References\n\n- `test-suite-design` — adding tests to existing code (this skill is for new code, test-first)\n- `bug-investigating` — write a regression test for a found bug using this cycle\n- `verification-before-completion` — the GREEN step is this gate: watch the test pass for real\n","# TDD Workflow\n\nGuide implementation through the red-green-refactor cycle. TDD produces code that is testable by design, has a living specification, and tends toward simpler solutions because you only write what's needed to pass the next test.\n\n## ⛔ The Iron Law\n\n**No production code without a failing test you have watched fail.**\n\nIf you wrote code before the test, set it aside and restart from the test — **stash it rather than delete it** (`git stash`, or a scratch file) so the work is recoverable but out of sight; don't keep it \"as reference\" or \"adapt it\" while writing the test. **A deadline is not an exception to this** — it is the situation the rule exists for. A test you didn't watch fail proves nothing: you don't know whether it tests the right thing. This is the one rule that the rest of the workflow protects.\n\n## The Cycle\n\n```\n┌──────────────────────────────────┐\n│           RED                     │\n│  Write a failing test that        │\n│  describes the next behavior      │\n├──────────────────────────────────┤\n│           GREEN                   │\n│  Write the minimum code to        │\n│  make the test pass               │\n├──────────────────────────────────┤\n│           REFACTOR                │\n│  Improve the code while           │\n│  keeping all tests green          │\n└──────────────────────────────────┘\n         ↑                    │\n         └────────────────────┘\n```\n\n## Workflow\n\n### Step 0: Plan the Test List\n\nBefore writing any test, create a list of behaviors to test. Derive this from acceptance criteria or the task description. Order from simplest to most complex:\n\n1. **Happy path** — the simplest valid scenario\n2. **Edge cases** — boundary values, empty inputs, single items\n3. **Error cases** — invalid input, missing resources, permission failures\n4. **Integration points** — interactions with other components\n\n**Exit condition** — one line, then keep going in the same response:\n*\"Test list: `\u003Cn>` behaviors, starting with `\u003Cthe simplest one>`.\"*\n\n**This step is not a gate on delivering.** The test list is the roadmap — each item becomes\none red-green-refactor cycle — but presenting it is not the deliverable. **Run the first\ncycle in the same response**: a real failing test body, the minimum code that passes it, and\neither a named refactor or an explicit \"nothing to refactor yet\". A reply that stops at test\nnames and input values has delivered nothing testable.\n\nWhere a requirement is under-specified, **state the assumption and encode it in the test** —\na test the user corrects beats a question they must answer. Ask only when the assumption\nwould change what the code is, not merely a value you can name in one line.\n\n### Step 1: RED — Write a Failing Test\n\nWrite exactly one test that describes the next behavior. The test should:\n\n- Have a descriptive name that reads like a specification: `test_user_cannot_login_with_expired_password`\n- Follow the Arrange-Act-Assert pattern (or Given-When-Then)\n- Test behavior, not implementation (assert on outputs, not internal state)\n- Fail for the right reason (missing function, wrong return value — not syntax error)\n\nRun the test and confirm it fails. Show the failure output to the user. If the test passes immediately, either the behavior already exists or the test is wrong.\n\n### Step 2: GREEN — Make It Pass\n\nWrite the **minimum code** to make the failing test pass. This is critical — resist the urge to write the \"right\" solution. Minimum means:\n\n- Hard-code a return value if that's enough\n- Use the simplest possible data structure\n- Skip error handling if no test requires it yet\n- Ignore performance, elegance, or future needs\n\nRun all tests (not just the new one). Everything must be green.\n\n### Step 3: REFACTOR — Improve Under Green\n\nNow improve the code while all tests stay green. Look for:\n\n- **Duplication** → Extract methods, constants, or shared setup\n- **Naming** → Rename to reveal intent\n- **Complexity** → Simplify conditionals, flatten nesting\n- **Responsibility** → Extract classes\u002Fmodules if a function does too much\n\nAlso refactor the tests:\n- Remove duplication in test setup (use fixtures\u002Fhelpers)\n- Improve test names if the behavior is clearer now\n- Ensure tests are independent (no shared mutable state)\n\nRun all tests after each refactoring step. If anything breaks, undo the last change immediately.\n\n### Step 4: Repeat\n\nPick the next item from the test list. Return to Step 1.\n\nAfter completing all items, do a final review — see [references\u002Ftest-quality.md](references\u002Ftest-quality.md).\n\n## Adapting TDD to Different Contexts\n\n**Unit tests** (default): Test a single function or class in isolation. Mock external dependencies. Fast feedback loop (milliseconds).\n\n**Integration tests**: Test how components work together. Use for database queries, API endpoints, message handling. Slower but catch wiring bugs.\n\n**Outside-in TDD**: Start with an acceptance test (failing), then drive the implementation with unit tests. Useful when you know the desired API or user interaction.\n\n**Inside-out TDD**: Start with the core domain logic, build outward. Useful when the domain is complex and the interface is flexible.\n\nSuggest the appropriate approach based on the task. Default to unit tests unless the task is primarily about integration.\n\n## What NOT to TDD\n\nTDD is a design tool, not a coverage tool. Don't TDD:\n- Trivial getters\u002Fsetters\n- Framework configuration\n- Third-party libraries themselves — test *your code's use* of them at the integration level; don't re-assert what the library's own tests already cover (its compression, its persistence, its parsing)\n- UI layout (visual regression tools are better here)\n\n## Principles Applied\n\n- **YAGNI**: The test list prevents building more than needed. If there's no test for it, don't build it.\n- **KISS**: Minimum code to pass forces simplicity.\n- **Functional Independence**: Tests that mock dependencies encourage decoupled design.\n- **DRY**: Refactoring phase explicitly targets duplication.\n- **FIRST**: Tests should be Fast, Independent, Repeatable, Self-validating, and Timely — see [references\u002Ftest-quality.md](references\u002Ftest-quality.md) for the full checklist and test smell detection.\n\n## Rationalizations to reject\n\nThese are the excuses that lead to skipping the test. None of them hold up.\n\n| Excuse | Reality |\n|--------|---------|\n| \"It's too simple to test\" | Simple code still breaks. The test costs 30 seconds; the regression costs an afternoon. |\n| \"I'll add the tests after\" | Tests written after the code pass immediately — they prove the code does what it does, not what it should. |\n| \"I already tested it manually\" | Manual checks aren't repeatable and don't guard against the next regression. |\n| \"Deleting working code is wasteful\" | Sunk cost. Unverified code is debt, not progress. |\n| \"Tests-after achieve the same thing\" | Tests-first ask \"what should this do?\"; tests-after ask \"what does this do?\" — different specs. |\n| \"TDD will slow me down\" | Debugging untested code is slower than writing the test first. |\n| **\"We ship in 30 minutes — no time for this\"** | **The deadline is when the law matters most, not when it lapses.** A demo that ships on unverified code is how the bug reaches production with nobody watching. Test-first on the one behavior that matters beats tests-after on all of them. |\n| **\"But the code is already written and it works\"** | You do not know that — you watched it work once, by hand. **Stash it, don't delete it** (`git stash`, or move it to a scratch file): it stays recoverable and out of sight so you cannot copy from it while writing the test. Then write the failing test, watch it fail, and re-derive. If the stash turns out to match, you lost two minutes and gained a test that means something. |\n\n## Red flags — stop and correct course\n\n- You're writing implementation and will \"get to the test next.\"\n- A new test passes the first time you run it (you never saw RED).\n- You can't explain why the test failed in the RED phase.\n- You're glancing at not-yet-deleted draft code while writing the \"test-first\" version.\n- You're editing the *test* to make it pass — the test was the spec; change the code, or escalate if the spec itself is wrong.\n\n## Cross-Skill References\n\n- `test-suite-design` — adding tests to existing code (this skill is for new code, test-first)\n- `bug-investigating` — write a regression test for a found bug using this cycle\n- `verification-before-completion` — the GREEN step is this gate: watch the test pass for real\n",{"name":5,"description":7,"when_to_use":44},"Triggers: use tdd, test first, write the tests, red green refactor, test-driven, what should I test, write tests before code, failing test, implement using TDD.","main","800dc9ad0ca2914d6ad15b8c5159d9b57bb104c2","skills\u002Ftdd-workflow","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills","https:\u002F\u002Fgithub.com\u002FSWEStash","A stash of things we felt like building","2026-11-12 00:14:33",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add SWEStash\u002Fswe-workflow-skills --skill tdd-workflow",{"tool":58,"command":59},"bunx","bunx skills add SWEStash\u002Fswe-workflow-skills --skill tdd-workflow",{"tool":61,"command":62},"pnpm","pnpm dlx skills add SWEStash\u002Fswe-workflow-skills --skill tdd-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002FSKILL.md",true,[66,72],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Fevals.json","REFERENCE","参考文档",4040,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Fevals\u002Fevals.json",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Ftest-quality.md",3296,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-workflow\u002Freferences\u002Ftest-quality.md",[77,100,126,148,173,198],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":39},"01M6JQFADV3T1MS9V1BNZS1232","writing-skills","Use when authoring, editing, or reviewing a skill in this library — a new SKILL.md, one that under-triggers, or hardening an existing one. Covers description and listing-budget rules, frontmatter, progressive disclosure, the 3-eval rule, and pressure-testing against rationalizations.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[84,85,86,87,33,88,89,90,91,92,93,94,27,31,23,95,96,97,98,99],"writing","writing skills","testing","eval","edit","Budget","authoring","new skill","library","frontmatter","editing","Rules","write a skill","when","listing","progressive disclosure",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M6JQF5DGMXPMQQVZBP8DH9SY","working-agreement","Define and validate how a multi-session project is run — where plans, status and decisions live, session routines, new work, milestone close. README\u002FCONTRIBUTING → project-documentation.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fworking-agreement\u002FSKILL.md",[],[107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,27,125],"working agreement","project","definition of done","done","milestone","documentation","work","progress","how","contributing","close","run","sync","status","live","do","README","session","routines",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":39},"01M6JQF0SMRHN82RBSWMABC4J0","verification-before-completion","Evidence gate before any claim that work is done, fixed, passing, or deployed. Route here when a message declares the work finished or asks to commit, push, merge, ship, or close it out, including a brief sign-off, and before git-workflow or release-management act on it. Writing the commit message or PR text itself → git-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[133,134,135,136,137,138,84,20,110,139,140,141,113,142,117,143,144,145,146,147],"verification","verification before completion","brief","ready","fix","claim","commit","text","route","message","merge","release","git","act","ship",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":39},"01M6JQEVGE9NJZ11DV60AE6VWC","ui-ux-design","Design user experiences from an engineer's perspective — user flows, wireframes, interaction patterns, responsive strategy, navigation, loading\u002Ferror\u002Fempty states. Triggers: design the UI, user flow, wireframe, how should this screen look, loading state, error state, empty state, responsive design, navigation, page layout, form design, mockup.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-ux-design\u002FSKILL.md",[],[32,155,156,157,158,159,160,161,162,163,164,165,115,166,167,168,169,170,171,172],"ux","ui","ui ux design","error","states","loading","flows","engineer","interaction","layout","responsive design","screen","flow","patterns","mockup","responsive","form","page",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":39},"01M6JQEN4HVFTZWQYWGTDS76K9","threat-modeling","Design-time security analysis of a system or feature before it's built — trust boundaries, attack surface, STRIDE per element, abuse cases, prioritized mitigations that become security requirements. Triggers: threat model, STRIDE, trust boundary, attack surface, what could go wrong security-wise, security design review, abuse case, secure this design, security requirements. Reviewing EXISTING code\u002Fconfig for vulnerabilities → security-audit; use this skill while the design is still on the whiteboard.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",[],[180,181,182,183,184,185,32,186,187,188,35,189,190,191,192,193,194,195,196,197],"modeling","threat modeling","threat","model","time","element","whiteboard","security analysis","analysis","review","threat model","audit","security-audit","secure","config","go","security","trust",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":39},"01M6JQEFT7VT3FQM16170EG9FW","test-suite-design","Design comprehensive test suites for existing code — strategy across unit\u002Fintegration\u002Fe2e, fixtures, factories, helpers. Triggers: add tests, write tests for, increase coverage, test this module, testing strategy, test plan, what tests do I need, test infrastructure, test helpers, this has no tests. Not for TDD — use tdd-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite-design\u002FSKILL.md",[],[32,205,206,207,208,209,86,37,210,20,35,211,212,33,213,214,122,215,24,27],"test suite","test","test suite design","coverage","unit","testing strategy","across","plan","add","infrastructure","test plan"]