LaunchKit · 2026
Back to Skills

sovereign-api-docs-generator

Auto-generates comprehensive API docs from code.

0
571 downloads
by @ryudi84

Setup & Installation

openclaw skills install @ryudi84/sovereign-api-docs-generator

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install sovereign-api-docs-generator

What This Skill Does

Generates API documentation from code descriptions, covering REST, GraphQL, and WebSocket endpoints. Produces OpenAPI/Swagger-compatible markdown with parameter tables, JSON request/response examples, and code samples in curl, JavaScript fetch, and Python requests.

Covers REST, GraphQL, and WebSocket in a single pass and outputs OpenAPI-compatible format, removing the need to manually author specs across multiple tools.

When to use it

  • Documenting a new REST API before releasing it to external developers
  • Generating curl and fetch examples for undocumented endpoints
  • Creating OpenAPI specs from a legacy codebase
  • Adding request and response schemas to a GraphQL API
  • Producing auth and rate limit docs for an internal service

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Document the POST /users endpoint with JWT auth and a JSON body

AGENT
  1. 1Identifies method (POST), path (/users), and writes a plain-language description
  2. 2Documents authentication requirement (JWT Bearer token in Authorization header)
  3. 3Generates request body schema with field names, types, and required flags
  4. 4Lists response status codes (201, 400, 401) with body schemas and error formats
  5. 5Produces code examples in curl, JavaScript fetch, and Python requests
OUTPUT

OpenAPI-compatible markdown block with a parameters table, JSON request/response examples, and multi-language code snippets