- Home
- Skills
- Technical Documentation
- API Docs From Code
API Docs From Code
by William
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
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
| Header | Required | Value |
|---|---|---|
| Authorization | yes | Bearer <token>, admin role |
Request body (optional)
| Field | Type | Required | Description |
|---|---|---|---|
| note | string | no | Max 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
| Status | When | Body |
|---|---|---|
| 404 | Refund not found | {"error": "not_found"} |
| 422 | note too long | {"errors": ["note: String must contain at most 500 character(s)"]} |
| 422 | Refund 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
File Scopes
No network access, no environment variables.
What's inside
Creator
William
3 skills on Agensi
Frequently Asked Questions
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.