원클릭으로
update-docs
// 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.
// 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.
Build UIs with Kiso — accessible Rails UI components with Tailwind CSS theming. Use when creating interfaces, customizing themes, building forms, or composing page layouts in Rails + Hotwire apps.
Kiso component conventions and development workflow. Points to the right docs for building, reviewing, and shipping components.
Guide through releasing a new version of kiso. Use when cutting a release, publishing a new version, or running bin/release.
Build a Kiso component from scratch. Reads shadcn/Nuxt UI sources, creates theme module, ERB partials, Lookbook previews, docs, E2E tests. Use when building a new component or picking up where a previous attempt left off.
Review a Kiso component for quality and consistency. Runs the 12-point checklist against shadcn source, design system rules, and deliverables. Use on a PR, branch, or working directory.
Agentic Component Factory — build multiple Kiso components in parallel using builder and reviewer agents in isolated worktrees. Usage: /factory #47 #48 or /factory #47 #48 #49 (pass issue numbers)
| name | update-docs |
| description | 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. |
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.
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 |
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.
Go through every location below. For each one, check whether it's current given the changes. Report a checklist of what needs updating.
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 |
| Check | File(s) |
|---|---|
| README install/usage still accurate | README.md |
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.
.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 |
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 |
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.
For each STALE or MISSING item, update the file. Follow these rules:
project/, update
there. Other locations should point to it, not copy from it.docs/src/components/) follow the format in
docs/src/components/card.md.skills/kiso/references/components/) follow the
format of existing reference files — concise API summary, not full docs.| 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 |