javierhbr/agnostic-agent-loop/api-docs
Claude Code and agent skill by javierhbr/agnostic-agent-loop
- community
Checking that the SKILL.md file is still in the repository.
Generate comprehensive API documentation for REST, GraphQL, and WebSocket APIs
Install
npx vskill@latest install javierhbr/agnostic-agent-loop/api-docsSKILL.md
The same SKILL.md was published earlier as javierhbr/agnostic-agent-loop/api-docs.
skill:api-docs
Does exactly this
Generate user-friendly, production-ready documentation for any API type — REST, GraphQL, or WebSocket — covering endpoints, authentication, errors, and working code examples in multiple languages.
When to use
- Documenting a new API for the first time
- Updating existing API documentation after changes
- API lacks clear or complete documentation
- Onboarding new developers to your API
- Preparing documentation for external or public consumers
- Creating an OpenAPI/Swagger specification
Steps — in order, no skipping
- Analyze — Scan the codebase for routes, HTTP methods, parameters, response shapes, auth patterns, and error handling conventions.
- Generate — Produce per-endpoint docs: method + URL, auth requirements, request schema, response schema, all error codes.
- Add — Write multi-language code examples (cURL, JavaScript, Python) for every endpoint.
- Document — Compile error handling section: all codes, message formats, troubleshooting steps, and common scenarios.
- Create — Produce deliverables: Postman collection, OpenAPI/Swagger YAML, and interactive examples where applicable.
Output
A complete documentation set:
- Per-endpoint reference pages (method, auth, request/response schema, error codes, code examples)
- Authentication guide (token acquisition, usage, refresh flow)
- Error code reference with troubleshooting
- OpenAPI/Swagger YAML snippet
- Postman collection JSON
Done when
- Every endpoint has method, auth requirement, full request/response schema documented
- At least cURL + one language example exists per endpoint
- All error codes listed with descriptions and example payloads
- Authentication setup steps are complete and testable
- OpenAPI snippet or Postman collection is included
Best practices
Do: Be consistent across all endpoints — same format, same depth. Do: Include examples with realistic data, not placeholder "foo"/"bar" values. Do: Document every error code and what it means for the caller. Do: Version your API paths (/api/v1/) and note it in the introduction. Do: Test every code example before including it. Do: Add rate limit details and pagination patterns where they apply. Do: Link related endpoints so consumers can discover adjacent functionality.
Don't: Skip error cases — users need to know what can go wrong. Don't: Use vague descriptions like "Gets data" — be specific. Don't: Let documentation drift from code — regenerate or review on every API change. Don't: Omit response headers that carry semantic meaning.
Recommended documentation structure
- Introduction — purpose, base URL, API version, support contact
- Authentication — how to authenticate, token lifecycle, security notes
- Quick Start — minimal working example, common use-case walkthrough
- Endpoints — organized by resource, full details per endpoint
- Data Models — schema definitions, field types, validation rules
- Error Handling — error code reference, response format, troubleshooting
- Rate Limiting — limits, relevant headers, handling 429 responses
- Changelog — version history, breaking changes, deprecation notices
- SDKs and Tools — client libraries, Postman collection, OpenAPI spec
If you need more detail
→ resources/api-docs-examples.md — Full examples (REST, GraphQL, auth flow), expanded best practices, section body copy, common pitfalls, OpenAPI snippet, Postman JSON
Related skills
@doc-coauthoring— collaborative documentation writing@copywriting— clear, user-friendly endpoint descriptions@test-driven-development— ensuring API behavior matches documented contracts
External resources
- https://swagger.io/specification/
- https://restfulapi.net/
- https://graphql.org/learn/
- https://www.apiguide.com/
- https://learning.postman.com/docs/
Security
- Security scanPassed, 90 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 repositoryCheckinginternal/skills/packs/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/javierhbr/agnostic-agent-loop/api-docs)