mcpField
A
api-reference-documentation

api-reference-documentation

github.com/aj-geddesDevelopment373496 installsUpdated 34w ago
Repository

About api-reference-documentation

A skill for creating API reference documentation for developers, covering endpoint details, authentication, examples, and interactive documentation. It includes guidance for REST, GraphQL, OpenAPI, SDKs, and related API topics.

Key features

  1. 01OpenAPI specification guidance
  2. 02Endpoint and parameter documentation
  3. 03Authentication and error examples
  4. 04SDK and client library docs
  5. 05Webhook and versioning guides

Use cases

  1. 01Documenting a REST API
  2. 02Writing GraphQL API references
  3. 03Preparing authentication and rate-limit guides
  4. 04Documenting webhooks and API versions

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill api-reference-documentation

After installing, type/api-reference-documentationin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
list-products.md
openapi-specification-example.md
scripts/
validate-api.sh
templates/
api-scaffold.yaml

Details

From the project README

API Reference Documentation

Table of Contents

Overview

Generate professional API documentation that developers can use to integrate with your API, including endpoint specifications, authentication, request/response examples, and interactive documentation.

When to Use

  • Documenting REST APIs
  • Creating OpenAPI/Swagger specifications
  • GraphQL API documentation
  • SDK and client library docs
  • API authentication guides
  • Rate limiting documentation
  • Webhook documentation
  • API versioning guides

Quick Start

Minimal working example:

openapi: 3.0.3
info:
  title: E-Commerce API
  description: |
    Complete API for managing e-commerce operations including products,
    orders, customers, and payments.

    ## Authentication
    All endpoints require Bearer token authentication. Include your API key
    in the Authorization header: `Authorization: Bearer YOUR_API_KEY`

    ## Rate Limiting
    - 1000 requests per hour for authenticated users
    - 100 requests per hour for unauthenticated requests

    ## Pagination
    List endpoints return paginated results with `page` and `limit` parameters.
  version: 2.0.0
  contact:
    name: API Support
    email: [email protected]
    url: https://example.com/support
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
OpenAPI Specification Exampleopenapi: 3.0.3
List ProductsList Products

Best Practices

✅ DO
  • Use OpenAPI 3.0+ specification
  • Include request/response examples for every endpoint
  • Document all query parameters and headers
  • Provide authentication examples
  • Include error response formats
  • Document rate limits and pagination
  • Use consistent naming conventions
  • Include SDK examples in multiple languages
  • Document webhook payloads
  • Provide interactive API explorer (Swagger UI)
  • Version your API documentation
  • Include migration guides for breaking changes
❌ DON'T
  • Skip error response documentation
  • Forget to document authentication
  • Use inconsistent terminology
  • Leave endpoints undocumented
  • Ignore deprecation notices
  • Skip versioning information

Comments

Markdown supported