Documents

OpenAPI Docs Generator

Try it

Generate, repair, and validate OpenAPI or Swagger documentation for REST APIs from routes, handlers, schemas, examples, and observed behavior. Use when a use...

What it does

Use this skill when an API lacks an OpenAPI spec, the current spec drifts from implementation, examples are missing, or docs fail downstream SDK, gateway, or contract-test tooling.

The skill document

OpenAPI Docs Generator

Purpose

Use this skill when an API lacks an OpenAPI spec, the current spec drifts from implementation, examples are missing, or docs fail downstream SDK, gateway, or contract-test tooling.

Audience: backend engineers, platform teams, SDK maintainers, and developer-experience teams responsible for accurate REST API documentation.

Read references/requirement-plan.md when demand evidence, source links, scoring rationale, or review criteria are needed.

Workflow

  1. Inventory base URLs, auth, routes, controllers, schema validators, request samples, response samples, and existing OpenAPI fragments.
  2. Map each operation to method, path, parameters, request body, responses, errors, auth, idempotency, pagination, and rate limits.
  3. Draft or patch the OpenAPI document with reusable components for schemas, security schemes, errors, and shared parameters.
  4. Add realistic examples that match production constraints while redacting secrets and customer data.
  5. Validate with an OpenAPI parser or linter, then note contract mismatches that require code or docs changes.
  6. Return the spec changes, validation command, and follow-up tasks for SDK generation, docs publishing, or CI enforcement.

Expected Outputs

  • A new or patched OpenAPI YAML/JSON fragment.
  • Endpoint-by-endpoint documentation gaps and proposed fixes.
  • Validation commands for linting, bundling, SDK generation, or contract tests.
  • Examples for success, validation failure, authorization failure, and rate limits.

Validation

  • Every operation has method, path, auth, parameters, request body, responses, and examples where relevant.
  • Schemas reuse components instead of duplicating incompatible shapes.
  • The spec is parseable by standard OpenAPI tooling and does not include secrets.
  • Known implementation/spec drift is called out clearly.

Triggers

Keywords: OpenAPI, Swagger, REST API, API docs, schema, SDK, contract testing

Example trigger sentences:

  • Use $openapi-docs-generator to create an OpenAPI spec from these Express routes.
  • Patch this Swagger file so it matches the handler responses.
  • Review our API docs for missing schemas and examples.

Related skills

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván556 installs18 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

More from kyro-ma

Browse all skills

2026 世界杯观赛助手。触发词:世界杯、world cup、赛程、强队对决、赔率高、菜鸡互啄、签表、淘汰赛、淘汰赛程、小组赛、夺冠热门、签运、世界杯抽签、wc2026、worldcup2026。三种模式:(1) 球队模式 - 看某支队伍的所有比赛;(2) 强度模式 - 按两队实力+恩怨+赛事阶段算强度分,过滤菜...

by kyro-ma6 installs1 stars

Discover real user demand from public online sources and turn validated opportunities into reviewed, publishable Skill packages. Use when a team wants to sca...

by kyro-ma2 installs

Diagnose and repair Microsoft Word DOCX formatting problems, including styles, numbering, section breaks, headers and footers, comments, tracked changes, and...

by kyro-ma4 installs