API Documentation Patterns

Document OpenAPI specifications with parameter, request, response, and schema guidelines.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/HermeticOrmus/LibreCopy-Claude-Code --skill api-documentation-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: API Documentation Patterns
Source: https://github.com/HermeticOrmus/LibreCopy-Claude-Code/tree/main/plugins/api-documentation/skills/api-doc-patterns
Command: npx skills add https://github.com/HermeticOrmus/LibreCopy-Claude-Code --skill api-documentation-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides best practices and anti-patterns for documenting APIs, ensuring clarity, usability, and maintainability for developers consuming your API.

Core Features & Use Cases

  • Standardized Documentation: Learn how to document parameters, request bodies, responses, and schemas effectively.
  • Improve Discoverability: Understand the difference between summary and description for better navigation.
  • Use Case: A developer is writing an OpenAPI specification for a new microservice and needs to ensure their documentation is clear, comprehensive, and follows industry best practices. They consult this Skill for guidance on structuring their YAML.

Quick Start

Review the API Documentation Patterns skill to learn how to document API parameters effectively.

Frequently Asked Questions about API Documentation Patterns

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

FAQPage Schema
What are the best practices for writing OpenAPI specifications?

Best practices for OpenAPI specifications include providing clear parameter documentation, complete response coverage, accurate request body examples, and utilizing x-codeSamples to improve developer experience and API discoverability.

How do I document API parameters and request bodies effectively?

To document API parameters effectively, you should distinguish between summary and description for navigation, provide real request body examples, and annotate string formats clearly rather than relying on vague descriptions or fake data.

What are common anti-patterns in API documentation?

Common API documentation anti-patterns include writing vague descriptions, omitting discriminators, using fake examples, and inlining complex schemas, all of which degrade usability and maintainability for developers consuming your API.

How do I improve developer experience with API documentation?

You improve developer experience by adhering to OpenAPI standards, structuring YAML with clear summaries, providing comprehensive response coverage, and adding x-codeSamples to ensure your API documentation is clear and easily navigable.

When should I use x-codeSamples in API specifications?

You should use x-codeSamples in API specifications to provide concrete, language-specific usage examples, enhancing clarity and completeness while avoiding the anti-pattern of providing fake or missing examples for your API endpoints.