documentation-api-reference

Generate contract-aligned API reference documentation with endpoints, schemas, and error codes.

7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill documentation-api-reference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: documentation-api-reference
Source: https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/documentation-api-reference
Command: npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill documentation-api-reference

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This skill helps teams generate contract-aligned API reference documentation so clients can integrate without reverse engineering and guesswork.

Core Features & Use Cases

  • Generate operation-level API references that mirror contract semantics, including endpoints, request/response schemas, and error behavior.
  • Validate alignment to the actual API contract and maintain versioned migration notes and examples.
  • Use Case: When API contracts change, automatically refresh docs to reflect new behavior and usage.

Quick Start

Review the current API contract changes and generate a complete, client-ready API reference using the provided templates.

Frequently Asked Questions about documentation-api-reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate API reference documentation from an API contract?

Generate API reference documentation by processing contract changes to output operation-level endpoint references, request/response schemas, error semantics, and migration notes using provided templates and quality gates.

What is contract-aligned API documentation and when do I need it?

Contract-aligned API documentation mirrors exact contract semantics, ensuring clients integrate without reverse engineering. You need it when API contracts change and client developers require updated endpoint references and usage examples.

How do I maintain API documentation versioning and migration notes?

Maintain API documentation versioning by validating alignment to the actual API contract and refreshing docs to automatically reflect new behavior, including versioned migration notes and updated usage examples.

Can I validate API reference alignment against the actual contract?

Yes, you validate API reference alignment against the actual contract by applying quality gates that check endpoint references, request/response schemas, and error behavior for consistency before generating client-ready documentation.

Does this API documentation approach handle error codes and response schemas?

Yes, this approach handles error codes and response schemas by documenting error behavior and semantics directly from the contract, ensuring client developers understand endpoint error responses and request schemas.

What is the best way to document API endpoints for client developers?

The best way to document API endpoints for client developers is generating contract-aligned references that include endpoint paths, request/response schemas, error semantics, and usage examples without guesswork or reverse engineering.