Loading...
Loading...
Write a new doc-site page (guide, tutorial, reference, concept) following the project's docs conventions. Use when user says 'write a doc', 'add a page to the docs site', 'create a guide for X', 'write a tutorial', 'document this concept', or 'add reference for our API'. Do NOT use for feature-specific end-user docs (use document-feature), ADRs (use document-decision), or CLAUDE.md updates (use create-or-audit-claude-md).
npx skill4agent add thommann/skills write-docdocs/docs-site/website/find . -maxdepth 3 -type f -name '*.config.*' | xargs grep -l -i 'doc'| Type | Question it answers | Example |
|---|---|---|
| Tutorial | "How do I get started from zero?" | "Your first request" |
| Guide | "How do I solve a specific problem?" | "Migrating from v1 to v2" |
| Reference | "What exactly does this thing do?" | "API reference: |
| Concept | "What is this and why does it exist?" | "How our event system works" |
ls docs/
# Typical layout:
# docs/
# getting-started/ # tutorials
# guides/ # problem-driven guides
# reference/ # API/config reference
# concepts/ # explanationsindex.en.mdindex.de.md---
# VitePress
title: "Page title"
description: "One-line description for search + social"
# Sometimes:
outline: deep
layout: doc
---
# Docusaurus
id: unique-id
title: Page title
sidebar_position: 3
---
# MkDocs — no frontmatter by default; title comes from the first H1
---# VitePress sidebar
cat docs/.vitepress/config.ts
# Add the page path in the relevant sidebar group.
# Docusaurus sidebars.js
# Insert the doc id in the category.
# MkDocs mkdocs.yml
# Add under `nav:` in the right section..mddocs/guides/{topic}/image.png<!-- from src/example.ts --># Build the docs site to catch broken links and invalid frontmatter.
# (Project-specific command from CLAUDE.md Quick Reference.)
# Examples:
# pnpm docs:build
# yarn build
# mkdocs build --strict
# mdbook build
# The page appears in navigation — browse to it in the built site.| Mistake | Correction |
|---|---|
| Tutorial that jumps into the advanced use case | Tutorials assume zero context. If the reader needs to know something, state the prereq or teach it. |
| Reference with no examples | Add one working example per entry. Schema alone is often not enough to unblock a reader. |
| Guide that reads like a tutorial ("Welcome! In this guide...") | Guides are problem-first: the reader already has the problem, they're looking for the solution, not an onramp. |
| Writing a single page that's tutorial + reference + guide | Split. One page per type. Cross-link generously. |
| Page file exists but not in navigation | Users can't find it. Wire it in the sidebar/nav config (step 6). |