Claude Code for documentation: OpenAPI, ADR, changelog
Install Engineering, write OpenAPI and Keep a Changelog notes, keep ADR and docs rules in memory.
Published here , updated · 8 sources · Resume reading
Documentation with Claude Code works when OpenAPI, the changelog, and ADRs stay in sync as one contract. Install the Engineering plugin, keep docs rules in CLAUDE.md memory, and treat the OpenAPI file as machine-readable so humans only edit release notes. [1] [2]
After this page you can install Engineering, treat OpenAPI as the API source of truth, Keep a Changelog notes honest, and capture an ADR with /architecture. Related: Claude Code for coding for review and hooks, Write AGENTS.md that agents read when several agents share one instruction file. Browse the Claude Code topic.
Install Engineering before you ask for docs
claude plugin marketplace add anthropics/knowledge-work-plugins
claude plugin install engineering@knowledge-work-pluginsYou should see the Engineering plugin available after install. Re-read the README on install day in case command names change. [1] [6]
Treat OpenAPI as the API source of truth
OpenAPI Specification v3.1.0 defines a language-agnostic interface description for HTTP APIs so humans and tools can discover capabilities without reading source or sniffing traffic. An OpenAPI document MUST contain at least one paths field, a components field, or a webhooks field. [2]
Point Claude at your openapi.yaml (or ask it to draft one from handlers you paste). Require every new endpoint to update that file in the same change as the code. Best practices say to tell Claude what it cannot see from the repo alone; paste auth schemes, error envelopes, and versioning rules that live only in someone's head. [5]
You should leave with a diff that touches the OpenAPI document and the handler together, not a prose-only API blurb.
Keep a Changelog instead of dumping git log
Keep a Changelog 1.1.0 exists so friends stop dumping git logs into changelogs. It keeps an Unreleased section at the top and groups entries under Added, Changed, Deprecated, Removed, Fixed, and Security. [3]
## [Unreleased]
### Added
- Document POST /v1/widgets in OpenAPI paths.
### Fixed
- Correct 404 response schema for GET /v1/widgets/{id}.Ask Claude to move Unreleased into a dated version section only when you cut a release. Refuse commit-subject dumps as the customer-facing note. [3]
Capture ADRs with /architecture
/architecture Should public docs ship as OpenAPI-first with generated SDKs?Per the Engineering README, /architecture returns a structured ADR with options, trade-offs, and a recommendation. Save the ADR next to the docs tree so the next session can find prior decisions through your knowledge base MCP if you connect one. [1]
Put house docs rules in memory, enforce the hard ones
Claude Code memory docs say each session starts with a fresh context window; CLAUDE.md (and optionally AGENTS.md) plus auto memory carry instructions across sessions. Keep docs house style short: where OpenAPI lives, changelog format, ADR path, and what never ships without a review. [4]
Best practices keep CLAUDE.md short, put team procedures in skills, give Claude a check to run, and enforce rules that cannot have exceptions with hooks or permission denials. For docs, a check can be "OpenAPI lint passes" or "CHANGELOG Unreleased has an entry for this PR". [5]
For day-to-day coding loops around the same plugin, continue on Claude Code for coding. [7]
You now have a docs loop: Engineering installed, OpenAPI as contract, Keep a Changelog for humans, ADR via /architecture, memory for style, checks for what must not slip.
Send this to the eng lead who wants Claude Code writing docs that stay reviewable.
Keep this guide
Filed under Claude Code, Dev tools
Questions about this guide
Which Engineering pieces cover docs work?
The README lists /architecture for ADR-format decisions and a documentation skill for READMEs, API docs, runbooks, and onboarding guides.
What must an OpenAPI 3.1 document include?
Per OpenAPI Specification v3.1.0, an OpenAPI document MUST contain at least one paths field, a components field, or a webhooks field.
How should changelog sections be labeled?
Keep a Changelog 1.1.0 uses Added, Changed, Deprecated, Removed, Fixed, and Security, plus an Unreleased section at the top.
Is CLAUDE.md enough to keep docs style fixed?
Memory docs treat CLAUDE.md as persistent context. Best practices still say put checks and non-negotiable rules in hooks or permission denials.
Sources
- Anthropic Engineering plugin README, accessed 2026-11-26raw.githubusercontent.com
- OpenAPI Specification v3.1.0, accessed 2026-11-26spec.openapis.org
- Keep a Changelog 1.1.0, accessed 2026-11-26keepachangelog.com
- Claude Code docs: Memory, accessed 2026-11-26code.claude.com
- Claude Code best practices, accessed 2026-11-26code.claude.com
- Claude Code docs: Plugins, accessed 2026-11-26code.claude.com
- Full Byte Developer: Claude Code for codingfullbytedeveloper.com
- Full Byte Developer: Write AGENTS.md that agents readfullbytedeveloper.com