adding-api-docs
Installation
SKILL.md
Add API Documentation (OpenAPI)
Use this skill when the user asks to add API docs, Swagger, OpenAPI spec, or generate endpoint documentation.
Steps
-
Detect the API framework — check for Express, Fastify, Next.js API routes, Hono, Django REST Framework, FastAPI, etc.
-
For Node.js/Express — install
swagger-jsdocandswagger-ui-express:npm install swagger-jsdoc swagger-ui-express npm install -D @types/swagger-jsdoc @types/swagger-ui-expressCreate the OpenAPI spec from JSDoc annotations on route handlers: