/doc-holiday:writing-doc-holiday-promptsfrom doc-holiday
Use 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.
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.
Turn a documentation site map + per-page content plan into the concrete set of Doc Holiday instructions that actually generate and maintain the docs site. This is the bridge between planning the docs and producing them: defining-the-documentation-site-map decides what pages exist and what each should say; this skill produces the prompts that make Doc Holiday write them.
It is a sibling to defining-the-documentation-site-map, documenting-service-dependencies, and identifying-skills-for-a-project: a Markdown skill that runs inside a coding agent, reads the codebase + the site-map artifacts, and emits filesystem Markdown — no D1 dependency for local/agent use.
Core principle: every prompt is anchored to a real source-of-truth in the code and carries its page's Diátaxis mode. A scope-less prompt, or one that lets Doc Holiday guess the mode, fails the job — the point is that a reference page reads as reference and a tutorial reads as a tutorial, each reconciled against the code it describes.
| File | Contents |
|---|---|
DOC_HOLIDAY_PROMPTS.md | The ordered, copy-paste prompt set, grouped by section to match the IA. Each prompt is annotated with its page, Diátaxis mode, scope, target section/publication, and attached Instruction-Library slots, and is split into a create prompt and a maintenance (update) prompt. |
DOC_HOLIDAY_INSTRUCTION_LIBRARY.md | The proposed reusable Instruction Library entries (brand voice, the intent-vs-implementation framing, one style entry per Diátaxis mode), each as paste-ready text with a note on which slots/pages it attaches to. |
Generate both by default and cross-link them (each prompt names the Instruction-Library entries it relies on; each entry lists the prompts/slots it serves).
Write the prompts, not the pages. The deliverable is the instruction set, not finished documentation — Doc Holiday writes the pages from these prompts. Do not hand-write page bodies.
Get the command format exactly right — these strings are run verbatim.
@doc.holiday [action] [scope/details]. The mention is always literally @doc.holiday.@doc.holiday mention in a GitHub issue/PR (or GitLab/Linear), or via an automated trigger (release, merge, workflow run). Write the prompt once; it is channel-agnostic.@doc.holiday create new documentation about …@doc.holiday update … /packages/mcp/), a commit range, or the current PR/MR context. Pull the scope from the page's Source of truth field in the content plan. (A bare "time period" is not a valid page scope — it anchors to no source of truth and is release-notes-shaped, which is out of scope here.)… for Publication "<name>" landing at <section/path>.This skill consumes the artifacts of defining-the-documentation-site-map:
DOCS_SITE_MAP.md — the tree (sections → pages), each page's Diátaxis mode, weight, and content/-relative path.DOCS_CONTENT_PLAN.md — the per-page brief: Mode, Audience, Question it answers, Outline, and Source of truth. The Source-of-truth field is what becomes each prompt's scope.If those artifacts don't exist, do not invent them. Run defining-the-documentation-site-map first to produce the map + plan, then resume here. Say so rather than guessing an IA — a prompt built on a guessed page is a guessed prompt.
Also read the target Hugo site (from the docs-site issue/repo) so section paths and the publication match the real IA, and the project source so you can confirm each Source-of-truth path still exists before emitting its prompt.
Target one Publication for the whole docs site by default, with each page landing at its content/-relative section path from the site map; this keeps the IA in one place and lets one set of slots apply site-wide. Reach for one Publication per tool/section only when sections need genuinely different handling (separate triggers, separate owners, separate cadences) — and when you do, say why in the report. Either way, the section path in each prompt is what places the page in the Hugo site's hierarchy.
Load and validate the inputs. Read DOCS_SITE_MAP.md + DOCS_CONTENT_PLAN.md. If absent → run defining-the-documentation-site-map first. Confirm every page has a Mode and a Source of truth; a page missing either can't become a well-formed prompt and must be flagged, not papered over.
Verify each source-of-truth against the code. For every page, check that its Source-of-truth file paths / symbols still exist in the project. If a path is missing or ambiguous, flag the page (see step 6) instead of emitting a vague prompt — never widen the scope to "the whole repo" to cover an unknown.
Derive the Instruction Library entries (the cross-cutting guidance, written once):
[R] page's slot).Map each page to a create prompt. For every page in the plan, write:
@doc.holiday create new documentation about <subject> in <scope> — then the per-page guidance: its Diátaxis mode, audience, and the question it answers, the target Publication and the page's content/-relative section path (both are required — a Publication name without a landing path doesn't place the page), and the Instruction-Library slots to apply. Name the mode and attach its style slot; do not re-type the mode's style rules in the prompt — the mode and the per-page question come from the brief, the shared voice/style comes from the attached slots.
Handle coming-soon stubs. For a page the site map marks status: coming-soon (a not-yet-shipped tool), emit a lighter, explicitly-scoped stub prompt — tell Doc Holiday to write a short placeholder that says the capability is coming and not to invent feature content. Never point a full "create new documentation" prompt at a tool that doesn't exist in code yet.
Sequence the prompts to the IA. Order: overview/explanation pages first, then per-tool sections (in the site map's weight order), then cross-cutting guides and reference last — matching the site map's hierarchy so earlier pages exist before later ones link to them. Within the file, group by section. Collect every page you couldn't scope into an explicit "Flagged — missing/ambiguous source of truth" list at the top, so a human resolves them rather than them silently becoming bad prompts.
Emit the maintenance (update) prompts. For every non-stub page, always emit the @doc.holiday update … prompt that re-reconciles it against the same scope as the code changes — this is unconditional, not optional. Additionally wire automated triggers (on merges/releases touching the page's source paths) so the reconciliation is ongoing per the docs' "maintained by Doc Holiday" goal — triggers are an addition to the update prompt, never a substitute for it. The update prompt must itself carry an explicit scope (@doc.holiday update <page> from <commit-range/paths>); a bare update <page> is scope-less and not allowed.
Emit the two artifacts (structures below), cross-linked.
Report: the publication strategy you chose (and why), the order, the Instruction-Library entries and where they attach, and — prominently — the flagged pages (missing/ambiguous source of truth, or coming-soon) that need a human before they can run.
DOC_HOLIDAY_PROMPTS.md structureIntro — one paragraph: what this set builds, the target Publication, that prompts are copy-paste @doc.holiday instructions ordered to match the site map; a mode legend ([T]/[H]/[R]/[E]); links to DOCS_SITE_MAP.md and DOC_HOLIDAY_INSTRUCTION_LIBRARY.md.
## Flagged — needs a human first — the pages from steps 2/5/6 whose source-of-truth is missing/ambiguous (or that are coming-soon), with what's needed to resolve each. Put this first so it isn't missed.
One ### block per page, in IA order, grouped by section. Each block:
### tools/canary/mcp-reference.md — MCP reference [R] weight: 50
- **Mode:** reference · **Audience:** an integrator wiring the MCP server.
- **Question it answers:** "What MCP tools does Canary expose and what are their args?"
- **Scope:** `/packages/mcp/` (source of truth from the content plan).
- **Target:** Publication "gloria.dev docs" → `tools/canary/mcp-reference.md`.
- **Slots:** brand-voice, reference-style.
**Create**
```
@doc.holiday create new documentation about the Canary MCP tools in /packages/mcp/ for Publication "gloria.dev docs", landing at tools/canary/mcp-reference.md. Write it as Diátaxis reference for an integrator wiring the MCP server, answering "what MCP tools does Canary expose and what are their args?". Apply the brand-voice and reference-style instruction slots (mode style comes from the slot, not this prompt).
```
**Maintain**
```
@doc.holiday update tools/canary/mcp-reference.md from changes in /packages/mcp/ — keep the tool index reconciled with the registered tool definitions.
```
For a coming-soon page, replace the Create block with a stub prompt and omit the Maintain block — there is no source of truth to reconcile yet. Add the Maintain block (and the page's full create prompt) when the tool ships.
**Create (stub — tool not yet shipped)**
```
@doc.holiday create new documentation about the planned "Cost Tracking" tool as a short coming-soon placeholder, landing at tools/cost-tracking/_index.md in Publication "gloria.dev docs". Say the capability is on the roadmap and do not invent feature details, commands, or APIs — there is no implementation to read yet.
```
DOC_HOLIDAY_INSTRUCTION_LIBRARY.md structureOne ### per entry. Each entry is paste-ready instruction text (the human pastes it into the Doc Holiday Instruction Library and links it to the named slots), plus an Attaches to line:
### Reference style (Diátaxis)
**Attaches to:** the slot on every `[R]` page (e.g. `tools/canary/mcp-reference.md`, `reference/*`).
```
Write reference documentation: austere, structured to mirror the code/API it
documents, complete and accurate, and teaching nothing. Describe the machinery —
arguments, types, return values, errors — in a consistent order. No tutorials,
no narrative, no "why"; link out to how-to and explanation pages for those.
```
Include at minimum: brand voice (attaches to every slot), intent-vs-implementation framing, and the four per-mode style entries (tutorial / how-to / reference / explanation). Emit them as text for a human to paste into the Doc Holiday UI; do not assume an API path to register them.
create new documentation or an update with no file paths / commit range / PR context. A bare @doc.holiday update <page> reads as self-scoping but isn't — every prompt's scope comes from the page's Source-of-truth field, no exceptions.Publication "…" without the page's content/-relative section path, so Doc Holiday can't place the page. Both are required on every create prompt.@doc.holiday, or an action that isn't create new documentation / update.update prompt for every non-stub page; trigger wiring is an addition, never a substitute.For a multi-tool product whose site map is Overview → Getting started → Tools → Guides → Reference → Meta, target one Publication, emit the overview/explanation prompts first, then one create + one maintain prompt per page in weight order (each scoped to that page's source of truth and carrying its mode), stub the not-yet-shipped Tools subsections, and factor brand voice + the four per-mode styles into Instruction Library entries attached to the matching slots. When the docs site already pins a different Publication layout or trigger setup, reconcile against that and record any divergence in the report.
What SKILL.md sets; muted values are Claude Code's defaults
3 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./defining-the-documentation-site-mapUse 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.Other plugins' skills for the same job
npx claudepluginhub sandgardenhq/plugins --plugin doc-holiday