/doc-holiday:defining-the-documentation-site-mapfrom doc-holiday
Use when you need to plan a project's documentation — "what should our docs contain and how should they be organized", "design the docs site map / IA", "lay out the docs site", "what pages do we need". Scans the source and emits a Diátaxis-organized site map (every page classified tutorial / how-to / reference / explanation) plus a per-page content plan and a Mermaid hierarchy, derived from the code and reconciled against the intended IA.
Ships in doc-holiday. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scan a project's source and produce a documentation site map and content plan for it, organized with the Diátaxis framework. This is the source-driven step that turns "given this codebase, what should its docs contain and how should they be organized?" into two Markdown artifacts a docs site (and a tool like Doc Holiday) can fill in and keep current.
It is a sibling to documenting-service-dependencies and identifying-skills-for-a-project: a Markdown skill that runs inside a coding agent, reads the codebase, and emits filesystem Markdown — no D1 dependency for local/agent use.
Core principle: derive the map from the code, classify every page into exactly one Diátaxis mode, and keep the four modes separate. A site map invented from a template, or one where a page mixes modes, fails the job.
| File | Contents |
|---|---|
DOCS_SITE_MAP.md | The annotated content tree (sections + pages, each tagged with its Diátaxis mode and ordering), a Reconciliation with the intended IA note, a Mermaid hierarchy diagram, a Diátaxis-balance check, and a Coverage gaps section. |
DOCS_CONTENT_PLAN.md | One brief per page: mode, audience, the question it answers, an outline, and the source-of-truth in the code it must be reconciled against. |
Generate both by default and cross-link them (the site map links to the plan; each brief's heading matches its tree entry). Emit content/-relative paths and Hugo-ready front matter so the plan drops into a Hugo site, while the tree itself stays generator-agnostic.
Plan, don't write the pages. The deliverable is the map + briefs, not finished documentation. Only stub out empty Markdown pages if the user explicitly asks — say so rather than silently writing page bodies.
Every proposed page is classified into exactly one of four modes. The mode is decided by the user need the page serves, not by its topic:
| Mode | Orientation | Serves | The page's job |
|---|---|---|---|
| Tutorial | Learning | A newcomer acquiring skills | Teach through a guided, hand-held lesson with a guaranteed first success. |
| How-to | Tasks | A competent user solving one real problem | Give the steps to achieve a specific goal; assume competence. |
| Reference | Information | A user looking something up | Describe the machinery accurately; austere, structured like the code/API. |
| Explanation | Understanding | A user building a mental model | Explain why, the design, the trade-offs; read-once orientation, no task. |
Most classification errors are tutorial↔how-to and reference↔explanation. Apply these tests:
_index.md) and "coming soon" stubs are explanation. A landing page orients the reader to a section (read-once, no task, no lookup); a stub for an unshipped tool orients to a capability that doesn't exist yet. Both are [E]. They split into how-to/reference children as the section/tool fills in.Profile the codebase (derive, don't template). Map the project's real surfaces — this is what the site map is built from, so be concrete:
Find the intended IA, and reconcile against it. Before inventing structure, look for an already-intended information architecture — a hand-authored site map in an issue/PR/docs/ design, an existing docs tree, the home-page navigation, the product's own sectioning. If one exists, adopt its shape and reconcile your derived map against it: cover every section it names, and for any place you add, drop, rename, or reorder, say so and why in a "Reconciliation with the intended IA" note. If none exists, derive the spine from the features in step 1 and state that you did. (A common, durable shape for a multi-tool product is Overview → Getting started → Tools (one subsection per feature/tool) → Guides → Reference → Meta; adopt the project's own intended IA where it has one, and otherwise use a shape like this as a starting point.)
Derive the site map. A hierarchical tree of sections → pages. Make the product's distinct tools/features the spine (one section each); add cross-cutting sections for orientation (overview/concepts), onboarding (getting-started), cross-tool tasks (guides), lookups (reference), and meta. Tag every page with its Diátaxis mode and give it an integer weight for ordering within its section.
Plan each page (the brief). For every page, write a short brief with all five fields:
[E], and list it under over-coverage in the coverage gaps so it's tracked, not mistaken for a missing page.Flag coverage gaps. Produce an explicit list, not prose asides:
Emit the two docs (structure below), cross-linked, with the Mermaid hierarchy and the balance check.
Report: the spine you chose and why, how you reconciled against the intended IA (and every divergence), the mode-balance, and the coverage gaps. Call out any classification calls that were close (tutorial vs how-to, reference vs explanation).
DOCS_SITE_MAP.md structure[T] tutorial · [H] how-to · [R] reference · [E] explanation); a link to DOCS_CONTENT_PLAN.md.content/ root — write tools/canary/_index.md, not content/tools/canary/_index.md), title, mode tag, and weight, e.g.:
tools/canary/
├── _index.md What Canary is & the discover→check→notify loop [E] weight: 10
├── health-checks.md Authenticated check definitions & scheduling [H] weight: 30
└── mcp-reference.md MCP tools: list/get/put/delete dependency [R] weight: 50
## Diátaxis balance — a count-per-mode table with a one-line read ("how-to-heavy is expected for operational tooling; the two tutorials are the only genuine first-success journeys"). A skew of zero tutorials, or everything tagged one mode, is a smell — note it.## Coverage gaps — the step-5 list.## Hierarchy — a Mermaid graph TD of sections → pages (mode in each node label), consistent with the diagrams the sibling skills emit.DOCS_CONTENT_PLAN.md structureOne ### section per page, in tree order, each starting with Hugo-ready front matter (so it drops straight into a Hugo site), then the brief fields:
### tools/canary/health-checks.md
```yaml
title: "Health checks"
weight: 30
diataxis: how-to
```
- **Audience:** an operator wiring up Canary.
- **Question it answers:** "How do I turn a discovered dependency into a scheduled, authenticated check?"
- **Outline:**
- Picking a probe type from how the app authenticates.
- Declaring secrets vs. attaching a connector.
- Enabling the check and the schedule that runs it.
- **Source of truth:** `packages/core/src/probe.ts`, `packages/core/src/adapters/*`, `packages/jobs/src/schedule.ts`.
Emit the diataxis mode in both places — inline in the tree (the tag) and in front matter — so the tree stays scannable and the generated page self-declares its mode.
Front-matter keys: title, weight, and diataxis are required on every page. For a tool/section the intended IA marks not yet shipped, add status: coming-soon (and the generator's draft convention if it uses one) so the stub renders as a placeholder rather than finished docs. Paths in front matter and the tree are relative to content/ — never include the content/ prefix.
content/ paths, when the target generator (Hugo) needs them.A well-formed target for a multi-tool product is Overview → Getting started → Tools → Guides → Reference → Meta, with one Tools subsection per feature/tool, shipping tools fully documented and not-yet-shipped tools stubbed as [E] placeholders. When a project already documents an intended IA of its own (an issue, a design doc, the home-page navigation, an existing docs tree), reconcile against that shape and record every divergence in the Reconciliation note, rather than imposing this one.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sandgardenhq/plugins --plugin doc-holiday3 skills in this plugin
/capturing-documentation-screenshotsUse when a documentation site needs real screenshots — "take the screenshots in SCREENSHOT_PLAN.md", "add screenshots to these docs", "screenshot the web app for the docs", "this page needs a picture of the dashboard", "get me terminal screenshots for this guide". Reads (or writes) a page-by-page screenshot plan, drives a browser to capture real product-UI screenshots, crops out chrome/PII, saves them under a per-page directory, and wires `` references into the docs at the exact spot. For shots it cannot generate itself (terminal output, IDE/editor state, native dialogs), it pre-wires the image path into the docs and hands the human an exact per-file capture list so dropping the file in requires no follow-up edit./writing-doc-holiday-promptsUse when you have a documentation site map / content plan and need the actual Doc Holiday instructions that generate and maintain the docs — "turn the site map into Doc Holiday prompts", "write the @doc.holiday prompts for our docs", "how do we make Doc Holiday build this docs site", "generate the create/update prompts for each page". Reads the planned IA (the output of `defining-the-documentation-site-map`) and the project's source, then emits, for every page, a ready-to-run `@doc.holiday` prompt with the right action, scope, Diátaxis mode, and target section — plus reusable Instruction Library entries for shared voice/style, ordered to match the IA, with maintenance/update prompts.Other plugins' skills for the same job