[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JQ2S1YBTS7P1NGWRAV4XHB":3,"skill-same:01M6JQ2S1YBTS7P1NGWRAV4XHB":79},{"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":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6JQ2S1YBTS7P1NGWRAV4XHB","api-design",null,"Design RESTful and GraphQL APIs — endpoint naming, request\u002Fresponse contracts, error handling, pagination, versioning, auth patterns, OpenAPI specs. Triggers: design the API, API contract, REST API, GraphQL schema, error response format, pagination, API versioning, OpenAPI, swagger, endpoints. Use architecture-design for REST-vs-GraphQL or monolith-vs-microservices decisions.","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\u002Fapi-design\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"api","api design","design","schema","contract","triggers","openapi","api contract","monolith","for","api versioning","swagger","endpoint","contracts","graphql schema","patterns","versioning","architecture","auth","error","2026-11-10 10:12:30",false,"---\nname: api-design\ndescription: \"Design RESTful and GraphQL APIs — endpoint naming, request\u002Fresponse contracts, error handling, pagination, versioning, auth patterns, OpenAPI specs. Triggers: design the API, API contract, REST API, GraphQL schema, error response format, pagination, API versioning, OpenAPI, swagger, endpoints. Use architecture-design for REST-vs-GraphQL or monolith-vs-microservices decisions.\"\n---\n\n# API Design\n\nDesign APIs that are consistent, predictable, and easy to consume. A well-designed API is intuitive to use without reading documentation — but has great documentation anyway.\n\n## Scope Boundary\n\nThis skill designs the **contract** (endpoints, request\u002Fresponse shapes, error formats, pagination). For higher-level decisions (REST vs GraphQL, API gateway, authentication strategy), use the `architecture-design` skill first, then return here to design the specifics.\n\n## The Deliverable\n\nAn API design is not finished until it carries **all six** of these. A list of endpoints is a\nthird of an answer:\n\n1. **Resources and endpoints** — URLs, methods, and how relationships are expressed\n2. **Request\u002Fresponse schemas** — field names, types, and the response envelope\n3. **The error format** — one shape for every error, plus the status-code mapping\n4. **The pagination contract** — parameters and response shape for every list endpoint\n5. **Auth per endpoint** — scheme, who may call it, and which endpoints are public\n6. **The written spec** — markdown or OpenAPI, using [templates\u002Fapi-spec.md](templates\u002Fapi-spec.md)\n\nDeliver all six **in the same response**. Where a choice is genuinely open, pick the default\nthis skill recommends, say you picked it, and keep going — never return a design as a list of\nquestions.\n\n## Workflow\n\n### Step 1: Identify Resources and Operations\n\nStart from the domain model, not the UI:\n\n- **What are the resources?** (nouns: users, orders, products, comments)\n- **What operations exist?** (CRUD + domain-specific: archive, publish, approve)\n- **What are the relationships?** (user has orders, order contains items)\n- **Who consumes this API?** (web app, mobile app, third-party, internal service)\n\nMap each resource to its operations before choosing URLs or methods. Include the\noperations the requested ones need in order to be safe, even when the request doesn't\nname them: registration needs email verification, or anyone can claim any address. These\nare part of the design, not an open decision to default away.\n\n### Step 2: Design Endpoints\n\nApply RESTful naming conventions — see [references\u002Frest-conventions.md](references\u002Frest-conventions.md):\n\n```\nGET    \u002Fapi\u002Fv1\u002Fusers          → List users\nPOST   \u002Fapi\u002Fv1\u002Fusers          → Create user\nGET    \u002Fapi\u002Fv1\u002Fusers\u002F:id      → Get user\nPATCH  \u002Fapi\u002Fv1\u002Fusers\u002F:id      → Update user (partial)\nDELETE \u002Fapi\u002Fv1\u002Fusers\u002F:id      → Delete user\n\n# Nested resources (when the child only makes sense in parent context)\nGET    \u002Fapi\u002Fv1\u002Fusers\u002F:id\u002Forders    → List user's orders\nPOST   \u002Fapi\u002Fv1\u002Fusers\u002F:id\u002Forders    → Create order for user\n\n# Actions that don't map to CRUD\nPOST   \u002Fapi\u002Fv1\u002Forders\u002F:id\u002Fcancel   → Cancel an order\nPOST   \u002Fapi\u002Fv1\u002Fusers\u002F:id\u002Fverify    → Verify a user's email\n```\n\nPresent the endpoint list, then **design the schemas in the same response** — the list is a checkpoint, not a stopping point. Invite correction on the naming while delivering the rest.\n\n### Step 3: Define Request\u002FResponse Schemas\n\nFor each endpoint, define:\n\n**Request**: Query parameters (for filtering\u002Fpagination), path parameters, request body with field types and validation rules.\n\n**Response**: Status code, response body shape, included relationships.\n\nUse consistent patterns across all endpoints — see [references\u002Frest-conventions.md](references\u002Frest-conventions.md) for standard shapes.\n\nDecisions to make **now**, with a stated default rather than a question — flag them for\ncorrection and move on:\n- **ID format**: default ULID (sortable, no coordination); integer or UUID if the stack forces it\n- **Date format**: ISO 8601 always (`2025-03-05T14:30:00Z`) — not a decision\n- **Null vs absent**: default omit absent fields, return `null` only for a known-empty value\n- **Envelope or not**: default `{ data, pagination }` on collections, flat on single resources\n\n### Step 4: Standardize Error Responses\n\nEvery API error should use the same shape. Recommend this format:\n\n```json\n{\n  \"error\": {\n    \"code\": \"VALIDATION_ERROR\",\n    \"message\": \"Human-readable description for developers\",\n    \"details\": [\n      {\n        \"field\": \"email\",\n        \"message\": \"Must be a valid email address\"\n      }\n    ]\n  }\n}\n```\n\nMap HTTP status codes consistently:\n- `400` — Client sent invalid data (validation errors)\n- `401` — Authentication required or invalid\n- `403` — Authenticated but not authorized for this action\n- `404` — Resource not found\n- `409` — Conflict (duplicate, state violation)\n- `422` — Valid syntax but semantically invalid (business rule violation)\n- `429` — Rate limited\n- `500` — Server error (never expose internals)\n\nKeep `401` and `403` both in the mapping even when no endpoint returns `403` yet: clients\ncode against the distinction, and adding it later changes what they must handle.\n\n### Step 5: Design Pagination, Filtering, Sorting\n\nFor any list endpoint that could return many results:\n\n**Pagination** (recommend cursor-based for most cases):\n```\nGET \u002Fapi\u002Fv1\u002Forders?cursor=abc123&limit=20\n\nResponse:\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"next_cursor\": \"def456\",\n    \"has_more\": true\n  }\n}\n```\n\n**Filtering**: Use query parameters with clear naming:\n```\nGET \u002Fapi\u002Fv1\u002Forders?status=pending&created_after=2025-01-01\n```\n\n**Sorting**: Use a `sort` parameter with `-` prefix for descending:\n```\nGET \u002Fapi\u002Fv1\u002Forders?sort=-created_at,total\n```\n\nWhen the request also asks what the storage must do to serve these (indexes,\npartitioning, table size), say where the line falls, in one sentence of the answer:\nthis design fixes what the endpoint promises, and `data-modeling` decides whether the\nstore can keep that promise. Then name where the two meet: a cursor's ordering key is\nboth a contract choice and an index.\n\n### Step 6: Define Authentication and Authorization\n\nFor each endpoint, specify:\n- **Authentication**: Required? What scheme? (Bearer token, API key, session)\n- **Authorization**: What roles\u002Fpermissions can access this? Document per-endpoint.\n- **Public endpoints**: Explicitly mark which endpoints don't require auth.\n\n### Step 7: Produce the Specification\n\nOutput the API design as one of:\n- **Markdown document** — for internal APIs and quick designs\n- **OpenAPI 3.x spec** — for formal APIs, enables codegen and tooling\n\nUse the template at [templates\u002Fapi-spec.md](templates\u002Fapi-spec.md) for markdown output.\n\n## Principles Applied\n\n- **KISS**: Prefer flat resource URLs over deeply nested ones. `\u002Forders?user_id=123` is simpler than `\u002Fusers\u002F123\u002Forders\u002F456\u002Fitems\u002F789`.\n- **DRY**: Standardize error format, pagination, and envelope structure once. Don't reinvent per-endpoint.\n- **YAGNI**: Don't add filtering or sorting until a list endpoint actually needs them. Pagination is not in this category — any collection that can grow ships with the pagination contract from day one, because adding it later is a breaking change for every consumer.\n- **Functional Independence**: Each endpoint should do one thing. Avoid \"Swiss army knife\" endpoints that change behavior based on query parameters.\n","# API Design\n\nDesign APIs that are consistent, predictable, and easy to consume. A well-designed API is intuitive to use without reading documentation — but has great documentation anyway.\n\n## Scope Boundary\n\nThis skill designs the **contract** (endpoints, request\u002Fresponse shapes, error formats, pagination). For higher-level decisions (REST vs GraphQL, API gateway, authentication strategy), use the `architecture-design` skill first, then return here to design the specifics.\n\n## The Deliverable\n\nAn API design is not finished until it carries **all six** of these. A list of endpoints is a\nthird of an answer:\n\n1. **Resources and endpoints** — URLs, methods, and how relationships are expressed\n2. **Request\u002Fresponse schemas** — field names, types, and the response envelope\n3. **The error format** — one shape for every error, plus the status-code mapping\n4. **The pagination contract** — parameters and response shape for every list endpoint\n5. **Auth per endpoint** — scheme, who may call it, and which endpoints are public\n6. **The written spec** — markdown or OpenAPI, using [templates\u002Fapi-spec.md](templates\u002Fapi-spec.md)\n\nDeliver all six **in the same response**. Where a choice is genuinely open, pick the default\nthis skill recommends, say you picked it, and keep going — never return a design as a list of\nquestions.\n\n## Workflow\n\n### Step 1: Identify Resources and Operations\n\nStart from the domain model, not the UI:\n\n- **What are the resources?** (nouns: users, orders, products, comments)\n- **What operations exist?** (CRUD + domain-specific: archive, publish, approve)\n- **What are the relationships?** (user has orders, order contains items)\n- **Who consumes this API?** (web app, mobile app, third-party, internal service)\n\nMap each resource to its operations before choosing URLs or methods. Include the\noperations the requested ones need in order to be safe, even when the request doesn't\nname them: registration needs email verification, or anyone can claim any address. These\nare part of the design, not an open decision to default away.\n\n### Step 2: Design Endpoints\n\nApply RESTful naming conventions — see [references\u002Frest-conventions.md](references\u002Frest-conventions.md):\n\n```\nGET    \u002Fapi\u002Fv1\u002Fusers          → List users\nPOST   \u002Fapi\u002Fv1\u002Fusers          → Create user\nGET    \u002Fapi\u002Fv1\u002Fusers\u002F:id      → Get user\nPATCH  \u002Fapi\u002Fv1\u002Fusers\u002F:id      → Update user (partial)\nDELETE \u002Fapi\u002Fv1\u002Fusers\u002F:id      → Delete user\n\n# Nested resources (when the child only makes sense in parent context)\nGET    \u002Fapi\u002Fv1\u002Fusers\u002F:id\u002Forders    → List user's orders\nPOST   \u002Fapi\u002Fv1\u002Fusers\u002F:id\u002Forders    → Create order for user\n\n# Actions that don't map to CRUD\nPOST   \u002Fapi\u002Fv1\u002Forders\u002F:id\u002Fcancel   → Cancel an order\nPOST   \u002Fapi\u002Fv1\u002Fusers\u002F:id\u002Fverify    → Verify a user's email\n```\n\nPresent the endpoint list, then **design the schemas in the same response** — the list is a checkpoint, not a stopping point. Invite correction on the naming while delivering the rest.\n\n### Step 3: Define Request\u002FResponse Schemas\n\nFor each endpoint, define:\n\n**Request**: Query parameters (for filtering\u002Fpagination), path parameters, request body with field types and validation rules.\n\n**Response**: Status code, response body shape, included relationships.\n\nUse consistent patterns across all endpoints — see [references\u002Frest-conventions.md](references\u002Frest-conventions.md) for standard shapes.\n\nDecisions to make **now**, with a stated default rather than a question — flag them for\ncorrection and move on:\n- **ID format**: default ULID (sortable, no coordination); integer or UUID if the stack forces it\n- **Date format**: ISO 8601 always (`2025-03-05T14:30:00Z`) — not a decision\n- **Null vs absent**: default omit absent fields, return `null` only for a known-empty value\n- **Envelope or not**: default `{ data, pagination }` on collections, flat on single resources\n\n### Step 4: Standardize Error Responses\n\nEvery API error should use the same shape. Recommend this format:\n\n```json\n{\n  \"error\": {\n    \"code\": \"VALIDATION_ERROR\",\n    \"message\": \"Human-readable description for developers\",\n    \"details\": [\n      {\n        \"field\": \"email\",\n        \"message\": \"Must be a valid email address\"\n      }\n    ]\n  }\n}\n```\n\nMap HTTP status codes consistently:\n- `400` — Client sent invalid data (validation errors)\n- `401` — Authentication required or invalid\n- `403` — Authenticated but not authorized for this action\n- `404` — Resource not found\n- `409` — Conflict (duplicate, state violation)\n- `422` — Valid syntax but semantically invalid (business rule violation)\n- `429` — Rate limited\n- `500` — Server error (never expose internals)\n\nKeep `401` and `403` both in the mapping even when no endpoint returns `403` yet: clients\ncode against the distinction, and adding it later changes what they must handle.\n\n### Step 5: Design Pagination, Filtering, Sorting\n\nFor any list endpoint that could return many results:\n\n**Pagination** (recommend cursor-based for most cases):\n```\nGET \u002Fapi\u002Fv1\u002Forders?cursor=abc123&limit=20\n\nResponse:\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"next_cursor\": \"def456\",\n    \"has_more\": true\n  }\n}\n```\n\n**Filtering**: Use query parameters with clear naming:\n```\nGET \u002Fapi\u002Fv1\u002Forders?status=pending&created_after=2025-01-01\n```\n\n**Sorting**: Use a `sort` parameter with `-` prefix for descending:\n```\nGET \u002Fapi\u002Fv1\u002Forders?sort=-created_at,total\n```\n\nWhen the request also asks what the storage must do to serve these (indexes,\npartitioning, table size), say where the line falls, in one sentence of the answer:\nthis design fixes what the endpoint promises, and `data-modeling` decides whether the\nstore can keep that promise. Then name where the two meet: a cursor's ordering key is\nboth a contract choice and an index.\n\n### Step 6: Define Authentication and Authorization\n\nFor each endpoint, specify:\n- **Authentication**: Required? What scheme? (Bearer token, API key, session)\n- **Authorization**: What roles\u002Fpermissions can access this? Document per-endpoint.\n- **Public endpoints**: Explicitly mark which endpoints don't require auth.\n\n### Step 7: Produce the Specification\n\nOutput the API design as one of:\n- **Markdown document** — for internal APIs and quick designs\n- **OpenAPI 3.x spec** — for formal APIs, enables codegen and tooling\n\nUse the template at [templates\u002Fapi-spec.md](templates\u002Fapi-spec.md) for markdown output.\n\n## Principles Applied\n\n- **KISS**: Prefer flat resource URLs over deeply nested ones. `\u002Forders?user_id=123` is simpler than `\u002Fusers\u002F123\u002Forders\u002F456\u002Fitems\u002F789`.\n- **DRY**: Standardize error format, pagination, and envelope structure once. Don't reinvent per-endpoint.\n- **YAGNI**: Don't add filtering or sorting until a list endpoint actually needs them. Pagination is not in this category — any collection that can grow ships with the pagination contract from day one, because adding it later is a breaking change for every consumer.\n- **Functional Independence**: Each endpoint should do one thing. Avoid \"Swiss army knife\" endpoints that change behavior based on query parameters.\n",{"name":5,"description":7},"main","81c3e0d3463a63dceeb8e77e5700e232d273e854","skills\u002Fapi-design","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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add SWEStash\u002Fswe-workflow-skills --skill api-design",{"tool":57,"command":58},"bunx","bunx skills add SWEStash\u002Fswe-workflow-skills --skill api-design",{"tool":60,"command":61},"pnpm","pnpm dlx skills add SWEStash\u002Fswe-workflow-skills --skill api-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapi-design\u002FSKILL.md",true,[65,71,75],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fevals.json","REFERENCE","参考文档",3705,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapi-design\u002Fevals\u002Fevals.json",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Frest-conventions.md",4395,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapi-design\u002Freferences\u002Frest-conventions.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"templates\u002Fapi-spec.md",2646,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapi-design\u002Ftemplates\u002Fapi-spec.md",[80,106,132,155,178,204],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"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",[],[87,88,89,90,91,92,93,94,95,96,97,98,24,99,100,101,102,103,104,105],"writing","writing skills","testing","eval","write","edit","Budget","authoring","new skill","library","frontmatter","editing","use","Existing","Rules","write a skill","when","listing","progressive disclosure",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"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",[],[113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,24,131],"working agreement","project","definition of done","done","milestone","documentation","work","progress","how","contributing","close","run","sync","status","live","do","README","session","routines",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"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",[],[139,140,141,142,143,144,87,145,116,146,147,148,119,149,123,150,151,152,153,154],"verification","verification before completion","brief","ready","fix","claim","workflow","commit","text","route","message","merge","release","git","act","ship",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"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",[],[21,162,163,164,38,165,166,167,168,169,170,171,121,172,173,34,174,175,176,177],"ux","ui","ui ux design","states","loading","flows","engineer","interaction","layout","responsive design","screen","flow","mockup","responsive","form","page",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"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",[],[185,186,187,188,189,190,21,191,192,193,194,195,196,197,198,199,200,201,202,203],"modeling","threat modeling","threat","model","time","element","whiteboard","security analysis","analysis","code","review","threat model","audit","security-audit","secure","config","go","security","trust",{"skillNo":205,"name":206,"nameZh":6,"description":207,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":208,"categories":209,"keywords":210,"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",[],[21,211,212,213,214,215,89,216,217,145,194,218,219,91,220,221,128,222,28,24],"test suite","test","test suite design","coverage","unit","write tests","testing strategy","across","plan","add","infrastructure","test plan"]