[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D1WRKR3MWB00HFVF4TH3DW":3,"skill-same:01M6D1WRKR3MWB00HFVF4TH3DW":66},{"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":23,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":48,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6D1WRKR3MWB00HFVF4TH3DW","docs-api",null,"API reference documentation: OpenAPI as the source of truth for HTTP APIs, generated reference with real examples, authentication, errors, pagination, rate limits and versioning explained once, request and response examples in curl and the main languages, SDK docs, library API docs with doc comments and tested examples, and GraphQL schemas. Read before documenting an API or a library's public interface.","enowdev\u002Fenowxcli","enowdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F179420349?v=4","01M6D1MVX2KC0X3Z9NESE7P22K","Enow Dev.","01M6D1MW1FMZGBDKWAJY4GQX81",67,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fdocs-api\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"docs api","api","docs","openapi","main","pagination","generated","read","public","curl","versioning","doc","GraphQL","examples","library","authentication","http","documentation","doc comments","sdk","2026-11-10 10:12:30",false,"---\nname: docs-api\ndescription: \"API reference documentation: OpenAPI as the source of truth for HTTP APIs, generated reference with real examples, authentication, errors, pagination, rate limits and versioning explained once, request and response examples in curl and the main languages, SDK docs, library API docs with doc comments and tested examples, and GraphQL schemas. Read before documenting an API or a library's public interface.\"\n---\n\n# API reference people can build against\n\nThe generated reference lists every route with each field typed `string`\nand an example value of `\"string\"`, no error responses, authentication\ndescribed three different ways, pagination left to guess, and a spec that\nstopped matching the code releases ago; its library docs say\n`@param id the id`. This skill: one contract that cannot drift, entries\nwith real requests and responses, the concepts every call shares explained\nonce, and doc comments whose examples are tested. The server side of these\nrules is in `backend-api` and `backend-errors`.\n\n## 1. One source of truth for an HTTP API\n\nThe OpenAPI document is the contract: version 3.1, or 3.2 once your tools\nsupport it. Choose one direction and keep to it:\n\n- **Code first**: the framework generates the document from handlers and\n  schemas. FastAPI; NestJS with `@nestjs\u002Fswagger`; zod with\n  `@asteasolutions\u002Fzod-to-openapi`, or Hono's `@hono\u002Fzod-openapi`; utoipa\n  or aide in Rust; huma in Go; Scramble or Scribe in Laravel;\n  drf-spectacular for Django REST framework; springdoc-openapi;\n  `Microsoft.AspNetCore.OpenApi` in .NET 9 and later.\n- **Spec first**: you write `openapi.yaml` and generate server interfaces\n  and clients from it: oapi-codegen or ogen for Go, openapi-typescript for\n  TypeScript types, Orval or Hey API for clients, openapi-generator for\n  the rest.\n- Never both, and never a hand-kept spec beside code that does not read\n  it.\n\nCI keeps it honest:\n\n```sh\nnpx @redocly\u002Fcli lint openapi.yaml       # or: spectral lint openapi.yaml\ngit show origin\u002Fmain:openapi.yaml > base.yaml\noasdiff breaking base.yaml openapi.yaml --fail-on ERR\n```\n\n- Code first, CI regenerates the document and fails when the committed\n  copy differs (`git diff --exit-code openapi.yaml`); spec first, contract\n  tests call the running API with it (Schemathesis).\n- Render it with Scalar (reference plus a request client), Redoc (three\n  panels, read only) or Stoplight Elements, served from the docs site;\n  Swagger UI for internal \"try it\" pages. Hosted platforms (Mintlify,\n  ReadMe, Bump.sh) read the same file.\n- In 3.1 a nullable field is `type: [string, \"null\"]`, and schema examples\n  are `examples: [...]`; `nullable` and `example` are the 3.0 forms.\n\n## 2. Every operation\n\n- `operationId`: stable and verb first (`createOrder`). SDK generators name\n  methods after it, so renaming it breaks users.\n- `summary`: the action in a few words (\"Create an order\"). `description`:\n  what it does, its side effects (sends an email, charges a card, starts a\n  job), the scope or role it needs, whether it is idempotent.\n- Every parameter and field: a description, type and format, constraints\n  (`minimum`, `maxLength`, `pattern`, `enum`), default, required or not.\n  The description says what the name cannot: units, time zone, what `null`\n  means.\n- Responses: the success, and every error the operation really returns,\n  as shared components.\n- Examples with realistic values (never `string`, `0` or `true`),\n  consistent across operations: the order created in one example is the\n  one fetched in the next.\n- `deprecated: true`, with the replacement and the removal date in the\n  description. Tags per resource, in the order a reader meets them.\n\n```yaml\npaths:\n  \u002Forders:\n    post:\n      operationId: createOrder\n      summary: Create an order\n      description: |\n        Creates an order in `pending` state. Needs the `orders:write` scope.\n        Send an `Idempotency-Key` header to retry safely.\n      tags: [Orders]\n      security: [{ bearerAuth: [] }]\n      parameters:\n        - $ref: \"#\u002Fcomponents\u002Fparameters\u002FIdempotencyKey\"\n      requestBody:\n        required: true\n        content:\n          application\u002Fjson:\n            schema: { $ref: \"#\u002Fcomponents\u002Fschemas\u002FOrderCreate\" }\n            examples:\n              twoShirts:\n                summary: Two shirts, standard shipping\n                value:\n                  customerId: cus_4Qm8Zt\n                  items: [{ sku: TEE-BLK-M, quantity: 2 }]\n      responses:\n        \"201\":\n          description: Created. `Location` holds the order's URL.\n          content:\n            application\u002Fjson:\n              schema: { $ref: \"#\u002Fcomponents\u002Fschemas\u002FOrder\" }\n        \"422\": { $ref: \"#\u002Fcomponents\u002Fresponses\u002FValidationFailed\" }\n        \"429\": { $ref: \"#\u002Fcomponents\u002Fresponses\u002FRateLimited\" }\n```\n\n## 3. What every call shares, explained once\n\nA guide page for each, linked from every operation it applies to:\n\n- **Authentication**: how to get credentials (where, and which role may\n  create them), how to send them (`Authorization: Bearer \u003Ctoken>`), test\n  and live keys, each scope and what it allows, expiry and rotation, and\n  what `401` means next to `403`. One whole request that works with a test\n  key.\n- **Errors**: the format, ideally RFC 9457 problem details (`type`,\n  `title`, `status`, `detail`, `instance`, plus fields such as a list of\n  per-field `errors`), and a table of every error code: status, meaning,\n  what the caller should do. Each `type` URL opens its row.\n- **Pagination**: `limit` with its default and maximum, `cursor`, the\n  response fields, the sort order, and a loop that fetches every page.\n- **Rate limits**: the limits if they are public, the headers sent\n  (`Retry-After`, and `RateLimit` with `RateLimit-Policy` from the IETF\n  draft, or `X-RateLimit-*`), and what a client does on `429`: wait for\n  `Retry-After`, then back off with jitter.\n- **Idempotency**: which operations take `Idempotency-Key`, how long keys\n  are kept, what a reused key with a different body returns.\n- **Versioning and deprecation**: the scheme (a `\u002Fv1` path, or a dated\n  version header such as Stripe's `Stripe-Version`), what counts as\n  breaking, the notice period, how a deprecation is announced (the\n  `Deprecation` header of RFC 9745 and `Sunset` of RFC 8594, a message to\n  the keys still calling it), and the API's own dated changelog\n  (`docs-changelog`; `oasdiff changelog` drafts one from two versions).\n- **Webhooks**: each event type with an example payload; delivery (method,\n  timeout, which status counts as received); signature verification with\n  working code (HMAC-SHA256 over the raw body, a constant-time comparison,\n  a timestamp tolerance such as 5 minutes); the retry schedule; no\n  ordering guarantee; duplicates dropped by event id; receiving them\n  locally. OpenAPI 3.1 describes payloads under `webhooks`; the Standard\n  Webhooks spec gives header names and a signing scheme to follow.\n- **Environments**: base URLs for production and sandbox, in `servers`. A\n  \"try it\" console sends to the sandbox, never to production.\n\n## 4. Code samples\n\n- curl first, since everyone has it; then the languages your users write,\n  through your SDKs when you have them.\n- One option per line, the secret from an environment variable, the full\n  URL. Send JSON with `-H` and `-d`: `--json` needs curl 7.82 or later.\n\n```sh\ncurl https:\u002F\u002Fapi.example.com\u002Fv1\u002Forders \\\n  -H \"Authorization: Bearer $ACME_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Idempotency-Key: 5f0c9a8e-2b7d-4e21-9c3a-6d1f8b4e7a20\" \\\n  -d '{\"customerId\": \"cus_4Qm8Zt\", \"items\": [{\"sku\": \"TEE-BLK-M\", \"quantity\": 2}]}'\n```\n\n- Then the response: the status line and the body, trimmed to what\n  matters. Samples come from the spec or run in tests; a sample that no\n  longer works is worse than none.\n\n## 5. SDK documentation\n\n- The reference generated from the types (TypeDoc, rustdoc, mkdocstrings\n  or Sphinx, pkg.go.dev), plus pages written by hand: install, creating the\n  client (configuration, timeouts, retries), authentication, pagination\n  helpers, errors (which error type maps to which API error), webhook\n  verification, and an upgrade guide per major version.\n- Generated SDKs (Speakeasy, Stainless, Fern, openapi-generator, Kiota)\n  ship a default README: rewrite its introduction and examples.\n\n## 6. Doc comments on a library's public interface\n\nEvery public item gets one. The first sentence is the summary (lists and\nsearch show only it). Then what the signature does not say: behaviour,\nparameters and return value when names and types are not enough, errors\nand when they happen, panics, safety conditions, an example, and the\nversion it arrived in for newer items. Never restate the types: no\n`@param {string} text` in TypeScript, where the signature has the type.\n\n| Language | Syntax | Sections | Examples run by |\n|---|---|---|---|\n| Rust | `\u002F\u002F\u002F`, and `\u002F\u002F!` for a module | `# Examples`, `# Errors`, `# Panics`, `# Safety` | `cargo test --doc` |\n| Python | Docstrings, Google or NumPy style | `Args:`, `Returns:`, `Raises:`, `Examples:` | `pytest --doctest-modules` |\n| TypeScript | TSDoc `\u002F** *\u002F` | `@param name - text`, `@returns`, `@throws`, `@example` with a fenced block, `@deprecated`, `{@link}` | Example files checked by `tsc` |\n| Go | `\u002F\u002F` starting with the item's name | A `Deprecated:` paragraph | `func ExampleName()` with `\u002F\u002F Output:` |\n| Java | Javadoc `\u002F** *\u002F`, or `\u002F\u002F\u002F` Markdown from JDK 23 | `@param`, `@return`, `@throws`, `{@snippet}` | Snippets from compiled files |\n| C# | `\u002F\u002F\u002F` XML | `\u003Csummary>`, `\u003Cparam>`, `\u003Creturns>`, `\u003Cexception>` | Tests beside the examples |\n\n```rust\n\u002F\u002F\u002F Parses a duration such as `90s`, `15m` or `2h` into seconds.\n\u002F\u002F\u002F\n\u002F\u002F\u002F # Errors\n\u002F\u002F\u002F\n\u002F\u002F\u002F Returns [`ParseError::Unit`] when the suffix is not `s`, `m` or `h`.\n\u002F\u002F\u002F\n\u002F\u002F\u002F # Examples\n\u002F\u002F\u002F\n\u002F\u002F\u002F ```\n\u002F\u002F\u002F assert_eq!(timeparse::parse_seconds(\"15m\")?, 900);\n\u002F\u002F\u002F # Ok::\u003C(), timeparse::ParseError>(())\n\u002F\u002F\u002F ```\npub fn parse_seconds(input: &str) -> Result\u003Cu64, ParseError> {\n    \u002F\u002F ...\n}\n```\n\n## 7. Tested, linted, published\n\n- Doctests: `cargo test` runs a library crate's examples (the hidden\n  `# Ok::\u003C...>` line lets an example use `?`); `pytest --doctest-modules`\n  runs docstrings, and `--doctest-glob=\"*.md\"` Markdown pages; `go test`\n  runs each `Example` function with an `\u002F\u002F Output:` comment, which\n  pkg.go.dev also shows. TypeScript has no doctest: keep examples as files\n  under `examples\u002F` that `tsc` checks, and include them in the docs.\n- Missing docs are reported, and CI fails on the report:\n  `#![warn(missing_docs)]` and clippy's `missing_errors_doc` and\n  `missing_panics_doc` in Rust; ruff's `D` rules with\n  `convention = \"google\"` in Python; revive's `exported` rule in Go;\n  `GenerateDocumentationFile` (warning CS1591) in C#.\n- Broken references fail the build too: `sphinx-build -W`, TypeDoc's\n  `--treatWarningsAsErrors`, and in Rust\n  `RUSTDOCFLAGS=\"-D warnings\" cargo doc --no-deps`.\n- Changes to the public surface are reviewed on purpose: API Extractor's\n  `.api.md` report for TypeScript, `cargo semver-checks` for Rust.\n\n## 8. GraphQL and other contracts\n\n- Descriptions in the schema, on types, fields, arguments and enum values:\n  GraphiQL and every client's tooling show them.\n\n```graphql\n\"\"\"A customer's order. Amounts are in the currency's smallest unit.\"\"\"\ntype Order {\n  id: ID!\n  \"Moves from PENDING to PAID or CANCELLED, never back.\"\n  status: OrderStatus!\n  customerName: String @deprecated(reason: \"Use customer { name }. Removed after 2027-03-31.\")\n}\n```\n\n- Example operations for the main tasks, with variables and the response;\n  the error shape (the values of `errors[].extensions.code`) and partial\n  data.\n- Pagination (Relay connections: `first`, `after`, `edges`, `node`,\n  `pageInfo`) and the depth or cost limits, explained once. GraphiQL or\n  Apollo Sandbox to explore; SpectaQL or Magidoc for a static reference.\n- Protobuf and gRPC: a comment on every service, rpc, message and field,\n  enforced by `buf lint`'s comment rules, rendered by protoc-gen-doc or the\n  Buf Schema Registry. Event streams: AsyncAPI 3.0.\n\n## Check it\n\n- The linter passes, `oasdiff breaking` shows only the changes you meant,\n  and the rendered reference builds.\n- Every operation has a summary, a description, examples and its error\n  responses; no example value is `string`, `0` or `foo`.\n- Every curl sample ran against a test environment, or your report says\n  it did not.\n- Doctests and example tests pass (`cargo test --doc`,\n  `pytest --doctest-modules`, `go test .\u002F...`), and the missing-docs lints\n  are clean.\n- Authentication, errors, pagination, rate limits and versioning are each\n  explained on one page and linked, never repeated.\n\n## Avoid\n\nA hand-written spec drifting beside the code; examples of `\"string\"`;\nerror responses left out; authentication explained three ways; field\ndescriptions that repeat the field name; untested samples;\n`@param id the id`; renaming an `operationId` or a public item without a\ndeprecation; limits, prices or guarantees the owner never stated.\n","# API reference people can build against\n\nThe generated reference lists every route with each field typed `string`\nand an example value of `\"string\"`, no error responses, authentication\ndescribed three different ways, pagination left to guess, and a spec that\nstopped matching the code releases ago; its library docs say\n`@param id the id`. This skill: one contract that cannot drift, entries\nwith real requests and responses, the concepts every call shares explained\nonce, and doc comments whose examples are tested. The server side of these\nrules is in `backend-api` and `backend-errors`.\n\n## 1. One source of truth for an HTTP API\n\nThe OpenAPI document is the contract: version 3.1, or 3.2 once your tools\nsupport it. Choose one direction and keep to it:\n\n- **Code first**: the framework generates the document from handlers and\n  schemas. FastAPI; NestJS with `@nestjs\u002Fswagger`; zod with\n  `@asteasolutions\u002Fzod-to-openapi`, or Hono's `@hono\u002Fzod-openapi`; utoipa\n  or aide in Rust; huma in Go; Scramble or Scribe in Laravel;\n  drf-spectacular for Django REST framework; springdoc-openapi;\n  `Microsoft.AspNetCore.OpenApi` in .NET 9 and later.\n- **Spec first**: you write `openapi.yaml` and generate server interfaces\n  and clients from it: oapi-codegen or ogen for Go, openapi-typescript for\n  TypeScript types, Orval or Hey API for clients, openapi-generator for\n  the rest.\n- Never both, and never a hand-kept spec beside code that does not read\n  it.\n\nCI keeps it honest:\n\n```sh\nnpx @redocly\u002Fcli lint openapi.yaml       # or: spectral lint openapi.yaml\ngit show origin\u002Fmain:openapi.yaml > base.yaml\noasdiff breaking base.yaml openapi.yaml --fail-on ERR\n```\n\n- Code first, CI regenerates the document and fails when the committed\n  copy differs (`git diff --exit-code openapi.yaml`); spec first, contract\n  tests call the running API with it (Schemathesis).\n- Render it with Scalar (reference plus a request client), Redoc (three\n  panels, read only) or Stoplight Elements, served from the docs site;\n  Swagger UI for internal \"try it\" pages. Hosted platforms (Mintlify,\n  ReadMe, Bump.sh) read the same file.\n- In 3.1 a nullable field is `type: [string, \"null\"]`, and schema examples\n  are `examples: [...]`; `nullable` and `example` are the 3.0 forms.\n\n## 2. Every operation\n\n- `operationId`: stable and verb first (`createOrder`). SDK generators name\n  methods after it, so renaming it breaks users.\n- `summary`: the action in a few words (\"Create an order\"). `description`:\n  what it does, its side effects (sends an email, charges a card, starts a\n  job), the scope or role it needs, whether it is idempotent.\n- Every parameter and field: a description, type and format, constraints\n  (`minimum`, `maxLength`, `pattern`, `enum`), default, required or not.\n  The description says what the name cannot: units, time zone, what `null`\n  means.\n- Responses: the success, and every error the operation really returns,\n  as shared components.\n- Examples with realistic values (never `string`, `0` or `true`),\n  consistent across operations: the order created in one example is the\n  one fetched in the next.\n- `deprecated: true`, with the replacement and the removal date in the\n  description. Tags per resource, in the order a reader meets them.\n\n```yaml\npaths:\n  \u002Forders:\n    post:\n      operationId: createOrder\n      summary: Create an order\n      description: |\n        Creates an order in `pending` state. Needs the `orders:write` scope.\n        Send an `Idempotency-Key` header to retry safely.\n      tags: [Orders]\n      security: [{ bearerAuth: [] }]\n      parameters:\n        - $ref: \"#\u002Fcomponents\u002Fparameters\u002FIdempotencyKey\"\n      requestBody:\n        required: true\n        content:\n          application\u002Fjson:\n            schema: { $ref: \"#\u002Fcomponents\u002Fschemas\u002FOrderCreate\" }\n            examples:\n              twoShirts:\n                summary: Two shirts, standard shipping\n                value:\n                  customerId: cus_4Qm8Zt\n                  items: [{ sku: TEE-BLK-M, quantity: 2 }]\n      responses:\n        \"201\":\n          description: Created. `Location` holds the order's URL.\n          content:\n            application\u002Fjson:\n              schema: { $ref: \"#\u002Fcomponents\u002Fschemas\u002FOrder\" }\n        \"422\": { $ref: \"#\u002Fcomponents\u002Fresponses\u002FValidationFailed\" }\n        \"429\": { $ref: \"#\u002Fcomponents\u002Fresponses\u002FRateLimited\" }\n```\n\n## 3. What every call shares, explained once\n\nA guide page for each, linked from every operation it applies to:\n\n- **Authentication**: how to get credentials (where, and which role may\n  create them), how to send them (`Authorization: Bearer \u003Ctoken>`), test\n  and live keys, each scope and what it allows, expiry and rotation, and\n  what `401` means next to `403`. One whole request that works with a test\n  key.\n- **Errors**: the format, ideally RFC 9457 problem details (`type`,\n  `title`, `status`, `detail`, `instance`, plus fields such as a list of\n  per-field `errors`), and a table of every error code: status, meaning,\n  what the caller should do. Each `type` URL opens its row.\n- **Pagination**: `limit` with its default and maximum, `cursor`, the\n  response fields, the sort order, and a loop that fetches every page.\n- **Rate limits**: the limits if they are public, the headers sent\n  (`Retry-After`, and `RateLimit` with `RateLimit-Policy` from the IETF\n  draft, or `X-RateLimit-*`), and what a client does on `429`: wait for\n  `Retry-After`, then back off with jitter.\n- **Idempotency**: which operations take `Idempotency-Key`, how long keys\n  are kept, what a reused key with a different body returns.\n- **Versioning and deprecation**: the scheme (a `\u002Fv1` path, or a dated\n  version header such as Stripe's `Stripe-Version`), what counts as\n  breaking, the notice period, how a deprecation is announced (the\n  `Deprecation` header of RFC 9745 and `Sunset` of RFC 8594, a message to\n  the keys still calling it), and the API's own dated changelog\n  (`docs-changelog`; `oasdiff changelog` drafts one from two versions).\n- **Webhooks**: each event type with an example payload; delivery (method,\n  timeout, which status counts as received); signature verification with\n  working code (HMAC-SHA256 over the raw body, a constant-time comparison,\n  a timestamp tolerance such as 5 minutes); the retry schedule; no\n  ordering guarantee; duplicates dropped by event id; receiving them\n  locally. OpenAPI 3.1 describes payloads under `webhooks`; the Standard\n  Webhooks spec gives header names and a signing scheme to follow.\n- **Environments**: base URLs for production and sandbox, in `servers`. A\n  \"try it\" console sends to the sandbox, never to production.\n\n## 4. Code samples\n\n- curl first, since everyone has it; then the languages your users write,\n  through your SDKs when you have them.\n- One option per line, the secret from an environment variable, the full\n  URL. Send JSON with `-H` and `-d`: `--json` needs curl 7.82 or later.\n\n```sh\ncurl https:\u002F\u002Fapi.example.com\u002Fv1\u002Forders \\\n  -H \"Authorization: Bearer $ACME_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Idempotency-Key: 5f0c9a8e-2b7d-4e21-9c3a-6d1f8b4e7a20\" \\\n  -d '{\"customerId\": \"cus_4Qm8Zt\", \"items\": [{\"sku\": \"TEE-BLK-M\", \"quantity\": 2}]}'\n```\n\n- Then the response: the status line and the body, trimmed to what\n  matters. Samples come from the spec or run in tests; a sample that no\n  longer works is worse than none.\n\n## 5. SDK documentation\n\n- The reference generated from the types (TypeDoc, rustdoc, mkdocstrings\n  or Sphinx, pkg.go.dev), plus pages written by hand: install, creating the\n  client (configuration, timeouts, retries), authentication, pagination\n  helpers, errors (which error type maps to which API error), webhook\n  verification, and an upgrade guide per major version.\n- Generated SDKs (Speakeasy, Stainless, Fern, openapi-generator, Kiota)\n  ship a default README: rewrite its introduction and examples.\n\n## 6. Doc comments on a library's public interface\n\nEvery public item gets one. The first sentence is the summary (lists and\nsearch show only it). Then what the signature does not say: behaviour,\nparameters and return value when names and types are not enough, errors\nand when they happen, panics, safety conditions, an example, and the\nversion it arrived in for newer items. Never restate the types: no\n`@param {string} text` in TypeScript, where the signature has the type.\n\n| Language | Syntax | Sections | Examples run by |\n|---|---|---|---|\n| Rust | `\u002F\u002F\u002F`, and `\u002F\u002F!` for a module | `# Examples`, `# Errors`, `# Panics`, `# Safety` | `cargo test --doc` |\n| Python | Docstrings, Google or NumPy style | `Args:`, `Returns:`, `Raises:`, `Examples:` | `pytest --doctest-modules` |\n| TypeScript | TSDoc `\u002F** *\u002F` | `@param name - text`, `@returns`, `@throws`, `@example` with a fenced block, `@deprecated`, `{@link}` | Example files checked by `tsc` |\n| Go | `\u002F\u002F` starting with the item's name | A `Deprecated:` paragraph | `func ExampleName()` with `\u002F\u002F Output:` |\n| Java | Javadoc `\u002F** *\u002F`, or `\u002F\u002F\u002F` Markdown from JDK 23 | `@param`, `@return`, `@throws`, `{@snippet}` | Snippets from compiled files |\n| C# | `\u002F\u002F\u002F` XML | `\u003Csummary>`, `\u003Cparam>`, `\u003Creturns>`, `\u003Cexception>` | Tests beside the examples |\n\n```rust\n\u002F\u002F\u002F Parses a duration such as `90s`, `15m` or `2h` into seconds.\n\u002F\u002F\u002F\n\u002F\u002F\u002F # Errors\n\u002F\u002F\u002F\n\u002F\u002F\u002F Returns [`ParseError::Unit`] when the suffix is not `s`, `m` or `h`.\n\u002F\u002F\u002F\n\u002F\u002F\u002F # Examples\n\u002F\u002F\u002F\n\u002F\u002F\u002F ```\n\u002F\u002F\u002F assert_eq!(timeparse::parse_seconds(\"15m\")?, 900);\n\u002F\u002F\u002F # Ok::\u003C(), timeparse::ParseError>(())\n\u002F\u002F\u002F ```\npub fn parse_seconds(input: &str) -> Result\u003Cu64, ParseError> {\n    \u002F\u002F ...\n}\n```\n\n## 7. Tested, linted, published\n\n- Doctests: `cargo test` runs a library crate's examples (the hidden\n  `# Ok::\u003C...>` line lets an example use `?`); `pytest --doctest-modules`\n  runs docstrings, and `--doctest-glob=\"*.md\"` Markdown pages; `go test`\n  runs each `Example` function with an `\u002F\u002F Output:` comment, which\n  pkg.go.dev also shows. TypeScript has no doctest: keep examples as files\n  under `examples\u002F` that `tsc` checks, and include them in the docs.\n- Missing docs are reported, and CI fails on the report:\n  `#![warn(missing_docs)]` and clippy's `missing_errors_doc` and\n  `missing_panics_doc` in Rust; ruff's `D` rules with\n  `convention = \"google\"` in Python; revive's `exported` rule in Go;\n  `GenerateDocumentationFile` (warning CS1591) in C#.\n- Broken references fail the build too: `sphinx-build -W`, TypeDoc's\n  `--treatWarningsAsErrors`, and in Rust\n  `RUSTDOCFLAGS=\"-D warnings\" cargo doc --no-deps`.\n- Changes to the public surface are reviewed on purpose: API Extractor's\n  `.api.md` report for TypeScript, `cargo semver-checks` for Rust.\n\n## 8. GraphQL and other contracts\n\n- Descriptions in the schema, on types, fields, arguments and enum values:\n  GraphiQL and every client's tooling show them.\n\n```graphql\n\"\"\"A customer's order. Amounts are in the currency's smallest unit.\"\"\"\ntype Order {\n  id: ID!\n  \"Moves from PENDING to PAID or CANCELLED, never back.\"\n  status: OrderStatus!\n  customerName: String @deprecated(reason: \"Use customer { name }. Removed after 2027-03-31.\")\n}\n```\n\n- Example operations for the main tasks, with variables and the response;\n  the error shape (the values of `errors[].extensions.code`) and partial\n  data.\n- Pagination (Relay connections: `first`, `after`, `edges`, `node`,\n  `pageInfo`) and the depth or cost limits, explained once. GraphiQL or\n  Apollo Sandbox to explore; SpectaQL or Magidoc for a static reference.\n- Protobuf and gRPC: a comment on every service, rpc, message and field,\n  enforced by `buf lint`'s comment rules, rendered by protoc-gen-doc or the\n  Buf Schema Registry. Event streams: AsyncAPI 3.0.\n\n## Check it\n\n- The linter passes, `oasdiff breaking` shows only the changes you meant,\n  and the rendered reference builds.\n- Every operation has a summary, a description, examples and its error\n  responses; no example value is `string`, `0` or `foo`.\n- Every curl sample ran against a test environment, or your report says\n  it did not.\n- Doctests and example tests pass (`cargo test --doc`,\n  `pytest --doctest-modules`, `go test .\u002F...`), and the missing-docs lints\n  are clean.\n- Authentication, errors, pagination, rate limits and versioning are each\n  explained on one page and linked, never repeated.\n\n## Avoid\n\nA hand-written spec drifting beside the code; examples of `\"string\"`;\nerror responses left out; authentication explained three ways; field\ndescriptions that repeat the field name; untested samples;\n`@param id the id`; renaming an `operationId` or a public item without a\ndeprecation; limits, prices or guarantees the owner never stated.\n",{"name":5,"description":7},"38293fe1b096e6bf3646c7344c38786ed688f464","crates\u002Fenowx-core\u002Fskills\u002Fdocs-api",21,"https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli","https:\u002F\u002Fenowx.ai","https:\u002F\u002Fgithub.com\u002Fenowdev","Pretending to be a Developer","2026-10-06 02:05:35",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add enowdev\u002Fenowxcli --skill docs-api",{"tool":58,"command":59},"bunx","bunx skills add enowdev\u002Fenowxcli --skill docs-api",{"tool":61,"command":62},"pnpm","pnpm dlx skills add enowdev\u002Fenowxcli --skill docs-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fdocs-api\u002FSKILL.md",true,[],[67,78,94,107,128,147],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":39},"01M6D2HQYSQD9N7MTNDT4A7CBM","demo-skill","Project-scope demo skill for tests.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fworkspace\u002F.agents\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[74,75,76,77,26],"demo skill","demo","tests","project",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":39},"01M6D2HM0GCPM0TM2HPG9HHR2R","writing","Writing words people read: the specific thing instead of claims, words to drop, sentences, interface copy (buttons, labels, errors, empty states, confirmations), page copy, notifications and emails, alt text and link text, numbers and dates, words that translate well, documentation and voice. Read before writing a page's copy, an interface's text or a document.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fwriting\u002FSKILL.md",[],[80,85,86,87,88,89,26,90,91,92,36,93],"text","emails","empty","drop","document","page","voice","notifications","translate",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6D2HG07YS49NM196Q0R3AZ8","ui","Designing or restyling an interface: direction, layout, type, colour, icons, components, states, responsive behaviour. Read before building a page, a screen or a set of components.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui\u002FSKILL.md",[],[96,101,102,103,104,90,105,26,106],"icons","components","SET","responsive","layout","before building",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":39},"01M6D2HB59HZHWG1RYZDV4SJ91","ui-themes","Light and dark themes, and colour that holds in both: tokens with a value per theme, and what each kind of content needs to stay visible (icons, SVG drawings and line art, logos, photos, screenshots, charts, code, maps, borders, shadows, focus, form controls), switching without a flash, and checking both. Read before building a second theme or a theme toggle, and before any drawing, logo or chart on a page that has two themes.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-themes\u002FSKILL.md",[],[96,114,115,116,117,118,119,120,121,26,106,122,90,123,124,125,101,126,127],"ui themes","switching","photos","tokens","drawing","focus","maps","Art","flash","code","Charts","content","screenshots","logo",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":39},"01M6D2H5R5KRAE524C8QX0T7Q0","ui-structure","Structure before styling: the blueprint written before any interface code (the screen's job, the regions its kind of page needs, their order and why, the layout skeleton in numbers, the components and their states), the anatomy and order of a homepage, a dashboard, a list, a detail page, settings, a form, sign-in, pricing, docs, an article and a checkout, and how to turn the blueprint into code (tokens, layout primitives, components, sections, page). Read first, before building or rebuilding any page or screen.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-structure\u002FSKILL.md",[],[135,96,136,102,137,138,123,139,140,141,105,117,142,143,144,26,106,90,145,146],"structure","ui structure","pricing","dashboard","Blueprint","article","anatomy","styling","primitives","list","why","how",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":39},"01M6D2H0ZZBJG77MBGPZHA6MWD","ui-stack-vue","Building interfaces in Vue 3 and Nuxt: project layout, script setup with typed defineProps, defineEmits and defineModel, attribute fallthrough, slots and scoped slots, template refs, ref, reactive and computed, watch versus watchEffect, composables and VueUse, provide and inject, Pinia, keyed v-for, transitions, Nuxt 4 (app directory, pages, layouts, useFetch and useAsyncData keys, $fetch in handlers, server routes, runtime config, useSeoMeta, NuxtImg, middleware), VeeValidate forms, Reka UI and Nuxt UI, testing, vue-tsc, and the traps. Read when the project uses Vue or Nuxt.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-stack-vue\u002FSKILL.md",[],[96,154,155,156,157,158,159,160,105,77,161,162,26,163,164,165,166,167,168,169],"vue","stack","ui stack vue","forms","pages","watch","runtime","transitions","fetch","pinia","nuxt","template","server","config","directory","testing"]