fqih/.mycc-setup/api-docs
Claude Code and agent skill by fqih/.mycc-setup
- community
Checking that the SKILL.md file is still in the repository.
Use when generating API documentation — OpenAPI/Swagger auto-generation from code, MkDocs Material, Docusaurus, Mintlify, Postman/Insomnia export. Trigger on "openapi", "swagger", "api docs", "mkdocs", "docusaurus", "/api-docs".
Install
npx vskill@latest install fqih/.mycc-setup/api-docsSKILL.md
The same SKILL.md was published earlier as fqih/.mycc-setup/api-docs.
api-docs
Auto-generate API documentation from source code atau manual specification. Local-first, version-controlled.
Pendekatan
| Pendekatan | Tool | Best for | |
|---|---|---|---|
| Spec-first | OpenAPI YAML/JSON hand-written | Public API, contract dengan client | |
| Code-first (Python) | FastAPI → auto OpenAPI | FastAPI projects | |
| Code-first (Node) | swagger-jsdoc / tsoa | Express/Fastify | |
| Code-first (Go) | swag | Gin/Echo | |
| Static site | MkDocs Material, Docusaurus, Mintlify | Long-form + API reference | |
| Hosted | Stoplight, ReadMe, Mintlify cloud | Zero ops, $$ |
Default FastAPI: zero effort, OpenAPI auto-generated. Default Node: swagger-jsdoc inline JSDoc annotations. Default Go: swag dengan // @Summary annotations.
FastAPI auto-OpenAPI
FastAPI generates OpenAPI spec at /openapi.json by default. Plus Swagger UI di /docs, ReDoc di /redoc. Customization:
MkDocs Material setup
mkdocs.yml:
Serve locally:
Build + deploy:
mkdocstrings (auto-generate dari docstrings)
Di docs/api/users.md:
Auto-renders signature + Google-style docstrings sebagai markdown.
Docusaurus (React-based, JS-heavy)
Plus OpenAPI integration:
docusaurus.config.js:
Mintlify (hosted, paid, but best DX)
mint.json:
Auto-generates from OpenAPI + allows custom MDX pages.
Code-first: Node (swagger-jsdoc)
Code-first: Go (swag)
CI/CD: keep docs in sync
Versioning
API versions di spec + URL:
/api/v1/users/api/v2/users(breaking changes)
OpenAPI versions via info.version. Maintain changelog.md.
OpenAPI spec tips
✅ Use $ref untuk reusable components (User schema, Error response) ✅ Add example ke semua fields (Swagger UI tampilkan) ✅ Define error responses (400, 401, 404, 500) ✅ Security schemes: Bearer JWT, OAuth2, API key ✅ Pagination: cursor-based atau offset-based, document choice ✅ Document rate limits + quotas
Anti-patterns
❌ Hand-write OpenAPI untuk FastAPI (auto-generated lebih reliable) ❌ Docs repo terpisah dari code repo (drift inevitable) ❌ Skip error response docs (user bingung saat error) ❌ Publish docs tanpa versioning ❌ Inline JSDoc tanpa @openapi annotation (tidak ter-export) ❌ Hosting public docs untuk internal API (security leak)
Integration dengan audit-workflow
Audit dimension "docs drift" cek apakah README references match actual files. Untuk API docs, validasi:
- All endpoint di OpenAPI ter-implement di code
- All routes terdaftar punya description
- OpenAPI valid JSON/YAML
- Docs site builds tanpa error (mkdocs --strict)
Invokation
Auto-trigger:
- Edit FastAPI routes, Node route handlers, Go handlers
- Reference ke "openapi", "swagger", "api docs", "docs site"
- Slash command:
/api-docs,/gen-openapi
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/api-docs/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fqih/.mycc-setup/api-docs)