# Claude Code for documentation: OpenAPI, ADR, changelog

> Install Engineering, write OpenAPI and Keep a Changelog notes, keep ADR and docs rules in memory.

Source: https://fullbytedeveloper.com/blog/claude-code-for-documentation
Published here: 2026-11-26, updated 2026-11-26

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](/blog/claude-code-for-coding) for review and hooks, [Write AGENTS.md that agents read](/blog/write-agents-md-that-agents-read) when several agents share one instruction file. Browse the [Claude Code topic](https://fullbytedeveloper.com/blog/topic/claude-code).

## Install Engineering before you ask for docs

```bash
claude plugin marketplace add anthropics/knowledge-work-plugins
claude plugin install engineering@knowledge-work-plugins
```

You 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]

```md title="CHANGELOG.md"
## [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

```text
/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](/blog/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.

## Sources

1. [Anthropic Engineering plugin README, accessed 2026-11-26](https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/engineering/README.md)
2. [OpenAPI Specification v3.1.0, accessed 2026-11-26](https://spec.openapis.org/oas/v3.1.0)
3. [Keep a Changelog 1.1.0, accessed 2026-11-26](https://keepachangelog.com/en/1.1.0/)
4. [Claude Code docs: Memory, accessed 2026-11-26](https://code.claude.com/docs/en/memory)
5. [Claude Code best practices, accessed 2026-11-26](https://code.claude.com/docs/en/best-practices)
6. [Claude Code docs: Plugins, accessed 2026-11-26](https://code.claude.com/docs/en/plugins)
7. [Full Byte Developer: Claude Code for coding](https://fullbytedeveloper.com/blog/claude-code-for-coding)
8. [Full Byte Developer: Write AGENTS.md that agents read](https://fullbytedeveloper.com/blog/write-agents-md-that-agents-read)
