AGENT
AgentUse when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing…
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.
Claude Code
$ npx -y skills add vanara-agents/skills --agent claude-code
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
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.
Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing…
This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes the…
The contract is the deliverable. Express it as an **OpenAPI 3.1** document so it is human-readable *and* machine-checkable. This…
Run through this before declaring an API contract done. It is ordered the way you should *design*: resources first, cross-cutting…
APIs are forever once published: a consumer you've never met may depend on any field you expose. Design so you can **add without…
Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…