api-documentation
OpenAPI/Swagger specification standards and API documentation best practices
What this skill does
# API Documentation
## OpenAPI/Swagger Specification Standards
### OpenAPI 3.0 Specification
- **OpenAPI Object**: Root object containing API metadata and paths
- **Info Object**: API title, version, description, and contact information
- **Paths Object**: Available endpoints and operations
- **Components Object**: Reusable schemas, parameters, responses, and examples
- **Security Object**: Authentication and authorization schemes
- **Servers Object**: API server URLs and configurations
### Key Elements
- **Paths**: Define endpoints with HTTP methods (GET, POST, PUT, DELETE, etc.)
- **Parameters**: Query, path, header, and cookie parameters with types and constraints
- **Request Body**: Payload schemas with content types (application/json, etc.)
- **Responses**: Status codes, descriptions, and response schemas
- **Examples**: Request and response examples for each operation
- **Tags**: Group operations for organization and navigation
## REST API Documentation Patterns
### Endpoint Documentation
- **URL Pattern**: Clear, RESTful URL structure (e.g., `/api/v1/users/{id}`)
- **HTTP Method**: Appropriate method for the operation (GET, POST, PUT, PATCH, DELETE)
- **Description**: Clear explanation of what the endpoint does
- **Parameters**: All parameters with types, required/optional status, and constraints
- **Request Body**: Schema and examples for POST/PUT/PATCH operations
- **Responses**: All possible responses with status codes, schemas, and examples
- **Authentication**: Required authentication method and token format
### Response Documentation
- **Success Responses**: Document successful responses with examples
- **Error Responses**: Document all error responses with codes and messages
- **Status Codes**: Use appropriate HTTP status codes (200, 201, 400, 401, 404, 500, etc.)
- **Response Schema**: JSON schema with field types, descriptions, and constraints
- **Response Examples**: Multiple examples showing different scenarios
### Pagination
- **Pagination Parameters**: Document page size, page number, offset, and limit
- **Response Metadata**: Include total count, page count, and next/previous links
- **Pagination Examples**: Show how to navigate through pages
- **Best Practices**: Recommend default page sizes and maximum limits
## GraphQL Documentation Practices
### Schema Documentation
- **Types**: Document all object types, input types, and enums
- **Fields**: Document each field with type, arguments, and description
- **Queries and Mutations**: Document all available operations with parameters and return types
- **Subscriptions**: Document real-time subscriptions with events and payloads
- **Directives**: Document custom directives and their usage
### Query Documentation
- **Operation Name**: Clear, descriptive operation names
- **Arguments**: All arguments with types, required/optional status, and descriptions
- **Return Type**: Document the return type structure
- **Examples**: Provide query examples with variables
- **Error Handling**: Document error responses and error types
## API Reference Documentation Structure
### Organization
- **Overview**: High-level introduction to the API
- **Authentication**: How to authenticate requests
- **Quick Start**: Simple example to get started
- **Endpoints**: Complete reference of all endpoints
- **Data Models**: Common data structures and schemas
- **Error Codes**: List of error codes and their meanings
- **Rate Limits**: Rate limiting policies and best practices
- **Changelog**: Version history and changes
### Endpoint Reference
- **Grouping**: Group endpoints by resource or functionality
- **Navigation**: Clear navigation structure with breadcrumbs
- **Search**: Searchable endpoint names and descriptions
- **Filtering**: Filter by HTTP method, tag, or resource
- **Try It Out**: Interactive testing capability
## Interactive API Documentation Tools
### Swagger UI
- **Features**: Interactive API exploration, "Try it out" functionality
- **Customization**: Custom branding, themes, and plugins
- **Deployment**: Can be deployed as static files or embedded
- **Authentication**: Support for various auth methods (API key, OAuth, etc.)
- **Validation**: Real-time request/response validation
### Redoc
- **Features**: Beautiful, responsive documentation from OpenAPI specs
- **Three-Panel Layout**: Navigation, content, and code panels
- **Search**: Full-text search across documentation
- **Mobile Friendly**: Responsive design for mobile devices
- **Code Samples**: Automatic code sample generation
### Stoplight
- **Features**: API design, documentation, and testing platform
- **Visual Editor**: Visual API designer with drag-and-drop
- **Mock Server**: Automatic mock server generation
- **Testing**: Built-in API testing and validation
- **Collaboration**: Team collaboration features
## Code Examples and SDK Documentation
### Language Examples
- **Multiple Languages**: Provide examples in JavaScript, Python, Java, cURL, etc.
- **Complete Examples**: Full, runnable code samples
- **Error Handling**: Include error handling in examples
- **Comments**: Explain what the code does
- **Best Practices**: Demonstrate best practices in examples
### SDK Documentation
- **Installation**: How to install and configure the SDK
- **Initialization**: How to initialize the client
- **Authentication**: How to authenticate with the SDK
- **Methods**: Document all SDK methods with parameters and return types
- **Examples**: Provide usage examples for common operations
- **Error Handling**: How to handle errors and exceptions
### cURL Examples
- **Complete Commands**: Full cURL commands with all options
- **Headers**: Include all required headers
- **Authentication**: Show authentication in cURL format
- **Request Body**: Include request body for POST/PUT operations
- **Comments**: Add comments to explain options
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.