ferroxlabs/wayland/api-documentation
Claude Code and agent skill by ferroxlabs/wayland
- community
Checking that the SKILL.md file is still in the repository.
Creates API reference documentation with endpoint descriptions, HTTP methods, parameters, request/response JSON examples, error codes, and authentication details. Use when the user needs to document a REST API, write endpoint references, or create developer-facing API docs. Do NOT use for user guides (use `user-guide`), tutorials (use `tutorial-writing`), or README files (use `readme-writing`).
Install
npx vskill@latest install ferroxlabs/wayland/api-documentationSKILL.md
The same SKILL.md was published earlier as ferroxlabs/wayland/api-documentation.
API Documentation
When to Use
- User wants to document a REST API or set of endpoints
- User asks for API reference documentation or endpoint descriptions
- User needs to write developer-facing docs with request/response examples
- User wants to create a structured API reference from code or specs
- User needs to document authentication, rate limits, or error codes for an API
- Do NOT use when the user wants a step-by-step tutorial for using the API (use
tutorial-writinginstead) - Do NOT use when the user wants a general user guide (use
user-guideinstead) - Do NOT use when the user wants a project README (use
readme-writinginstead) - Do NOT use when the user wants to design an API (that is API design, not documentation)
Process
- Collect API context. Ask the user for:
- API name and base URL pattern (e.g.,
/api/v2/) - Authentication method (API key, OAuth 2.0, Bearer token, none)
- Endpoints to document (method + path for each)
- Request parameters (path, query, header, body) for each endpoint
- Response structure (JSON schema or example payloads)
- Error codes and their meanings
- Rate limiting rules if applicable
- Versioning strategy (URL path, header, query param)
- Organize by resource, not by HTTP method. Group endpoints by the resource they act on:
- All
/usersendpoints together (GET list, GET single, POST create, PUT update, DELETE remove) - Within each resource, order by CRUD: Create (POST), Read (GET), Update (PUT/PATCH), Delete (DELETE)
- Place authentication and common parameters in a standalone section before individual endpoints
- Document each endpoint with the full contract. For every endpoint:
- HTTP method and path with path parameters highlighted
- One-line description of what the endpoint does (not what it "can" do)
- Parameters table: name, location (path/query/header/body), type, required/optional, description
- Request body example as formatted JSON with realistic data (not
"string"or"value") - Success response with status code and full JSON example
- Error responses with status codes, error body structure, and when each occurs
- Authentication requirements specific to this endpoint if they differ from the default
- Write error documentation that developers can act on. For each error:
- HTTP status code
- Error code (application-specific if applicable)
- Description of what triggered the error
- How to fix it -- the specific correction, not "check your request"
- Example error response body
- Add operational sections. Beyond endpoint references:
- Authentication section with complete setup steps and example headers
- Rate limiting section with limits, headers, and what happens when exceeded
- Pagination section with cursor or offset pattern and example navigation
- Versioning section explaining how to target specific API versions
- Common headers table (Content-Type, Accept, Authorization, custom headers)
- Validate completeness. Before finalizing:
- Every endpoint has at least one request example and one response example
- Every parameter has a type and description
- Every error code has a fix instruction
- Authentication flow is documented end-to-end
- No placeholder values remain (replace
{id}placeholders with realistic example values in examples)
Output Format
Authorization: Bearer [token]
{ "[field]": "[realistic value]", "[field]": [realistic value] }
{ "id": "[realistic-id]", "[field]": "[realistic value]", "created_at": "2024-01-15T09:30:00Z" }
{ "error": { "code": "[ERROR_CODE]", "message": "[Human-readable description]", "field": "[field that caused the error]" } }
{ "error": { "code": "RESOURCE_NOT_FOUND", "message": "[Resource] with ID [id] does not exist." } }
{ "data": [...], "pagination": { "next_cursor": "[opaque-cursor-string]", "has_more": true } }
Rules
- NEVER use placeholder values like
"string","value", or123in JSON examples -- use realistic data that demonstrates the field's actual content - NEVER document what an endpoint "can" do -- state what it does ("Creates a user" not "Can be used to create a user")
- NEVER omit error responses -- every endpoint must document at least 400, 401, and 404 responses where applicable
- ALWAYS show the full JSON body in examples, not truncated with
...or comments like "// more fields" - ALWAYS include the HTTP status code with every response example
- ALWAYS list parameters in a table with name, location, type, required flag, and description
- Group endpoints by resource, not by HTTP method -- developers think in resources
- Include realistic timestamps, UUIDs, and identifiers in all examples
- Document rate limits with exact numbers, not vague "limited" or "throttled" language
- Every error code must include a "Fix" column telling the developer exactly what to change
Edge Cases
- Endpoints with file uploads: Document the multipart/form-data content type, file size limits, accepted MIME types, and show a command-line example since JSON examples do not apply to file uploads.
- Webhooks: Document the webhook payload structure, delivery headers (signature, timestamp), retry policy, and expected response from the receiver. Include a signature verification example.
- Batch endpoints: Document the maximum batch size, partial failure behavior (does one failure fail the batch or return mixed results?), and the response structure for mixed success/failure.
- Deprecated endpoints: Mark with a deprecation notice at the top of the endpoint section, include the removal date, and link to the replacement endpoint with a migration example.
- Endpoints with polymorphic responses: Document each response variant with the discriminator field that determines which shape is returned. Show a complete example of each variant.
- Long-running operations: Document the polling pattern -- initial request returns a job ID, polling endpoint returns status, and final response includes the result or error.
Example
Input: "Document a user management API with CRUD endpoints. Base URL is /api/v1/. Uses Bearer token auth. Users have id, email, name, role, and created_at fields."
Output:
User Management API Reference
Base URL
[scheme]://[host]/api/v1
Authentication
All requests require a Bearer token in the Authorization header.
Request header:
Obtaining a token:
- Generate an API key from the Settings > API Keys page
- Exchange the API key for a Bearer token via
POST /api/v1/auth/token
Common Headers
| Header | Value | Required | Description | |
|---|---|---|---|---|
| Content-Type | application/json | Yes | Request body format | |
| Authorization | Bearer {token} | Yes | Authentication token | |
| Accept | application/json | No | Response format preference |
Users
POST /api/v1/users
Creates a new user account.
Parameters:
| Name | In | Type | Required | Description | |
|---|---|---|---|---|---|
| body | string | Yes | User email address. Must be unique. | ||
| name | body | string | Yes | Full name. 1-200 characters. | |
| role | body | string | No | User role. One of: admin, editor, viewer. Default: viewer. |
Request example:
Response: 201 Created
Response: 400 Bad Request
Response: 409 Conflict
GET /api/v1/users
Returns a paginated list of all users.
Parameters:
| Name | In | Type | Required | Description | |
|---|---|---|---|---|---|
| cursor | query | string | No | Pagination cursor from previous response | |
| limit | query | integer | No | Results per page. 1-100. Default: 25. | |
| role | query | string | No | Filter by role: admin, editor, viewer |
Request example:
Response: 200 OK
GET /api/v1/users/{id}
Returns a single user by ID.
Parameters:
| Name | In | Type | Required | Description | |
|---|---|---|---|---|---|
| id | path | string | Yes | User ID (format: usr_ prefix + 12 alphanumeric characters) |
Response: 200 OK
Response: 404 Not Found
PUT /api/v1/users/{id}
Updates an existing user. Sends the full user object -- omitted fields are set to their defaults.
This is the start of the file. Read the full SKILL.md on GitHub.
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 repositoryCheckingsrc/process/resources/skills-library/bodies/skills/writing/api-documentation/SKILL.md
Popularity
- Repository stars
- 608
- Repository forks
- 113
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (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/ferroxlabs/wayland/api-documentation)