Skip to main content
skill CX Codex

api-reference-documentation · secondsky — Claude Code skill: OpenAPI docs

Turns an OpenAPI spec into a developer-facing API reference: endpoints, auth, request and response examples. Useful for SDK docs and developer portals.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add secondsky/claude-skills --skill api-reference-documentation -a claude-code
Open on GitHub

What api-reference-documentation does

The skill walks the agent through an OpenAPI 3.0 spec: the info block with contact details, a servers list for production and staging, a bearerAuth security scheme with JWT format, paths with parameters and responses, and components such as Product and ProductList. A YAML skeleton is included, along with a checklist covering every endpoint with examples, authentication, error responses, rate limits, pagination, webhooks, and SDK samples in several languages.

On practice, it advises sticking to OpenAPI 3.0 or newer, adding request and response examples, documenting parameters and headers, keeping versioned docs, and writing migration guides for breaking changes. For interactive browsing it names Swagger Editor and Swagger UI, Redoc, Postman Documentation, and Stoplight. Pick whichever fits your stack; nothing is pinned.

Install runs through npx skills add for Claude, Codex, Cursor, Gemini CLI, and OpenCode, while GitHub Copilot uses gh skill install. The skill file lands in the platform directory, for example ~/.claude/skills/api-reference-documentation/SKILL.md. If your project already has its own endpoint naming scheme, the skeleton spec will not match it, so check the paths before generating.

What it helps with

  • document a REST API from an OpenAPI 3.0 spec
  • add request and response examples to every endpoint
  • explain bearer token authentication
  • build a checklist for errors, rate limits and pagination
  • write a migration guide for breaking changes

Example prompts for the agent

  • Generate an OpenAPI 3.0 spec for a products and orders API with production and staging servers
  • Document the /products endpoint with limit and category parameters and a sample response
  • Run my API against the documentation checklist and tell me what is missing

How to install api-reference-documentation

1Skills CLI (Vercel)

npx skills add secondsky/claude-skills --skill api-reference-documentation -a claude-code

2Manually: put the files in place

~/.claude/skills/api-reference-documentation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/api-reference-documentation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about api-reference-documentation

How do I install api-reference-documentation in Claude?

Run npx skills add secondsky/claude-skills --skill api-reference-documentation -a claude-code. The skill ends up at ~/.claude/skills/api-reference-documentation/SKILL.md.

What does api-reference-documentation do?

It guides the agent through writing a REST API reference: endpoints, authentication, request and response examples, and data schemas. It builds on an OpenAPI 3.0 spec.

Which tools does the skill work with?

It names Swagger Editor and Swagger UI, Redoc, Postman Documentation, and Stoplight. No single tool is required.

Source text

SKILL.md · MIT
---
name: api-reference-documentation
description: Creates professional API documentation using OpenAPI specifications with endpoints, authentication, and interactive examples. Use when documenting REST APIs, creating SDK references, or building developer portals.
license: MIT
---

# API Reference Documentation

Create comprehensive API documentation for developer integration.

## OpenAPI 3.0 Specification

```yaml
openapi: 3.0.3
info:
  title: E-Commerce API
  version: 1.0.0
  description: API for managing products and orders
  contact:
    email: [email protected]

servers:
  - url: https://api.example.com/v1
    description: Production
  - url: https://staging-api.example.com/v1
    description: Staging

security:
  - bearerAuth: []

paths:
  /products:
    get:
      summary: List products
      tags: [Products]
      parameters:
        - name: limit
          in: query
          schema: { type: integer, default: 20 }
        - name: category
          in: query
          schema: { type: string }
      responses:
        '200':
          description: Product list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductList'

components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

  schemas:
    Product:
      type: object
      required: [id, name, price]
      properties:
        id: { type: string, format: uuid }
        name: { type: string, maxLength: 200 }
        price: { type: number, minimum: 0 }
        description: { type: string }
```

## Documentation Checklist

- [ ] All endpoints documented with examples
- [ ] Authentication methods explained
- [ ] Error responses specified
- [ ] Rate limits documented
- [ ] Pagination explained
- [ ] Webhooks documented (if applicable)
- [ ] SDK examples in multiple languages

## Best Practices

- Use OpenAPI 3.0+ specification
- Include request/response examples
- Document all parameters and headers
- Provide authentication examples
- Enable interactive API exploration
- Maintain version documentation
- Include migration guides for breaking changes

## Tools

- Swagger Editor / Swagger UI
- Redoc
- Postman Documentation
- Stoplight

© secondsky · MIT · secondsky/claude-skills

Similar skills

Everything for Writing and docs →

api-reference-documentation by other authors comes first.

From the same set89

bun-test-basics A skill that feeds your agent the bun:test syntax: assertions, describe/it, skip/only/each modifiers and how to run the suite. CX Codex +1 458installs threejs A skill with reference files and working examples for Three.js: scenes, materials, lighting, shaders, GLTF loading. Useful when you build 3D in the browser. CX Codex +1 460installs ml-model-training A skill that walks the agent through the full model training cycle: data prep, splitting, training and evaluation. Useful when you need a classifier or regressor without skipping steps. CX Codex +1 457installs payment-gateway-integration A skill for wiring Stripe, PayPal or Square into your app: payment intents, subscriptions, webhooks and refunds. Useful when you build checkout or billing. CX Codex +1 454installs csrf-protection A skill that walks your agent through CSRF protection: synchronizer tokens, double-submit cookies and SameSite attributes. CX Codex +1 453installs bun-hono-integration A skill that tells the agent how to build Hono APIs on Bun: routes, middleware, Zod validation, RPC client. Useful when your project already runs on Bun. CX Codex +1 452installs interaction-design A skill for designing interface feedback: loading states, errors, empty screens, animation timing and accessibility. Useful when you need to plan how UI behaves, not just how it looks. CX Codex +1 441installs api-error-handling The skill sets a standard error response shape, an ApiError class and a circuit breaker. Useful once your API hits production. CX Codex +1 440installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor