Update Docs
Run this after any meaningful change to the codebase. It checks every
documentation location, determines who needs to know about the change, and
helps you update what's stale.
Step 1 — Understand what changed
Figure out the scope of recent changes. Use whichever applies:
# Changes on the current branch vs master
git log --oneline master..HEAD
git diff --stat master..HEAD
# Or if working on master, recent commits
git log --oneline -10
Summarize the changes in one sentence. Classify the change type:
| Type |
Example |
| New component |
Added Breadcrumb component |
| Component change |
Changed Button API, added size variant |
| Infrastructure |
New test framework, build changes |
| Convention change |
Updated naming rules, new pattern |
| Bug fix |
Fixed dark mode on Card |
| Dependency change |
Upgraded class_variants, added gem |
Step 2 — Determine affected audiences
For each change, ask: who needs to know?
| Audience |
They care about... |
| End users |
API changes, new components, new features, breaking changes |
| Contributors |
Convention changes, architecture decisions, new patterns, setup changes |
| AI agents |
Convention changes, new patterns, workflow changes, new shared utils |
| External AI |
New components, API changes, removed components |
A new component affects all four. A convention change affects contributors
and agents. A bug fix might only affect the changelog.
Step 3 — Check each documentation location
Go through every location below. For each one, check whether it's current
given the changes. Report a checklist of what needs updating.
End users — docs/src/
| Check |
File(s) |
| Component docs page exists |
docs/src/components/{name}.md |
| Component listed in index |
docs/src/components/index.md |
| Component in sidebar nav |
docs/src/_data/navigation.yml |
| Guide pages still accurate |
docs/src/guide/*.md |
| Design system page current |
docs/src/design-system.md |
End users — root files
| Check |
File(s) |
| README install/usage still accurate |
README.md |
Contributors — project/
| Check |
File(s) |
| Design system rules current |
project/design-system.md |
| Spatial/typography scales match components |
project/design-system.md |
| Component strategy current |
project/component-strategy.md |
| Testing strategy current |
project/testing-strategy.md |
| Build plan updated (if batch work) |
project/plans/*.md |
| PLAN.md status current |
PLAN.md |
| CONTRIBUTING.md setup still works |
CONTRIBUTING.md |
Design system drift detection: When checking project/design-system.md,
verify that components don't use spacing, typography, or radius values outside
the documented scales. If a component introduces a new value, either change
the component to use an existing scale value or update the scale tables to
include the new value with justification.
AI agents — .claude/
| Check |
File(s) |
| CLAUDE.md conventions current |
CLAUDE.md |
| Contributing skill workflow current |
.claude/skills/contributing/SKILL.md |
| Component structure reference current |
.claude/skills/contributing/references/component-structure.md |
| Theme structure reference current |
.claude/skills/contributing/references/theme-structure.md |
| Builder agent instructions current |
.claude/agents/component-builder.md |
| Reviewer agent checklist current |
.claude/agents/component-reviewer.md |
External AI — skills/kiso/
| Check |
File(s) |
| Component reference exists |
skills/kiso/references/components/{name}.md |
| Component listed in index |
skills/kiso/references/components.md |
| Theming reference current |
skills/kiso/references/theming.md |
| Skill entry point current |
skills/kiso/SKILL.md |
Step 4 — Report findings
Present the checklist as a table:
| Status | File | What needs updating |
|--------|------|---------------------|
| OK | docs/src/components/badge.md | — |
| STALE | PLAN.md | Mark Breadcrumb as done |
| MISSING| skills/kiso/references/components/toast.md | New component needs reference |
Only show files that are STALE or MISSING — skip the OK ones unless the
user wants the full list.
Step 5 — Make the updates
For each STALE or MISSING item, update the file. Follow these rules:
- Don't duplicate content. If the canonical source is
project/, update
there. Other locations should point to it, not copy from it.
- Component docs (
docs/src/components/) follow the format in
docs/src/components/card.md.
- Component references (
skills/kiso/references/components/) follow the
format of existing reference files — concise API summary, not full docs.
- PLAN.md updates are status changes only (mark items done, update
"What's Next").
Quick reference — what to update per change type
| Change type |
Always update |
Usually update |
Check if needed |
| New component |
docs page, nav, index, skills ref, skills index, PLAN.md |
— |
component-strategy, design-system |
| Component API change |
docs page, skills ref |
— |
README (if usage example affected) |
| New convention |
CLAUDE.md |
project/ doc, contributing skill |
builder/reviewer agents |
| Infrastructure |
PLAN.md |
CONTRIBUTING.md |
CLAUDE.md (if new commands) |
| Bug fix |
— |
— |
docs page (if workaround documented) |
| Dependency change |
— |
README, CONTRIBUTING.md |
CLAUDE.md |
1---2name: update-docs3description: Audit all documentation for staleness after code changes. Checks docs site, CLAUDE.md, skills references, contributing skill, agents, and project/ files. Use after completing a feature, merging a PR, or when asked to check docs.4---56# Update Docs78Run this after any meaningful change to the codebase. It checks every9documentation location, determines who needs to know about the change, and10helps you update what's stale.1112## Step 1 — Understand what changed1314Figure out the scope of recent changes. Use whichever applies:1516```bash17# Changes on the current branch vs master18git log --oneline master..HEAD19git diff --stat master..HEAD2021# Or if working on master, recent commits22git log --oneline -1023```2425Summarize the changes in one sentence. Classify the change type:2627| Type | Example |28|------|---------|29| **New component** | Added Breadcrumb component |30| **Component change** | Changed Button API, added size variant |31| **Infrastructure** | New test framework, build changes |32| **Convention change** | Updated naming rules, new pattern |33| **Bug fix** | Fixed dark mode on Card |34| **Dependency change** | Upgraded class_variants, added gem |3536## Step 2 — Determine affected audiences3738For each change, ask: **who needs to know?**3940| Audience | They care about... |41|----------|--------------------|42| **End users** | API changes, new components, new features, breaking changes |43| **Contributors** | Convention changes, architecture decisions, new patterns, setup changes |44| **AI agents** | Convention changes, new patterns, workflow changes, new shared utils |45| **External AI** | New components, API changes, removed components |4647A new component affects all four. A convention change affects contributors48and agents. A bug fix might only affect the changelog.4950## Step 3 — Check each documentation location5152Go through every location below. For each one, check whether it's current53given the changes. Report a checklist of what needs updating.5455### End users — `docs/src/`5657| Check | File(s) |58|-------|---------|59| Component docs page exists | `docs/src/components/{name}.md` |60| Component listed in index | `docs/src/components/index.md` |61| Component in sidebar nav | `docs/src/_data/navigation.yml` |62| Guide pages still accurate | `docs/src/guide/*.md` |63| Design system page current | `docs/src/design-system.md` |6465### End users — root files6667| Check | File(s) |68|-------|---------|69| README install/usage still accurate | `README.md` |7071### Contributors — `project/`7273| Check | File(s) |74|-------|---------|75| Design system rules current | `project/design-system.md` |76| Spatial/typography scales match components | `project/design-system.md` |77| Component strategy current | `project/component-strategy.md` |78| Testing strategy current | `project/testing-strategy.md` |79| Build plan updated (if batch work) | `project/plans/*.md` |80| PLAN.md status current | `PLAN.md` |81| CONTRIBUTING.md setup still works | `CONTRIBUTING.md` |8283**Design system drift detection:** When checking `project/design-system.md`,84verify that components don't use spacing, typography, or radius values outside85the documented scales. If a component introduces a new value, either change86the component to use an existing scale value or update the scale tables to87include the new value with justification.8889### AI agents — `.claude/`9091| Check | File(s) |92|-------|---------|93| CLAUDE.md conventions current | `CLAUDE.md` |94| Contributing skill workflow current | `.claude/skills/contributing/SKILL.md` |95| Component structure reference current | `.claude/skills/contributing/references/component-structure.md` |96| Theme structure reference current | `.claude/skills/contributing/references/theme-structure.md` |97| Builder agent instructions current | `.claude/agents/component-builder.md` |98| Reviewer agent checklist current | `.claude/agents/component-reviewer.md` |99100### External AI — `skills/kiso/`101102| Check | File(s) |103|-------|---------|104| Component reference exists | `skills/kiso/references/components/{name}.md` |105| Component listed in index | `skills/kiso/references/components.md` |106| Theming reference current | `skills/kiso/references/theming.md` |107| Skill entry point current | `skills/kiso/SKILL.md` |108109## Step 4 — Report findings110111Present the checklist as a table:112113```114| Status | File | What needs updating |115|--------|------|---------------------|116| OK | docs/src/components/badge.md | — |117| STALE | PLAN.md | Mark Breadcrumb as done |118| MISSING| skills/kiso/references/components/toast.md | New component needs reference |119```120121Only show files that are STALE or MISSING — skip the OK ones unless the122user wants the full list.123124## Step 5 — Make the updates125126For each STALE or MISSING item, update the file. Follow these rules:127128- **Don't duplicate content.** If the canonical source is `project/`, update129 there. Other locations should point to it, not copy from it.130- **Component docs** (`docs/src/components/`) follow the format in131 `docs/src/components/card.md`.132- **Component references** (`skills/kiso/references/components/`) follow the133 format of existing reference files — concise API summary, not full docs.134- **PLAN.md** updates are status changes only (mark items done, update135 "What's Next").136137## Quick reference — what to update per change type138139| Change type | Always update | Usually update | Check if needed |140|-------------|--------------|----------------|-----------------|141| **New component** | docs page, nav, index, skills ref, skills index, PLAN.md | — | component-strategy, design-system |142| **Component API change** | docs page, skills ref | — | README (if usage example affected) |143| **New convention** | CLAUDE.md | project/ doc, contributing skill | builder/reviewer agents |144| **Infrastructure** | PLAN.md | CONTRIBUTING.md | CLAUDE.md (if new commands) |145| **Bug fix** | — | — | docs page (if workaround documented) |146| **Dependency change** | — | README, CONTRIBUTING.md | CLAUDE.md |