[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFQ6MVMA0WC3DKVFFSB4JB":3,"skill-same:01M6EFQ6MVMA0WC3DKVFFSB4JB":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6EFQ6MVMA0WC3DKVFFSB4JB","openapi-spec",null,"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\u002FTerminalSkills\u002Fskills\u002Fopenapi-spec\u002FSKILL.md",[],[18,19,20],"spec","openapi","openapi spec","2026-11-10 10:12:30",false,"# OpenAPI Specification\n\n## Overview\n\nOpenAPI (formerly Swagger) is the standard for describing REST APIs. Write a YAML\u002FJSON spec once, then generate documentation, client SDKs, server stubs, mock servers, and tests automatically. Design-first development catches breaking changes before writing code.\n\n## Instructions\n\n### Step 1: Define API Spec\n\n```yaml\n# openapi.yaml — API specification\nopenapi: 3.1.0\ninfo:\n  title: Project Management API\n  version: 1.0.0\n  description: API for managing projects and tasks\n\nservers:\n  - url: https:\u002F\u002Fapi.example.com\u002Fv1\n    description: Production\n  - url: http:\u002F\u002Flocalhost:3000\u002Fv1\n    description: Local development\n\npaths:\n  \u002Fprojects:\n    get:\n      summary: List all projects\n      operationId: listProjects\n      tags: [Projects]\n      parameters:\n        - name: status\n          in: query\n          schema:\n            type: string\n            enum: [active, archived, all]\n            default: active\n        - name: limit\n          in: query\n          schema:\n            type: integer\n            minimum: 1\n            maximum: 100\n            default: 20\n        - name: cursor\n          in: query\n          schema:\n            type: string\n          description: Pagination cursor from previous response\n      responses:\n        '200':\n          description: List of projects\n          content:\n            application\u002Fjson:\n              schema:\n                type: object\n                properties:\n                  data:\n                    type: array\n                    items:\n                      $ref: '#\u002Fcomponents\u002Fschemas\u002FProject'\n                  nextCursor:\n                    type: string\n                    nullable: true\n\n    post:\n      summary: Create a project\n      operationId: createProject\n      tags: [Projects]\n      security:\n        - bearerAuth: []\n      requestBody:\n        required: true\n        content:\n          application\u002Fjson:\n            schema:\n              $ref: '#\u002Fcomponents\u002Fschemas\u002FCreateProjectInput'\n      responses:\n        '201':\n          description: Project created\n          content:\n            application\u002Fjson:\n              schema:\n                $ref: '#\u002Fcomponents\u002Fschemas\u002FProject'\n        '422':\n          $ref: '#\u002Fcomponents\u002Fresponses\u002FValidationError'\n\n  \u002Fprojects\u002F{projectId}:\n    get:\n      summary: Get project by ID\n      operationId: getProject\n      tags: [Projects]\n      parameters:\n        - name: projectId\n          in: path\n          required: true\n          schema:\n            type: string\n            format: uuid\n      responses:\n        '200':\n          description: Project details\n          content:\n            application\u002Fjson:\n              schema:\n                $ref: '#\u002Fcomponents\u002Fschemas\u002FProject'\n        '404':\n          $ref: '#\u002Fcomponents\u002Fresponses\u002FNotFound'\n\ncomponents:\n  schemas:\n    Project:\n      type: object\n      required: [id, name, status, createdAt]\n      properties:\n        id:\n          type: string\n          format: uuid\n        name:\n          type: string\n          example: \"Website Redesign\"\n        description:\n          type: string\n          nullable: true\n        status:\n          type: string\n          enum: [active, archived]\n        taskCount:\n          type: integer\n        createdAt:\n          type: string\n          format: date-time\n\n    CreateProjectInput:\n      type: object\n      required: [name]\n      properties:\n        name:\n          type: string\n          minLength: 1\n          maxLength: 100\n        description:\n          type: string\n          maxLength: 500\n\n  responses:\n    NotFound:\n      description: Resource not found\n      content:\n        application\u002Fjson:\n          schema:\n            type: object\n            properties:\n              error:\n                type: string\n                example: \"Project not found\"\n\n    ValidationError:\n      description: Validation error\n      content:\n        application\u002Fjson:\n          schema:\n            type: object\n            properties:\n              error:\n                type: string\n              details:\n                type: array\n                items:\n                  type: object\n                  properties:\n                    field:\n                      type: string\n                    message:\n                      type: string\n\n  securitySchemes:\n    bearerAuth:\n      type: http\n      scheme: bearer\n      bearerFormat: JWT\n```\n\n### Step 2: Generate TypeScript Client\n\n```bash\nnpx openapi-typescript openapi.yaml -o src\u002Fapi\u002Fschema.ts\n```\n\n```typescript\n\u002F\u002F Generated types are used with fetch or axios\nimport type { paths } from '.\u002Fschema'\n\ntype ListProjectsResponse = paths['\u002Fprojects']['get']['responses']['200']['content']['application\u002Fjson']\ntype CreateProjectInput = paths['\u002Fprojects']['post']['requestBody']['content']['application\u002Fjson']\n```\n\n### Step 3: Validate and Lint\n\n```bash\nnpx @redocly\u002Fcli lint openapi.yaml\nnpx @redocly\u002Fcli preview-docs openapi.yaml  # live preview\n```\n\n## Guidelines\n\n- Design-first: write the spec before implementing. It's cheaper to change YAML than code.\n- Use `$ref` extensively — reusable schemas prevent duplication and inconsistency.\n- Add `operationId` to every endpoint — it's used for SDK method names.\n- Use Redocly or Stoplight for visual spec editing and documentation hosting.\n- Version your API in the URL path (`\u002Fv1\u002F`) for breaking changes; use spec `version` for minor updates.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fopenapi-spec",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":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill openapi-spec",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill openapi-spec",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill openapi-spec","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fopenapi-spec\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]