Skip to content
Back to skills

Api Doc Writing

ASecurity

Write or improve API documentation from code, specs, schemas, or examples. Use when Codex is asked to document endpoints, SDK methods, request and response shapes, auth, errors, rate limits, examples, or OpenAPI-style contracts.

  • 30 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 8, 2026
ai-agentsapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill api-doc-writing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Doc Writing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Doc Writing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-api-doc-writing/badge)](https://www.skillsdirectory.com/skills/majiayu000-api-doc-writing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-doc-writing
description: Write or improve API documentation from code, specs, schemas, or examples. Use when Codex is asked to document endpoints, SDK methods, request and response shapes, auth, errors, rate limits, examples, or OpenAPI-style contracts.
license: MIT
---

# API Doc Writing

## Core Workflow

1. Identify the API audience, surface area, source of truth, auth model, and
   version.
2. Read code, specs, tests, schemas, or examples before documenting behavior.
3. Document each operation with purpose, inputs, outputs, auth, errors, limits,
   side effects, and examples.
4. Separate stable contract from implementation detail.
5. Flag unknown behavior, undocumented errors, missing examples, and version
   mismatches.
6. Include validation or review steps for generated docs.

## Safety Rules

- Do not invent endpoint behavior, parameters, status codes, auth scopes, rate
  limits, or guarantees.
- Do not expose secrets, internal hosts, private tokens, or customer data in
  examples.
- Verify platform or third-party API facts from current official docs when the
  facts may have changed.

## Deliverable Shape

For API docs, provide:

- API overview and version
- Auth and permission notes
- Operation reference
- Request and response examples
- Error behavior
- Side effects and idempotency
- Validation or review notes

## References

- Read `references/api-doc-writing-checklist.md` when writing or reviewing API
  documentation.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.