Docs Page Skill
Produce a single, three-column documentation page in one HTML file.
Workflow
- Read the active DESIGN.md (injected above). Use the body type token for
prose; the mono token for code; respect line-height and max-width rules.
- Pick a topic from the brief — the page should look like real docs, not
a generic wireframe. Concrete API names, command examples, plausible
parameters.
- Lay out three regions:
- Left nav (240–280px, sticky): grouped link list, current page bolded
with a left-edge accent stripe. 3–5 groups of 4–8 links.
- Article body (max-width ~720px, centered in the middle column):
H1, lede paragraph, H2 sections, code blocks, callout boxes (note /
warning), inline links, lists.
- Right TOC (200–240px, sticky): "On this page" with the H2/H3
anchors, current section highlighted as the user scrolls.
- Write a single HTML document:
<!doctype html> through </html>, all CSS inline.
- CSS Grid for the three columns; sticky positioning for the rails.
- Code blocks: monospace token, soft surface fill, copy-button affordance
(visual only — no JS needed).
- Anchor IDs on every H2/H3 so the TOC links work.
data-od-id on the nav, article, and TOC.
- Prose: write at least 350 words of believable docs. Include at least
one shell command, one code snippet (5–15 lines), one callout, one table.
- Self-check:
- Body text wraps at the DS line-length sweet spot (60–75 chars).
- Code uses the DS mono token, not generic
monospace.
- Accent is restrained — used for active nav item, links, one callout
border. Not on body text.
- Page is readable at 1280w and collapses gracefully below 900w (TOC drops
out, nav becomes a top drawer).
Output contract
Emit between <artifact> tags:
<artifact identifier="docs-slug" type="text/html" title="Docs — Page Title">
<!doctype html>
<html>...</html>
</artifact>
One sentence before the artifact, nothing after.
1---2name: docs-page3description: A documentation page — left nav, scrollable article body, right-rail table of contents. Use when the brief mentions "docs", "documentation", "guide", "API reference", or "tutorial".4---56# Docs Page Skill78Produce a single, three-column documentation page in one HTML file.910## Workflow11121. **Read the active DESIGN.md** (injected above). Use the body type token for13 prose; the mono token for code; respect line-height and max-width rules.142. **Pick a topic** from the brief — the page should look like real docs, not15 a generic wireframe. Concrete API names, command examples, plausible16 parameters.173. **Lay out** three regions:18 - **Left nav** (240–280px, sticky): grouped link list, current page bolded19 with a left-edge accent stripe. 3–5 groups of 4–8 links.20 - **Article body** (max-width ~720px, centered in the middle column):21 H1, lede paragraph, H2 sections, code blocks, callout boxes (note /22 warning), inline links, lists.23 - **Right TOC** (200–240px, sticky): "On this page" with the H2/H324 anchors, current section highlighted as the user scrolls.254. **Write** a single HTML document:26 - `<!doctype html>` through `</html>`, all CSS inline.27 - CSS Grid for the three columns; sticky positioning for the rails.28 - Code blocks: monospace token, soft surface fill, copy-button affordance29 (visual only — no JS needed).30 - Anchor IDs on every H2/H3 so the TOC links work.31 - `data-od-id` on the nav, article, and TOC.325. **Prose**: write at least 350 words of believable docs. Include at least33 one shell command, one code snippet (5–15 lines), one callout, one table.346. **Self-check**:35 - Body text wraps at the DS line-length sweet spot (60–75 chars).36 - Code uses the DS mono token, not generic `monospace`.37 - Accent is restrained — used for active nav item, links, one callout38 border. Not on body text.39 - Page is readable at 1280w and collapses gracefully below 900w (TOC drops40 out, nav becomes a top drawer).4142## Output contract4344Emit between `<artifact>` tags:4546```47<artifact identifier="docs-slug" type="text/html" title="Docs — Page Title">48<!doctype html>49<html>...</html>50</artifact>51```5253One sentence before the artifact, nothing after.