API Docs From Code

    by William

    1

    Generates endpoint docs from the actual routes, validators and serializers, so the docs match what the code does. Endpoint, headers, params, request and response examples, error cases and notes for frontend devs.

    Free

    Security scanned

    Works with the AI Agents you already use

    API Docs From Code

    Example session with this skill installed

    Document the refund endpoints I just built. (Express + zod demo shop API)

    • Read your context and instructions
    • Compiled the api docs from

    Wrote docs/api/refunds.md covering 3 endpoints: POST /orders/{id}/refunds, GET /admin/refunds, POST /admin/refunds/{id}/approve.

    One thing I noticed in the code (kept out of the docs): details on the refund request is validated (max 500 chars) but never stored or returned, so it's silently dropped. Store it or remove it from the schema?

    Excerpt

    Approve a refund

    POST /admin/refunds/{id}/approve

    Approves a pending refund, marks the order refunded, and adds the refund amount to the customer's balance.

    Headers

    HeaderRequiredValue
    AuthorizationyesBearer <token>, admin role

    Request body (optional)

    FieldTypeRequiredDescription
    notestringnoMax 500 chars. Returned on the refund

    Success 200

    {
      "refund": { "id": "r1", "order_id": "o1", "status": "approved", "reason": "damaged",
                  "amount": 2500, "note": "Approved after photo review",
                  "created_at": "2026-11-23T14:38:58.541Z" },
      "customer_balance": 2500
    }
    

    Errors

    StatusWhenBody
    404Refund not found{"error": "not_found"}
    422note too long{"errors": ["note: String must contain at most 500 character(s)"]}
    422Refund is not pending{"errors": ["refund must be pending"]}

    Notes for frontend

    • The refund always covers the full order total; there are no partial refunds.

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

    About this skill

    Docs written from memory drift; docs written from the code don't. For each endpoint it reads the route, the request validation, the service behaviour, the serializer and the error rendering, then writes Markdown with header and parameter tables, request and response examples, an error table with real HTTP statuses, and notes for frontend developers.

    It follows your repo's existing docs style when there is one. Bugs it spots are reported to you in chat, not written into the docs.

    Works with: Rails, Express/Nest/Fastify, FastAPI/Flask/Django, Go, Spring, Laravel.

    Outputs Markdown files in your repo. Documents what the code does today; it doesn't change application code.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 11 days ago

    • Free with an Agensi account

    Requires

    Nothing to install.

    Permissions

    Read Files
    Write Files

    File Scopes

    the
    current
    repository
    (reads
    source
    writes
    docs/api/)

    No network access, no environment variables.

    Listed11 days ago

    What's inside

    Creator

    William

    William

    3 skills on Agensi

    Frequently Asked Questions

    Generates endpoint docs from the actual routes, validators and serializers, so the docs match what the code does. Endpoint, headers, params, request and response examples, error cases and notes for frontend devs.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use API Docs From Code on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Technical Documentation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Technical Documentation.

    Free