Skill: Create API Documentation

SkillDocs & knowledge

Api Docs is a documentation helper your AI can call on for API reference work. Once added, it can create OpenAPI and Swagger documentation and keep it maintained, so your APIs stay clearly documented over time.

Use Skill: Create API Documentation in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Skill: Create API Documentation and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Skill: Create API Documentation

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Api Docs, then ask your AI to document an API or refresh your existing OpenAPI or Swagger files.

Skill: Create API DocumentationStart free

What your AI can do with it

  • Create OpenAPI documentation for your APIs
  • Write Swagger documentation
  • Keep existing API documentation up to date
  • Maintain documentation as your API changes

What this skill tells your AI

The instructions your AI receives, as published by girijashankarj/cursor-handbook in .cursor/skills/documentation/api-docs/SKILL.md and read by Ahel’s review.

Trigger

When the user needs to document API endpoints.

Prerequisites

  • API endpoints exist or are designed
  • OpenAPI/Swagger tooling available (optional)
  • Access to route definitions or handler files

Steps

Step 1: Inventory Endpoints

  • List all API endpoints
  • Group by resource/entity
  • Note HTTP method and path for each

Step 2: Document Each Endpoint

For each endpoint:

  • HTTP method and URL
  • Description and purpose
  • Authentication requirements
  • Request parameters (path, query, header)
  • Request body schema
  • Response schemas (success + errors)
  • Example request and response
  • Rate limiting details

Step 3: Create OpenAPI Spec

  • Define info, servers, security schemes
  • Create component schemas (reusable)
  • Define paths with all operations
  • Add examples for all schemas
  • Validate spec

Step 4: Generate Documentation

  • Use Swagger UI or Redoc for interactive docs
  • Host at /api/docs or similar
  • Include in CI/CD for auto-updates

Step 5: Review

  • All endpoints documented
  • Examples are accurate and working
  • Error responses documented
  • Authentication flow documented

Completion Checklist

  • All endpoints have method, URL, params, body, response
  • Error responses (4xx, 5xx) documented
  • Examples validated against live API or schema
  • OpenAPI spec validates (if used)

If Step Fails

  • Step 1 (inventory): Search for route definitions: **/*.route*.ts, **/routes/**, app.get|post|put|delete
  • Step 3 (OpenAPI): Use minimal spec first; add complexity incrementally. Validate with swagger-cli validate
  • Step 4 (generate): Swagger UI needs valid spec; Redoc is more forgiving. Check CORS if hosted separately

Example

Step 2 for POST /api/v1/orders: Method POST, URL /api/v1/orders, Body { customerId, items: [{ productId, quantity }] }, Response 201 { data: { id, status } }, Errors 400 validation, 404 customer not found.

Signals

GitHub stars
31
Forks
3
Last commit
Aug 2026
Advanced
Item type
skill
Key
api-docs
Source
github.com/girijashankarj/cursor-handbook