[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AE6DYYC68Z889WVJBJ2VVM":3,"skill-same:01M7AE6DYYC68Z889WVJBJ2VVM":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7AE6DYYC68Z889WVJBJ2VVM","api-and-interface-design",null,"Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.","HyskoaMorroh\u002Fkirara-ai","HyskoaMorroh","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F214526004?v=4","01M7AE5WPKQ7K7ZJD8QZPJ5RAW","01M7AE5WQ7CP81164FZXSMAZFJ",0,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002FHyskoaMorroh\u002Fkirara-ai\u002Fblob\u002Fmain\u002Fkirara_ai\u002Fplugin_manager\u002Fbundled\u002Fskills\u002Fapi-and-interface-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: api-and-interface-design\ndescription: Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.\n---\n\n# API and Interface Design\n\n## Overview\n\nDesign stable, well-documented interfaces that are hard to misuse. Good interfaces make the right thing easy and the wrong thing hard. This applies to REST APIs, GraphQL schemas, module boundaries, component props, and any surface where one piece of code talks to another.\n\n## When to Use\n\n- Designing new API endpoints\n- Defining module boundaries or contracts between teams\n- Creating component prop interfaces\n- Establishing database schema that informs API shape\n- Changing existing public interfaces\n\n## Core Principles\n\n### Hyrum's Law\n\n> With a sufficient number of users of an API, all observable behaviors of your system will be depended on by somebody, regardless of what you promise in the contract.\n\nThis means: every public behavior — including undocumented quirks, error message text, timing, and ordering — becomes a de facto contract once users depend on it. Design implications:\n\n- **Be intentional about what you expose.** Every observable behavior is a potential commitment.\n- **Don't leak implementation details.** If users can observe it, they will depend on it.\n- **Plan for deprecation at design time.** See `deprecation-and-migration` for how to safely remove things users depend on.\n- **Tests are not enough.** Even with perfect contract tests, Hyrum's Law means \"safe\" changes can break real users who depend on undocumented behavior.\n\n### The One-Version Rule\n\nAvoid forcing consumers to choose between multiple versions of the same dependency or API. Diamond dependency problems arise when different consumers need different versions of the same thing. Design for a world where only one version exists at a time — extend rather than fork.\n\n### 1. Contract First\n\nDefine the interface before implementing it. The contract is the spec — implementation follows.\n\n```typescript\n\u002F\u002F Define the contract first\ninterface TaskAPI {\n  \u002F\u002F Creates a task and returns the created task with server-generated fields\n  createTask(input: CreateTaskInput): Promise\u003CTask>;\n\n  \u002F\u002F Returns paginated tasks matching filters\n  listTasks(params: ListTasksParams): Promise\u003CPaginatedResult\u003CTask>>;\n\n  \u002F\u002F Returns a single task or throws NotFoundError\n  getTask(id: string): Promise\u003CTask>;\n\n  \u002F\u002F Partial update — only provided fields change\n  updateTask(id: string, input: UpdateTaskInput): Promise\u003CTask>;\n\n  \u002F\u002F Idempotent delete — succeeds even if already deleted\n  deleteTask(id: string): Promise\u003Cvoid>;\n}\n```\n\n### 2. Consistent Error Semantics\n\nPick one error strategy and use it everywhere:\n\n```typescript\n\u002F\u002F REST: HTTP status codes + structured error body\n\u002F\u002F Every error response follows the same shape\ninterface APIError {\n  error: {\n    code: string;        \u002F\u002F Machine-readable: \"VALIDATION_ERROR\"\n    message: string;     \u002F\u002F Human-readable: \"Email is required\"\n    details?: unknown;   \u002F\u002F Additional context when helpful\n  };\n}\n\n\u002F\u002F Status code mapping\n\u002F\u002F 400 → Client sent invalid data\n\u002F\u002F 401 → Not authenticated\n\u002F\u002F 403 → Authenticated but not authorized\n\u002F\u002F 404 → Resource not found\n\u002F\u002F 409 → Conflict (duplicate, version mismatch)\n\u002F\u002F 422 → Validation failed (semantically invalid)\n\u002F\u002F 500 → Server error (never expose internal details)\n```\n\n**Don't mix patterns.** If some endpoints throw, others return null, and others return `{ error }` — the consumer can't predict behavior.\n\n### 3. Validate at Boundaries\n\nTrust internal code. Validate at system edges where external input enters:\n\n```typescript\n\u002F\u002F Validate at the API boundary\napp.post('\u002Fapi\u002Ftasks', async (req, res) => {\n  const result = CreateTaskSchema.safeParse(req.body);\n  if (!result.success) {\n    return res.status(422).json({\n      error: {\n        code: 'VALIDATION_ERROR',\n        message: 'Invalid task data',\n        details: result.error.flatten(),\n      },\n    });\n  }\n\n  \u002F\u002F After validation, internal code trusts the types\n  const task = await taskService.create(result.data);\n  return res.status(201).json(task);\n});\n```\n\nWhere validation belongs:\n- API route handlers (user input)\n- Form submission handlers (user input)\n- External service response parsing (third-party data -- **always treat as untrusted**)\n- Environment variable loading (configuration)\n\n> **Third-party API responses are untrusted data.** Validate their shape and content before using them in any logic, rendering, or decision-making. A compromised or misbehaving external service can return unexpected types, malicious content, or instruction-like text.\n\nWhere validation does NOT belong:\n- Between internal functions that share type contracts\n- In utility functions called by already-validated code\n- On data that just came from your own database\n\n### 4. Prefer Addition Over Modification\n\nExtend interfaces without breaking existing consumers:\n\n```typescript\n\u002F\u002F Good: Add optional fields\ninterface CreateTaskInput {\n  title: string;\n  description?: string;\n  priority?: 'low' | 'medium' | 'high';  \u002F\u002F Added later, optional\n  labels?: string[];                       \u002F\u002F Added later, optional\n}\n\n\u002F\u002F Bad: Change existing field types or remove fields\ninterface CreateTaskInput {\n  title: string;\n  \u002F\u002F description: string;  \u002F\u002F Removed — breaks existing consumers\n  priority: number;         \u002F\u002F Changed from string — breaks existing consumers\n}\n```\n\n### 5. Predictable Naming\n\n| Pattern | Convention | Example |\n|---------|-----------|---------|\n| REST endpoints | Plural nouns, no verbs | `GET \u002Fapi\u002Ftasks`, `POST \u002Fapi\u002Ftasks` |\n| Query params | camelCase | `?sortBy=createdAt&pageSize=20` |\n| Response fields | camelCase | `{ createdAt, updatedAt, taskId }` |\n| Boolean fields | is\u002Fhas\u002Fcan prefix | `isComplete`, `hasAttachments` |\n| Enum values | UPPER_SNAKE | `\"IN_PROGRESS\"`, `\"COMPLETED\"` |\n\n## REST API Patterns\n\n### Resource Design\n\n```\nGET    \u002Fapi\u002Ftasks              → List tasks (with query params for filtering)\nPOST   \u002Fapi\u002Ftasks              → Create a task\nGET    \u002Fapi\u002Ftasks\u002F:id          → Get a single task\nPATCH  \u002Fapi\u002Ftasks\u002F:id          → Update a task (partial)\nDELETE \u002Fapi\u002Ftasks\u002F:id          → Delete a task\n\nGET    \u002Fapi\u002Ftasks\u002F:id\u002Fcomments → List comments for a task (sub-resource)\nPOST   \u002Fapi\u002Ftasks\u002F:id\u002Fcomments → Add a comment to a task\n```\n\n### Pagination\n\nPaginate list endpoints:\n\n```typescript\n\u002F\u002F Request\nGET \u002Fapi\u002Ftasks?page=1&pageSize=20&sortBy=createdAt&sortOrder=desc\n\n\u002F\u002F Response\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"page\": 1,\n    \"pageSize\": 20,\n    \"totalItems\": 142,\n    \"totalPages\": 8\n  }\n}\n```\n\n### Filtering\n\nUse query parameters for filters:\n\n```\nGET \u002Fapi\u002Ftasks?status=in_progress&assignee=user123&createdAfter=2025-01-01\n```\n\n### Partial Updates (PATCH)\n\nAccept partial objects — only update what's provided:\n\n```typescript\n\u002F\u002F Only title changes, everything else preserved\nPATCH \u002Fapi\u002Ftasks\u002F123\n{ \"title\": \"Updated title\" }\n```\n\n## TypeScript Interface Patterns\n\n### Use Discriminated Unions for Variants\n\n```typescript\n\u002F\u002F Good: Each variant is explicit\ntype TaskStatus =\n  | { type: 'pending' }\n  | { type: 'in_progress'; assignee: string; startedAt: Date }\n  | { type: 'completed'; completedAt: Date; completedBy: string }\n  | { type: 'cancelled'; reason: string; cancelledAt: Date };\n\n\u002F\u002F Consumer gets type narrowing\nfunction getStatusLabel(status: TaskStatus): string {\n  switch (status.type) {\n    case 'pending': return 'Pending';\n    case 'in_progress': return `In progress (${status.assignee})`;\n    case 'completed': return `Done on ${status.completedAt}`;\n    case 'cancelled': return `Cancelled: ${status.reason}`;\n  }\n}\n```\n\n### Input\u002FOutput Separation\n\n```typescript\n\u002F\u002F Input: what the caller provides\ninterface CreateTaskInput {\n  title: string;\n  description?: string;\n}\n\n\u002F\u002F Output: what the system returns (includes server-generated fields)\ninterface Task {\n  id: string;\n  title: string;\n  description: string | null;\n  createdAt: Date;\n  updatedAt: Date;\n  createdBy: string;\n}\n```\n\n### Use Branded Types for IDs\n\n```typescript\ntype TaskId = string & { readonly __brand: 'TaskId' };\ntype UserId = string & { readonly __brand: 'UserId' };\n\n\u002F\u002F Prevents accidentally passing a UserId where a TaskId is expected\nfunction getTask(id: TaskId): Promise\u003CTask> { ... }\n```\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"We'll document the API later\" | The types ARE the documentation. Define them first. |\n| \"We don't need pagination for now\" | You will the moment someone has 100+ items. Add it from the start. |\n| \"PATCH is complicated, let's just use PUT\" | PUT requires the full object every time. PATCH is what clients actually want. |\n| \"We'll version the API when we need to\" | Breaking changes without versioning break consumers. Design for extension from the start. |\n| \"Nobody uses that undocumented behavior\" | Hyrum's Law: if it's observable, somebody depends on it. Treat every public behavior as a commitment. |\n| \"We can just maintain two versions\" | Multiple versions multiply maintenance cost and create diamond dependency problems. Prefer the One-Version Rule. |\n| \"Internal APIs don't need contracts\" | Internal consumers are still consumers. Contracts prevent coupling and enable parallel work. |\n\n## Red Flags\n\n- Endpoints that return different shapes depending on conditions\n- Inconsistent error formats across endpoints\n- Validation scattered throughout internal code instead of at boundaries\n- Breaking changes to existing fields (type changes, removals)\n- List endpoints without pagination\n- Verbs in REST URLs (`\u002Fapi\u002FcreateTask`, `\u002Fapi\u002FgetUsers`)\n- Third-party API responses used without validation or sanitization\n\n## Verification\n\nAfter designing an API:\n\n- [ ] Every endpoint has typed input and output schemas\n- [ ] Error responses follow a single consistent format\n- [ ] Validation happens at system boundaries only\n- [ ] List endpoints support pagination\n- [ ] New fields are additive and optional (backward compatible)\n- [ ] Naming follows consistent conventions across all endpoints\n- [ ] API documentation or types are committed alongside the implementation\n","# API and Interface Design\n\n## Overview\n\nDesign stable, well-documented interfaces that are hard to misuse. Good interfaces make the right thing easy and the wrong thing hard. This applies to REST APIs, GraphQL schemas, module boundaries, component props, and any surface where one piece of code talks to another.\n\n## When to Use\n\n- Designing new API endpoints\n- Defining module boundaries or contracts between teams\n- Creating component prop interfaces\n- Establishing database schema that informs API shape\n- Changing existing public interfaces\n\n## Core Principles\n\n### Hyrum's Law\n\n> With a sufficient number of users of an API, all observable behaviors of your system will be depended on by somebody, regardless of what you promise in the contract.\n\nThis means: every public behavior — including undocumented quirks, error message text, timing, and ordering — becomes a de facto contract once users depend on it. Design implications:\n\n- **Be intentional about what you expose.** Every observable behavior is a potential commitment.\n- **Don't leak implementation details.** If users can observe it, they will depend on it.\n- **Plan for deprecation at design time.** See `deprecation-and-migration` for how to safely remove things users depend on.\n- **Tests are not enough.** Even with perfect contract tests, Hyrum's Law means \"safe\" changes can break real users who depend on undocumented behavior.\n\n### The One-Version Rule\n\nAvoid forcing consumers to choose between multiple versions of the same dependency or API. Diamond dependency problems arise when different consumers need different versions of the same thing. Design for a world where only one version exists at a time — extend rather than fork.\n\n### 1. Contract First\n\nDefine the interface before implementing it. The contract is the spec — implementation follows.\n\n```typescript\n\u002F\u002F Define the contract first\ninterface TaskAPI {\n  \u002F\u002F Creates a task and returns the created task with server-generated fields\n  createTask(input: CreateTaskInput): Promise\u003CTask>;\n\n  \u002F\u002F Returns paginated tasks matching filters\n  listTasks(params: ListTasksParams): Promise\u003CPaginatedResult\u003CTask>>;\n\n  \u002F\u002F Returns a single task or throws NotFoundError\n  getTask(id: string): Promise\u003CTask>;\n\n  \u002F\u002F Partial update — only provided fields change\n  updateTask(id: string, input: UpdateTaskInput): Promise\u003CTask>;\n\n  \u002F\u002F Idempotent delete — succeeds even if already deleted\n  deleteTask(id: string): Promise\u003Cvoid>;\n}\n```\n\n### 2. Consistent Error Semantics\n\nPick one error strategy and use it everywhere:\n\n```typescript\n\u002F\u002F REST: HTTP status codes + structured error body\n\u002F\u002F Every error response follows the same shape\ninterface APIError {\n  error: {\n    code: string;        \u002F\u002F Machine-readable: \"VALIDATION_ERROR\"\n    message: string;     \u002F\u002F Human-readable: \"Email is required\"\n    details?: unknown;   \u002F\u002F Additional context when helpful\n  };\n}\n\n\u002F\u002F Status code mapping\n\u002F\u002F 400 → Client sent invalid data\n\u002F\u002F 401 → Not authenticated\n\u002F\u002F 403 → Authenticated but not authorized\n\u002F\u002F 404 → Resource not found\n\u002F\u002F 409 → Conflict (duplicate, version mismatch)\n\u002F\u002F 422 → Validation failed (semantically invalid)\n\u002F\u002F 500 → Server error (never expose internal details)\n```\n\n**Don't mix patterns.** If some endpoints throw, others return null, and others return `{ error }` — the consumer can't predict behavior.\n\n### 3. Validate at Boundaries\n\nTrust internal code. Validate at system edges where external input enters:\n\n```typescript\n\u002F\u002F Validate at the API boundary\napp.post('\u002Fapi\u002Ftasks', async (req, res) => {\n  const result = CreateTaskSchema.safeParse(req.body);\n  if (!result.success) {\n    return res.status(422).json({\n      error: {\n        code: 'VALIDATION_ERROR',\n        message: 'Invalid task data',\n        details: result.error.flatten(),\n      },\n    });\n  }\n\n  \u002F\u002F After validation, internal code trusts the types\n  const task = await taskService.create(result.data);\n  return res.status(201).json(task);\n});\n```\n\nWhere validation belongs:\n- API route handlers (user input)\n- Form submission handlers (user input)\n- External service response parsing (third-party data -- **always treat as untrusted**)\n- Environment variable loading (configuration)\n\n> **Third-party API responses are untrusted data.** Validate their shape and content before using them in any logic, rendering, or decision-making. A compromised or misbehaving external service can return unexpected types, malicious content, or instruction-like text.\n\nWhere validation does NOT belong:\n- Between internal functions that share type contracts\n- In utility functions called by already-validated code\n- On data that just came from your own database\n\n### 4. Prefer Addition Over Modification\n\nExtend interfaces without breaking existing consumers:\n\n```typescript\n\u002F\u002F Good: Add optional fields\ninterface CreateTaskInput {\n  title: string;\n  description?: string;\n  priority?: 'low' | 'medium' | 'high';  \u002F\u002F Added later, optional\n  labels?: string[];                       \u002F\u002F Added later, optional\n}\n\n\u002F\u002F Bad: Change existing field types or remove fields\ninterface CreateTaskInput {\n  title: string;\n  \u002F\u002F description: string;  \u002F\u002F Removed — breaks existing consumers\n  priority: number;         \u002F\u002F Changed from string — breaks existing consumers\n}\n```\n\n### 5. Predictable Naming\n\n| Pattern | Convention | Example |\n|---------|-----------|---------|\n| REST endpoints | Plural nouns, no verbs | `GET \u002Fapi\u002Ftasks`, `POST \u002Fapi\u002Ftasks` |\n| Query params | camelCase | `?sortBy=createdAt&pageSize=20` |\n| Response fields | camelCase | `{ createdAt, updatedAt, taskId }` |\n| Boolean fields | is\u002Fhas\u002Fcan prefix | `isComplete`, `hasAttachments` |\n| Enum values | UPPER_SNAKE | `\"IN_PROGRESS\"`, `\"COMPLETED\"` |\n\n## REST API Patterns\n\n### Resource Design\n\n```\nGET    \u002Fapi\u002Ftasks              → List tasks (with query params for filtering)\nPOST   \u002Fapi\u002Ftasks              → Create a task\nGET    \u002Fapi\u002Ftasks\u002F:id          → Get a single task\nPATCH  \u002Fapi\u002Ftasks\u002F:id          → Update a task (partial)\nDELETE \u002Fapi\u002Ftasks\u002F:id          → Delete a task\n\nGET    \u002Fapi\u002Ftasks\u002F:id\u002Fcomments → List comments for a task (sub-resource)\nPOST   \u002Fapi\u002Ftasks\u002F:id\u002Fcomments → Add a comment to a task\n```\n\n### Pagination\n\nPaginate list endpoints:\n\n```typescript\n\u002F\u002F Request\nGET \u002Fapi\u002Ftasks?page=1&pageSize=20&sortBy=createdAt&sortOrder=desc\n\n\u002F\u002F Response\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"page\": 1,\n    \"pageSize\": 20,\n    \"totalItems\": 142,\n    \"totalPages\": 8\n  }\n}\n```\n\n### Filtering\n\nUse query parameters for filters:\n\n```\nGET \u002Fapi\u002Ftasks?status=in_progress&assignee=user123&createdAfter=2025-01-01\n```\n\n### Partial Updates (PATCH)\n\nAccept partial objects — only update what's provided:\n\n```typescript\n\u002F\u002F Only title changes, everything else preserved\nPATCH \u002Fapi\u002Ftasks\u002F123\n{ \"title\": \"Updated title\" }\n```\n\n## TypeScript Interface Patterns\n\n### Use Discriminated Unions for Variants\n\n```typescript\n\u002F\u002F Good: Each variant is explicit\ntype TaskStatus =\n  | { type: 'pending' }\n  | { type: 'in_progress'; assignee: string; startedAt: Date }\n  | { type: 'completed'; completedAt: Date; completedBy: string }\n  | { type: 'cancelled'; reason: string; cancelledAt: Date };\n\n\u002F\u002F Consumer gets type narrowing\nfunction getStatusLabel(status: TaskStatus): string {\n  switch (status.type) {\n    case 'pending': return 'Pending';\n    case 'in_progress': return `In progress (${status.assignee})`;\n    case 'completed': return `Done on ${status.completedAt}`;\n    case 'cancelled': return `Cancelled: ${status.reason}`;\n  }\n}\n```\n\n### Input\u002FOutput Separation\n\n```typescript\n\u002F\u002F Input: what the caller provides\ninterface CreateTaskInput {\n  title: string;\n  description?: string;\n}\n\n\u002F\u002F Output: what the system returns (includes server-generated fields)\ninterface Task {\n  id: string;\n  title: string;\n  description: string | null;\n  createdAt: Date;\n  updatedAt: Date;\n  createdBy: string;\n}\n```\n\n### Use Branded Types for IDs\n\n```typescript\ntype TaskId = string & { readonly __brand: 'TaskId' };\ntype UserId = string & { readonly __brand: 'UserId' };\n\n\u002F\u002F Prevents accidentally passing a UserId where a TaskId is expected\nfunction getTask(id: TaskId): Promise\u003CTask> { ... }\n```\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"We'll document the API later\" | The types ARE the documentation. Define them first. |\n| \"We don't need pagination for now\" | You will the moment someone has 100+ items. Add it from the start. |\n| \"PATCH is complicated, let's just use PUT\" | PUT requires the full object every time. PATCH is what clients actually want. |\n| \"We'll version the API when we need to\" | Breaking changes without versioning break consumers. Design for extension from the start. |\n| \"Nobody uses that undocumented behavior\" | Hyrum's Law: if it's observable, somebody depends on it. Treat every public behavior as a commitment. |\n| \"We can just maintain two versions\" | Multiple versions multiply maintenance cost and create diamond dependency problems. Prefer the One-Version Rule. |\n| \"Internal APIs don't need contracts\" | Internal consumers are still consumers. Contracts prevent coupling and enable parallel work. |\n\n## Red Flags\n\n- Endpoints that return different shapes depending on conditions\n- Inconsistent error formats across endpoints\n- Validation scattered throughout internal code instead of at boundaries\n- Breaking changes to existing fields (type changes, removals)\n- List endpoints without pagination\n- Verbs in REST URLs (`\u002Fapi\u002FcreateTask`, `\u002Fapi\u002FgetUsers`)\n- Third-party API responses used without validation or sanitization\n\n## Verification\n\nAfter designing an API:\n\n- [ ] Every endpoint has typed input and output schemas\n- [ ] Error responses follow a single consistent format\n- [ ] Validation happens at system boundaries only\n- [ ] List endpoints support pagination\n- [ ] New fields are additive and optional (backward compatible)\n- [ ] Naming follows consistent conventions across all endpoints\n- [ ] API documentation or types are committed alongside the implementation\n",{"name":5,"description":7},"main","5fff0a9c53845d2db11b4e5ffe6e08fd5f18b0f6","kirara_ai\u002Fplugin_manager\u002Fbundled\u002Fskills\u002Fapi-and-interface-design",1,"https:\u002F\u002Fgithub.com\u002FHyskoaMorroh\u002Fkirara-ai","https:\u002F\u002Fkirara-docs.app.lss233.com\u002F","https:\u002F\u002Fgithub.com\u002FHyskoaMorroh","2026-11-04 21:35:01",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add HyskoaMorroh\u002Fkirara-ai --skill api-and-interface-design",{"tool":37,"command":38},"bunx","bunx skills add HyskoaMorroh\u002Fkirara-ai --skill api-and-interface-design",{"tool":40,"command":41},"pnpm","pnpm dlx skills add HyskoaMorroh\u002Fkirara-ai --skill api-and-interface-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHyskoaMorroh\u002Fkirara-ai\u002Fblob\u002Fmain\u002Fkirara_ai\u002Fplugin_manager\u002Fbundled\u002Fskills\u002Fapi-and-interface-design\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7AEB5EJJD3JJHTQVFCJX4DB","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FHyskoaMorroh\u002Fkirara-ai\u002Fblob\u002Fmain\u002Fkirara_ai\u002Fplugin_manager\u002Fbundled\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7AEB3CT17MBD5BGB60AC9RA","what-the","What the? Use when the user wants a plain-English breakdown of something technical — the who, what, where, why, and when.","https:\u002F\u002Fgithub.com\u002FHyskoaMorroh\u002Fkirara-ai\u002Fblob\u002Fmain\u002Fkirara_ai\u002Fplugin_manager\u002Fbundled\u002Fskills\u002Fwhat-the\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7AEB0G8SAHADVPA135MGNBB","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002FHyskoaMorroh\u002Fkirara-ai\u002Fblob\u002Fmain\u002Fkirara_ai\u002Fplugin_manager\u002Fbundled\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7AEAVHEPZAXQTCGJ12DM6SX","using-agent-skills","Discovers and invokes agent skills. Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.","https:\u002F\u002Fgithub.com\u002FHyskoaMorroh\u002Fkirara-ai\u002Fblob\u002Fmain\u002Fkirara_ai\u002Fplugin_manager\u002Fbundled\u002Fskills\u002Fusing-agent-skills\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7AEANRHNEWZQC38J5VR543M","test-driven-development","Drives development with tests. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality.","https:\u002F\u002Fgithub.com\u002FHyskoaMorroh\u002Fkirara-ai\u002Fblob\u002Fmain\u002Fkirara_ai\u002Fplugin_manager\u002Fbundled\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7AEAH03K47FGJ7ZR5MBGBE0","spec-driven-development","Creates specs before coding. Use when starting a new project, feature, or significant change and no specification exists yet. Use when requirements are unclear, ambiguous, or only exist as a vague idea.","https:\u002F\u002Fgithub.com\u002FHyskoaMorroh\u002Fkirara-ai\u002Fblob\u002Fmain\u002Fkirara_ai\u002Fplugin_manager\u002Fbundled\u002Fskills\u002Fspec-driven-development\u002FSKILL.md",[],[]]