authoring-api-reference

Write consumer-facing API reference documentation derived from an upstream api-spec contract.

1|1|Updated May 24, 2026
One-click install
npx skills add https://github.com/bm629/agent-skills --skill authoring-api-reference-bm629
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: authoring-api-reference
Source: https://github.com/bm629/agent-skills/tree/main/skills/authoring-api-reference
Command: npx skills add https://github.com/bm629/agent-skills --skill authoring-api-reference-bm629

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing API reference documentation by hand often produces docs that drift from the actual API contract, skip error cases, or leave developers unable to make a first successful call. This Skill guides the authoring of a published, consumer-facing API reference where every endpoint, field, and error traces back to the upstream api-spec contract, so a client developer can authenticate and integrate every operation from the reference alone. ## Core Features & Use Cases - Contract-derived coverage: Derives every endpoint, parameter, field type, error code, event, and auth scheme from the handed-in api-spec (OpenAPI, AsyncAPI, GraphQL SDL, or proto), never fabricating missing details. - Per-section authoring method: Covers getting-started, authentication flows, per-endpoint worked request/response examples, errors (RFC 9457 Problem Details), rate limits, pagination, webhooks, versioning, and deprecation. - Generation-adaptive mode: Adapts when the endpoint catalog is auto-generated from OpenAPI, shifting effort to onboarding narrative, example quality, and drift checking. - Amendment re-sync: Re-syncs an existing reference when the contract changes, handling deprecation-to-sunset lifecycles, stale sample re-checks, and doc versioning. - Use Case: Given an OpenAPI spec for a payments API, produce a complete developer reference with a copy-paste quickstart, OAuth flow walkthrough, worked examples per endpoint, and an error-code table. ## Quick Start Use authoring-api-reference to turn this OpenAPI spec into a consumer-facing API reference with a getting-started quickstart and worked examples for every endpoint.

Frequently Asked Questions about authoring-api-reference

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

FAQPage Schema
How do I write API reference documentation from an OpenAPI spec?

Derive every endpoint, parameter, field type, and error directly from the OpenAPI contract, then add a getting-started quickstart, an authentication walkthrough, and worked request/response examples per operation. Never invent endpoints or fields the contract does not declare.

What should a good API reference include for each endpoint?

Each endpoint needs the method and path, a purpose line, typed parameters marked required or optional, a worked request example, a worked success response, at least one failure response, and the error status codes it returns. A block showing only the 200 response is incomplete.

Should I hand-write API docs or generate them from OpenAPI?

If the project auto-generates the endpoint catalog with tools like Redocly, Swagger UI, or Mintlify, do not re-type it since duplicates drift immediately. Focus human effort on the getting-started narrative, example quality, and a drift check over the generated output.

How do I document API errors and rate limits?

Document one consistent error shape, preferably RFC 9457 Problem Details, with a machine-readable code distinct from the HTTP status plus a status-code table. For rate limits, state the limit, the 429 signal, Retry-After, exponential backoff with jitter, and idempotency keys for safe retries.

How do I update API documentation when the spec changes?

Scope the change to affected endpoints, re-sync only those blocks against the changed contract, and re-check every worked example the change touches. Mark removed endpoints deprecated with a sunset date and migration path rather than silently deleting them, then bump the doc version and amend log.

When should I not use this API reference authoring approach?

Do not use it to write the engineering wire contract itself, which is the upstream api-spec's job, or end-user product guides and SDK tutorials, which target a different audience. It also does not cover rendered docs-site concerns like search, interactive try-it consoles, or accessibility.