Automatically generates OpenAPI 3.0 specs and interactive Swagger UI docs by scanning your codebase for API endpoints. It uses the apimesh tool under the hood, which requires an OpenAI API key to analyze your code and detect frameworks like Express, FastAPI, Django, or Rails. The wrapper script handles the annoying parts of environment variable propagation so the key actually reaches the subprocess. Outputs swagger.json and a self-contained HTML file you can share. One catch: your API key gets saved locally in config.json, so make sure that's gitignored. Works well if you need docs fast and don't want to hand-write OpenAPI specs.
npx skills add https://github.com/qodex-ai/ai-agent-skills --skill generate-swagger-docs