[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EB4GZ7FA7E1KCCGDY5G1D0":3,"skill-same:01M6EB4GZ7FA7E1KCCGDY5G1D0":134},{"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":37,"publishedAt":58,"linkOnly":59,"markdownContent":60,"markdownBody":61,"frontMatter":62,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":68,"ownerHtmlUrl":69,"ownerBlogUrl":6,"ownerDescription":70,"updatedAt":71,"install":72,"resources":85},"01M6EB4GZ7FA7E1KCCGDY5G1D0","common-api-design",null,"REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards applicable to any framework. (triggers: **\u002F*.controller.ts, **\u002F*.router.ts, **\u002F*.routes.ts, **\u002Froutes\u002F**, **\u002Fcontrollers\u002F**, **\u002Fhandlers\u002F**, rest api, endpoint, http method, status code, versioning, pagination, openapi, api design, api contract)","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fcommon-api-design\u002FSKILL.md",[18,23,26,31,34],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":27,"categoryName":28,"taxonomyType":29,"taxonomyTypeDesc":30},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",{"categoryNo":32,"categoryName":33,"taxonomyType":29,"taxonomyTypeDesc":30},"01JBSEEDCAT000000000000032","设计师",{"categoryNo":35,"categoryName":36,"taxonomyType":29,"taxonomyTypeDesc":30},"01JBSEEDCAT000000000000037","律师与法务",[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57],"common","common api design","design","api","api design","api conventions","REST","controller","openapi","code","versioning","router","standards","pagination","api contract","rest api","contract","triggers","codes","http","2026-11-10 10:12:30",false,"---\nname: common-api-design\ndescription: \"REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards applicable to any framework. (triggers: **\u002F*.controller.ts, **\u002F*.router.ts, **\u002F*.routes.ts, **\u002Froutes\u002F**, **\u002Fcontrollers\u002F**, **\u002Fhandlers\u002F**, rest api, endpoint, http method, status code, versioning, pagination, openapi, api design, api contract)\"\n---\n\n# Common API Design Standards\n\n## **Priority: P1 (OPERATIONAL)**\n\nConsistent, predictable API contracts reduce integration friction and prevent breaking changes from reaching consumers.\n\n## ? HTTP Verb Semantics\n\n- `GET` read-only, idempotent — never mutates state.\n- `POST` create or trigger; `PUT` full replace; `PATCH` partial update; `DELETE` remove.\n- Non-CRUD actions as sub-resources: `POST \u002Forders\u002F:id\u002Fcancel`.\n\n## ? Status Code Correctness\n\n- `200` success; `201` created (add `Location` header); `204` no body.\n- `400` validation (with `details[]`); `401` unauthenticated; `403` unauthorized; `404` not found.\n- `409` conflict; `422` business rule violation; `429` rate limit (add `Retry-After`); `500` unhandled.\n\n## ? URL Design Rules\n\n- **Lowercase, kebab-case**: `\u002Fuser-profiles`, not `\u002FUserProfiles` or `\u002Fuser_profiles`.\n- **Plural nouns**: `\u002Forders`, `\u002Fproducts`. Not `\u002Forder`, `\u002FgetProducts`.\n- **No verbs in paths** (except action sub-resources): `\u002Forders\u002F:id\u002Fcancel` ✅, `\u002FcancelOrder` ❌.\n- **Hierarchy**: Use nesting only up to 2 levels: `\u002Fusers\u002F:id\u002Forders` ✅, `\u002Fusers\u002F:id\u002Forders\u002F:orderId\u002Fitems\u002F:itemId` ❌.\n\n## ? API Versioning\n\n- **Strategy**: URL path versioning is the default: `\u002Fv1\u002Fusers`, `\u002Fv2\u002Fusers`.\n- **Header versioning** (`Api-Version: 2`) is acceptable for internal APIs.\n- Never mix versions in the same controller — each version gets its own route module.\n- Support previous major version for minimum 6 months after a new one is released.\n- Deprecation: Add `Deprecation: true` + `Sunset: \u003Cdate>` headers when a version will be retired.\n\n## ? Pagination\n\n- Prefer cursor-based (`cursor` + `limit`) for large\u002Flive datasets; offset only for small static ones.\n- Default `limit: 20`, max `100`. Reject requests exceeding max.\n- Response envelope: `{ data: [], pagination: { nextCursor, hasNextPage } }`.\n\n## ? OpenAPI Contract\n\n- Every API MUST have an OpenAPI 3.1 spec.\n- Generate spec from code annotations (not hand-written YAML) to prevent drift.\n- Include: request\u002Fresponse schemas, error shapes, auth requirements, examples.\n- Review OpenAPI spec as part of PR process — breaking changes require version bump.\n\n## ? API Security Baseline\n\n- Require auth on all routes by default; use `@Public()` or equivalent opt-out.\n- Validate and sanitize all query params, path params, and request bodies.\n- Set `Content-Type: application\u002Fjson` explicitly. Reject unexpected content types.\n- Include `X-Content-Type-Options: nosniff` and `X-Frame-Options: DENY` headers.\n\n## Anti-Patterns\n\n- **No `GET` mutations**: Search engines and CDNs cache GET — mutating state is catastrophic.\n- **No 200 for errors**: `{ \"success\": false, \"data\": null }` with HTTP 200 breaks monitoring.\n- **No deeply nested URLs**: Hard to document, version, and cache.\n- **No breaking changes without versioning**: Removing\u002Frenaming fields in-place breaks consumers silently.\n\n","# Common API Design Standards\n\n## **Priority: P1 (OPERATIONAL)**\n\nConsistent, predictable API contracts reduce integration friction and prevent breaking changes from reaching consumers.\n\n## ? HTTP Verb Semantics\n\n- `GET` read-only, idempotent — never mutates state.\n- `POST` create or trigger; `PUT` full replace; `PATCH` partial update; `DELETE` remove.\n- Non-CRUD actions as sub-resources: `POST \u002Forders\u002F:id\u002Fcancel`.\n\n## ? Status Code Correctness\n\n- `200` success; `201` created (add `Location` header); `204` no body.\n- `400` validation (with `details[]`); `401` unauthenticated; `403` unauthorized; `404` not found.\n- `409` conflict; `422` business rule violation; `429` rate limit (add `Retry-After`); `500` unhandled.\n\n## ? URL Design Rules\n\n- **Lowercase, kebab-case**: `\u002Fuser-profiles`, not `\u002FUserProfiles` or `\u002Fuser_profiles`.\n- **Plural nouns**: `\u002Forders`, `\u002Fproducts`. Not `\u002Forder`, `\u002FgetProducts`.\n- **No verbs in paths** (except action sub-resources): `\u002Forders\u002F:id\u002Fcancel` ✅, `\u002FcancelOrder` ❌.\n- **Hierarchy**: Use nesting only up to 2 levels: `\u002Fusers\u002F:id\u002Forders` ✅, `\u002Fusers\u002F:id\u002Forders\u002F:orderId\u002Fitems\u002F:itemId` ❌.\n\n## ? API Versioning\n\n- **Strategy**: URL path versioning is the default: `\u002Fv1\u002Fusers`, `\u002Fv2\u002Fusers`.\n- **Header versioning** (`Api-Version: 2`) is acceptable for internal APIs.\n- Never mix versions in the same controller — each version gets its own route module.\n- Support previous major version for minimum 6 months after a new one is released.\n- Deprecation: Add `Deprecation: true` + `Sunset: \u003Cdate>` headers when a version will be retired.\n\n## ? Pagination\n\n- Prefer cursor-based (`cursor` + `limit`) for large\u002Flive datasets; offset only for small static ones.\n- Default `limit: 20`, max `100`. Reject requests exceeding max.\n- Response envelope: `{ data: [], pagination: { nextCursor, hasNextPage } }`.\n\n## ? OpenAPI Contract\n\n- Every API MUST have an OpenAPI 3.1 spec.\n- Generate spec from code annotations (not hand-written YAML) to prevent drift.\n- Include: request\u002Fresponse schemas, error shapes, auth requirements, examples.\n- Review OpenAPI spec as part of PR process — breaking changes require version bump.\n\n## ? API Security Baseline\n\n- Require auth on all routes by default; use `@Public()` or equivalent opt-out.\n- Validate and sanitize all query params, path params, and request bodies.\n- Set `Content-Type: application\u002Fjson` explicitly. Reject unexpected content types.\n- Include `X-Content-Type-Options: nosniff` and `X-Frame-Options: DENY` headers.\n\n## Anti-Patterns\n\n- **No `GET` mutations**: Search engines and CDNs cache GET — mutating state is catastrophic.\n- **No 200 for errors**: `{ \"success\": false, \"data\": null }` with HTTP 200 breaks monitoring.\n- **No deeply nested URLs**: Hard to document, version, and cache.\n- **No breaking changes without versioning**: Removing\u002Frenaming fields in-place breaks consumers silently.\n\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fcommon-api-design",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill common-api-design",{"tool":78,"command":79},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill common-api-design",{"tool":81,"command":82},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill common-api-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fcommon-api-design\u002FSKILL.md",true,[86,92,98,102,106,110,114,118,122,126,130],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"brain-methods.csv","ASSET","资产文件",16265,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fbrain-methods.csv",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"steps\u002Fstep-01-session-setup.md","REFERENCE","参考文档",7489,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-01-session-setup.md",{"path":99,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":100,"sourceHtmlUrl":101},"steps\u002Fstep-01b-continue.md",3942,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-01b-continue.md",{"path":103,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":104,"sourceHtmlUrl":105},"steps\u002Fstep-02a-user-selected.md",7581,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-02a-user-selected.md",{"path":107,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":108,"sourceHtmlUrl":109},"steps\u002Fstep-02b-ai-recommended.md",7980,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-02b-ai-recommended.md",{"path":111,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":112,"sourceHtmlUrl":113},"steps\u002Fstep-02c-random-selection.md",7735,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-02c-random-selection.md",{"path":115,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":116,"sourceHtmlUrl":117},"steps\u002Fstep-02d-progressive-flow.md",9811,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-02d-progressive-flow.md",{"path":119,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":120,"sourceHtmlUrl":121},"steps\u002Fstep-03-technique-execution.md",16684,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-03-technique-execution.md",{"path":123,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":124,"sourceHtmlUrl":125},"steps\u002Fstep-04-idea-organization.md",10801,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fsteps\u002Fstep-04-idea-organization.md",{"path":127,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":128,"sourceHtmlUrl":129},"template.md",245,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Ftemplate.md",{"path":131,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":132,"sourceHtmlUrl":133},"workflow.md",2748,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.iflow\u002Fskills\u002Fbmad-brainstorming\u002Fworkflow.md",[135,147,157,166,172,179],{"skillNo":136,"name":137,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":143,"publishedAt":58},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[140],{"categoryNo":141,"categoryName":142,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[144,145,146],"model","model hierarchy","model hierarchy skill",{"skillNo":148,"name":149,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":153,"publishedAt":58},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[152],{"categoryNo":141,"categoryName":142,"taxonomyType":21,"taxonomyTypeDesc":22},[154,155,156],"MCP","zoom","zoom mcp",{"skillNo":158,"name":159,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":58},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[163,164,165,155],"sdk","zoom apps sdk","apps",{"skillNo":167,"name":168,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":58},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[168],{"skillNo":173,"name":174,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":178,"publishedAt":58},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[177],{"categoryNo":141,"categoryName":142,"taxonomyType":21,"taxonomyTypeDesc":22},[174],{"skillNo":180,"name":181,"nameZh":6,"description":6,"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":58},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[181]]