Skip to main content
skill CX Codex

api-documentation-writer — Claude Code skill: what it does & install

Generates developer documentation, OpenAPI specs, and code samples for REST, GraphQL, and gRPC APIs. It structures endpoints, error formats, and rate limits.

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

What api-documentation-writer does

This skill creates API reference guides and OpenAPI specifications directly from your project details. It covers REST, GraphQL, WebSocket, and gRPC architectures. The workflow starts by identifying authentication schemes like JWT or OAuth, base URLs, and route endpoints.

Three reference guides shape the output. The file references/documentation-structure.md organizes sections by prioritizing frequent operations. Markdown layouts follow references/output-template.md. Before output delivery, results are verified against the checklist in references/best-practices.md.

Placeholders are strictly replaced with realistic payload samples for requests and responses. The guide requires documenting standard error bodies, HTTP 429 conditions, and rate limit headers. Every documented endpoint includes code snippets in curl, JavaScript, and Python.

What it helps with

  • Generate OpenAPI and Swagger specifications from endpoint data
  • Draft REST documentation with request and response payloads
  • Document GraphQL schemas with queries, mutations, and subscriptions
  • Explain authentication methods using API keys, OAuth, or JWT
  • Structure error handling guides covering rate limits and 429 status codes

Example prompts for the agent

  • Write API documentation for my REST endpoints with curl and Python samples
  • Create an OpenAPI spec and authentication guide for this service
  • Document this GraphQL schema including mutations and error responses

How to install api-documentation-writer

1Skills CLI (Vercel)

npx skills add OneWave-AI/claude-skills --skill api-documentation-writer -a claude-code

2Manually: put the files in place

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

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

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

Questions about api-documentation-writer

How do I install api-documentation-writer in Claude Code?

Run npx skills add OneWave-AI/claude-skills --skill api-documentation-writer -a claude-code. The file is stored at ~/.claude/skills/api-documentation-writer/SKILL.md.

What API architectures does this skill support?

It handles REST, GraphQL, WebSocket, and gRPC services. Output ranges from Markdown guides and OpenAPI specs to GraphQL schema references.

Which programming languages are used for code samples?

The workflow creates working examples in curl, JavaScript, and Python. It also links available SDKs, Postman collections, or OpenAPI files.

Source text

SKILL.md · MIT
---
name: api-documentation-writer
description: Generate comprehensive API documentation including endpoint descriptions, request/response examples, authentication guides, error codes, and SDKs. Creates OpenAPI/Swagger specs, REST API docs, and developer-friendly reference materials. Use when users need to document APIs, create technical references, or write developer documentation.
---

# API Documentation Writer

Generate comprehensive, developer-friendly API documentation.

## Contents
- `references/documentation-structure.md` — every section to cover (overview, auth, endpoints, errors, rate limits, SDKs, webhooks, GraphQL)
- `references/output-template.md` — canonical REST Markdown template with worked examples
- `references/best-practices.md` — best practices, developer-experience tips, and the output quality checklist

## Workflow

1. Gather API information. Determine the API type (REST, GraphQL, WebSocket, gRPC), authentication method (API key, OAuth, JWT), base URL and versioning strategy, available endpoints and their purposes, request/response formats, and any rate limiting or usage restrictions.

2. Build the documentation structure. Cover every section in `references/documentation-structure.md`, ordering the most common operations first.

3. Generate the output. Follow `references/output-template.md` for REST APIs; adapt to schema, query, mutation, and subscription examples for GraphQL. Replace all placeholders with realistic example data and show both request and response.

4. Document errors and rate limits. Include the standard error response format, common error codes, troubleshooting guidance, limits, headers to check, and how to handle `429` responses.

5. Provide code samples in multiple languages (curl, JavaScript, Python) and link SDKs, Postman collections, or OpenAPI specs where available.

6. Verify quality against the checklist in `references/best-practices.md` before delivering.

## Example Triggers
- "Write API documentation for my REST endpoints"
- "Create OpenAPI spec for my API"
- "Document this GraphQL schema"
- "Generate developer docs for my webhook API"
- "Write authentication guide for API"

© OneWave-AI · MIT · OneWave-AI/claude-skills

Similar skills

All skills for Backend and APIs →

From the same set95

fantasy-lineup-optimizer Analyzes matchups, injuries, weather, and Vegas odds for fantasy sports. It recommends start or sit decisions for NFL, NBA, MLB, NHL, and soccer. CX Codex +1 395installs animate Creates animated videos and motion graphics from natural language prompts. Builds a standalone Vite, React, and Framer Motion project that plays scenes in the browser. CX Codex +1 394installs game-strategy-simulator Simulates sports match scenarios and evaluates risk versus reward. It helps coaches and analysts plan plays, clock management, and player rotations. CX Codex +1 385installs social-selling-content-generator Creates a 30-day LinkedIn calendar and engagement guide tailored to B2B sellers. Positions you as an authority and draws leads without pitching in the feed. CX Codex +1 380installs landing-page-optimizer A skill that walks a landing page through six steps: audit, layout, CTAs, speed, SEO and a queued A/B test list. Useful when conversions dip and you don't know where to start. CX Codex +1 361installs sales-methodology-implementer Turns a chosen sales methodology into discovery questions, deal scoring and a rep training plan. Useful when everyone qualifies deals differently. CX Codex +1 362installs responsive-layout-builder Equips Claude Code and other AI assistants with mobile-first layout patterns, Tailwind breakpoints, CSS Grid, and container queries. CX Codex +1 354installs objection-pattern-detector This skill scans notes from lost sales deals to uncover repeating buyer objections. It turns successful deal records into ready objection-handling playbooks. CX Codex +1 352installs

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