| name | kata-documentation |
| description | Write and review documentation in the websites/ folder. Scheduled runs review one topic in depth for accuracy, audience purity, and staleness. Interactive runs write or update pages following documentation standards. Use when writing, editing, auditing, or reviewing documentation, or running scheduled documentation review.
|
Write and Review Documentation
Write effective documentation and systematically review it for accuracy. Two
modes of operation:
- Scheduled review — Pick one topic, go deep, verify against source code.
- Interactive writing — Write or update pages following the standards.
When to Use
- Scheduled documentation review (one topic per run)
- Writing or updating pages in
websites/
- Auditing documentation accuracy against source code
Checklists
<read_do_checklist goal="Load documentation standards before starting">
</read_do_checklist>
<do_confirm_checklist goal="Confirm documentation review is complete">
</do_confirm_checklist>
Process
Step 0: Read Memory
Read wiki/MEMORY.md, then run fit-wiki boot --agent <self> per
memory-protocol § On-Boot Read Set.
The digest's owned_priorities, claims, and storyboard_items seed this
Process. Find last review dates per topic in the coverage map.
Writing under .claude/: If this run edits files under .claude/skills/,
follow
self-improvement.md.
Step 1: Route by mode
Scheduled runs review one topic in depth — continue with § Scheduled Review.
Interactive runs write or update pages — continue with § Interactive Writing.
Scheduled Review
Each run covers one topic in depth.
Topic areas
| Topic | What to review |
|---|
getting-started | websites/<site>/docs/getting-started/ — onboarding accuracy, CLI examples |
products | websites/<site>/docs/products/ — product-task accuracy, audience purity, completeness |
libraries | websites/<site>/docs/libraries/ — library-task accuracy, audience purity, completeness |
services | websites/<site>/docs/services/ — service-task accuracy, audience purity, completeness |
reference | websites/<site>/docs/reference/ — CLI synopsis, entity definitions, schema |
internals | websites/<site>/docs/internals/ — architecture accuracy, code path validity |
product-pages | Product overview pages under websites/<site>/ — overviews |
root-docs | CLAUDE.md, CONTRIBUTING.md, KATA.md, SECURITY.md |
llms-txt-and-seo | websites/<site>/llms.txt, websites/<site>/robots.txt, sitemap completeness |
cross-page-consistency | Terminology, proficiency scales, field names across all pages |
Topic selection
- Build coverage map — never-reviewed topics go first, then oldest.
- Revisit threshold — if all topics covered within last 6 runs, revisit oldest.
- Announce your pick and why before starting.
- Go deep — read every page in the topic area, not just spot-check.
Review process
- Read every page in the topic area.
- For each page, identify the source of truth (per
references/source-of-truth.md).
- Read the actual source code/data and compare to documentation claims.
- Check audience purity — flag contributor content in user-facing pages (per
references/standards.md).
- Run CLI examples shown in docs, verify output matches.
- Check YAML examples against the product's JSON schema directory.
- Verify all internal cross-links resolve.
- Run
fit-doc build --src=websites/<site> --out=dist to confirm
build.
- Check
git log --oneline -20 -- <paths> for recent code changes that may
have invalidated docs.
Cross-page-consistency: re-run <sh> examples
For this topic, re-run each <sh prompt> block against starter data or the
local CLI and diff its output against the adjacent <text> block. Record one
row in wiki/metrics/{skill}/{YYYY}.csv per divergence, tagged
kata-documentation-cross-page-consistency-sh-output-reexec. Staleness found
in a page's prose stays with that page's own topic.
Interactive Writing
Writing a new page
- Identify the audience. Determine which user group the page serves — this
decides the section. See
references/standards.md.
- Choose the section. New to the product → Getting Started. Full workflow →
Big Hire guide. Bounded task → Little Hire guide. Looking something up →
Reference. Understanding the code → Internals.
- Research the source of truth. Read the actual code and data before
writing. Cross-reference
references/source-of-truth.md.
- Write for the audience. Strip content that belongs to a different
audience.
- Verify accuracy. Run CLI commands, check YAML against schemas, confirm
entity names against the product's data directories.
- Add cross-links. Guides → Reference for details. Getting Started → Guides
for next steps. Internals → Reference for the user-facing model.
- Build and check. Run
fit-doc build --src=websites/<site> --out=dist.
Updating existing pages
- Read the page and its source of truth — check actual code, not just docs.
- Check audience purity — move contributor content to Internals if needed.
- Verify CLI examples. Run every command shown.
- Verify YAML examples against the product's JSON schema directory.
- Check cross-links resolve.
- Build and check.
Output
Every review must produce both categories when applicable. Classify each finding
with
work-definition.md § Classification tests
(mechanical fix vs structural spec). Branch naming, commit conventions, and
independence rules are defined in the agent profile.
Commit format: docs(website): {verb} {topic} documentation
Verbs: add for new pages, update for changes, fix for corrections.
Publishing changes
Commits are not visible until pushed. After committing on a branch,
open-change (work-trackers.md)
with the title and body, holding the PR body to
Citation integrity.
Each branch gets its own PR. Fix and spec branches are independent — push and PR
each one separately. Wiki changes follow the wiki curation skill's publishing
instructions.
Memory: What to Record
Append to the current week's log (see agent profile for the file path):
- Topic reviewed — Which topic and why selected
- Coverage map — Updated table of all topics with last review date
- Findings summary — What found, severity, disposition
(fixed/spec'd/deferred)
- Deferred work — Issues needing follow-up with enough context to resume
- Accuracy errors — Specific docs that diverged from source code
- Memos sent — Callouts dispatched via
fit-wiki memo to agents whose work
affects docs
- Metrics — Append one row per run to
wiki/metrics/{skill}/
per references/metrics.md. See KATA.md § Metrics for the
recording-eligibility rule.
Coordination Channels
This skill produces these non-wiki outputs (per
coordination-protocol.md):
- PR comment — Doc-impact callouts on code PRs that change behaviour
documented in
websites/.
- Discussion — Doc gaps that reflect an unsettled product question rather
than a writing task.
If an inbound PR comment addressed to this agent is ambiguous, follow
coordination-protocol.md § Inbound: unclear addressed comments.