Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseOpenClawOpenClaw+21 more

    API Contract Doc Builder

    1

    Turn routes, schemas, and middleware into trusted API references plus a validated OpenAPI, GraphQL, or Postman contract — errors, auth, and examples included.

    Free

    1 installSecurity scanned
    API Contract Doc Builder

    API Contract Doc Builder

    Example session with this skill installed

    We just shipped the v1 payments API — Express routes live in src/routes/payments, request bodies are validated with class-validator schemas, and auth is scoped API keys via middleware. There is zero documentation and partners keep emailing us integration questions. Please read the route handlers, validation schemas, and error mappings, then produce a developer reference for each endpoint covering parameters, auth scopes, and a full error catalog, plus copyable cURL, JavaScript, and Python examples, and finally a machine-readable OpenAPI 3 document. Mark anything you cannot verify in the code as an assumption instead of guessing.

    • Read your context and instructions
    • Compiled the api contract doc

    Summary

    Drafted the full contract for the payments API from src/routes and the class-validator schemas: 8 endpoints documented, plus a validated OpenAPI 3.1 file. Undocumented behavior (webhook retries, Idempotency-Key reuse windows) is flagged as assumption for your review.

    ArtifactCoverageNeeds review
    Endpoint reference (docs/api/)8/8 routes3 flagged fields
    Error catalog11 codes, 6 status classesrate-limit envelope
    openapi.yamlSchemas, security, examplesbeta endpoints
    Runnable cURL/JS/Python examplesHappy + failure pathsandbox base URL

    Next steps

    • Confirm the 3 assumption-marked fields against handler behavior
    • Point a partner at the Quick Start and paste-test the first cURL example
    • Diff openapi.yaml against a live sandbox request before publishing
    • Label @deprecated routes in the inventory so they render as deprecated

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    API documentation often drifts from reality, leaving developers to guess request shapes, auth requirements, and error codes. Stale docs or missing contracts slow down integration and increase support tickets for internal and partner-facing APIs.

    What it does

    • Analyzes routes, controllers, and schemas to build precise developer references.
    • Generates machine-readable contracts in OpenAPI, GraphQL SDL, or AsyncAPI formats.
    • Produces copy-pasteable code snippets in Shell, JavaScript, and Python.
    • Maps failure modes and HTTP status codes to specific implementation behaviors.
    • Structures onboarding materials including auth guides, pagination logic, and error catalogs.

    Frameworks & tools

    Supports REST, GraphQL, and event-based architectures. Compatible with OpenAPI 3.x, GraphQL SDL, and Postman Collection formats.

    Why this beats prompting it yourself

    Generic prompts often hallucinate field types or omit critical failure modes. This skill enforces a strict verification workflow that treats documentation as a technical contract, ensuring every example is self-contained and every schema field is explicitly typed and validated.

    Use cases

    • Generating a validated OpenAPI YAML from legacy Express or FastAPI routes.
    • Documenting GraphQL resolvers including field-level auth and complexity caps.
    • Preparing partner-facing integration guides with realistic request-response pairs.
    • Auditing implementation code to identify undocumented fields or missing error handles.

    Known limitations

    Requires access to source code or detailed requirements to avoid assumptions. Does not perform live network testing of endpoints.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    1 install

    Downloaded by developers to date

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 4 days ago

    • Free to download with an account

    Listed4 days ago

    What's inside

    Frequently Asked Questions