AGENT
Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing status codes, pagination,…
Diátaxis splits documentation into four modes along two axes: **practical vs theoretical** (doing vs knowing) and **study vs work** (acquiring skill vs applying it). Each mode answers a different reader question. Mixing them is the single most common documentation failure.
$ npx -y skills add vanara-agents/skills --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Diátaxis splits documentation into four modes along two axes: **practical vs theoretical** (doing vs knowing) and **study vs work** (acquiring skill vs applying it). Each mode answers a different reader question. Mixing them is the single most common documentation failure.
Diátaxis splits documentation into four modes along two axes: **practical vs theoretical** (doing vs knowing) and **study vs work** (acquiring skill vs applying it). Each mode answers a different reader question. Mixing them is the single most common documentation failure.
| Type | Reader's question | Mode | Posture | |---|---|---|---| | **Tutorial** | "Teach me, I'm new." | learning / doing | Hand-holding, linear, builds confidence | | **How-to guide** | "Help me do X." | working / doing | Goal-first, assumes competence | | **Reference** | "What is the exact behavior of Y?" | working / knowing | Dry, exhaustive, consistent | | **Explanation** | "Why does it work this way?" | learning / knowing | Discursive, gives context and trade-offs |
Pick the type from the reader's *intent*, not the subject matter:
| If the reader wants to… | Write a… | |---|---| | Get a first win and learn by doing | Tutorial | | Accomplish a specific, known task | How-to guide | | Look up a flag, field, signature, or value | Reference | | Understand a concept, decision, or trade-off | Explanation |
tables, not stories.
**Tutorial** — linear, every step succeeds, no choices to make: 1. Promise a concrete outcome ("by the end you'll have a running X"). 2. List prerequisites once, up front. 3. Numbered steps, each producing visible progress. 4. Show expected output after each meaningful step. 5. End with what they built and where to go next.
**How-to guide** — goal-first, assumes competence (see `examples/how-to-example.md`):
**Reference** — exhaustive and *consistent* (see `examples/reference-example.md`):
**Explanation** — discursive, makes trade-offs explicit:
Keep each doc single-purpose and connect them:
🐒 Free agents, skills & packs for Claude Code One subscription. An army of Claude Code agents. 30 production-grade agents, skills, and packs for Claude Code — free, Apache-2.0, install with one command.
Repo: vanara-agents/skills
Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing status codes, pagination,…
This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes the contract-breakers first. Severity…
The contract is the deliverable. Express it as an **OpenAPI 3.1** document so it is human-readable *and* machine-checkable. This reference covers how to…
Run through this before declaring an API contract done. It is ordered the way you should *design*: resources first, cross-cutting rules last. Every box is a…
APIs are forever once published: a consumer you've never met may depend on any field you expose. Design so you can **add without breaking**, and version…
Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.