/update-component-docs
Update component documentation when code changes
Claude Code
$ npx -y skills add agnosticui/agnosticui --skill update-component-docs --agent claude-code
Codex
$ npx skills add agnosticui/agnosticui --skill update-component-docs -a codex -y
Cursor
$ npx skills add agnosticui/agnosticui --skill update-component-docs -a cursor -y
Gemini CLI
$ npx skills add agnosticui/agnosticui --skill update-component-docs -a gemini-cli -y
GitHub Copilot
$ npx skills add agnosticui/agnosticui --skill update-component-docs -a github-copilot -y
OpenCode
$ npx skills add agnosticui/agnosticui --skill update-component-docs -a opencode -y
Windsurf
$ npx skills add agnosticui/agnosticui --skill update-component-docs -a windsurf -y
SKILL.md
update-component-docs.SKILL.mdname: update-component-docs
description: Update component documentation when code changes
disable-model-invocation: true
allowed-tools: Read, Grep, Glob
**Usage:** `/update-component-docs COMPONENT_NAME`
**Examples:**
- `/update-component-docs button`
- `/update-component-docs alert`
Update docs for component: $ARGUMENTS
**Setup:** 1. Read `.claude/PROJECT_CONTEXT.md` for AgnosticUI structure and paths
**Process:**
2. **Locate component files:**
Read v2/lib/src/components/$ARGUMENTS*
Read v2/site/docs/components/$ARGUMENTS.md
Glob v2/playgrounds/*/src/stories/*$ARGUMENTS*
Glob v2/examples/*/src/*$ARGUMENTS*
3. **Identify what changed:**
- Core component API (props, slots, events)
- CSS custom properties or design tokens
- Behavior or interaction patterns
- Accessibility features
- Breaking changes vs additions
4. **Check related documentation:**
- VitePress component page for API tables and usage examples
- Storybook stories across Lit, React, and Vue playgrounds
- Example implementations in each framework
- Related playbook if component has specific use case docs
- Design tokens if styling/theming changed
5. **Propose documentation updates:**
- **VitePress:** Update props tables, events, slots, CSS custom properties, usage examples
- **Storybook stories:** Update args, controls, story descriptions across all three frameworks
- **Examples:** Verify examples still work with new API
- **Playbooks:** Update if related to specific workflow/pattern
- **Design tokens:** Note if component uses new/changed tokens
6. **WAIT FOR USER APPROVAL**
7. **Update consistently across frameworks:**
- Ensure Lit, React, and Vue stories show equivalent functionality
- Use framework-appropriate syntax but consistent examples
- Same terminology and descriptions across all docs
- Code examples match current API
- Note framework-specific differences where relevant
8. **Verify completeness:**
- All frameworks (Lit, React, Vue) documented
- VitePress and Storybook in sync
- Examples updated if API changed
- Design token references accurate
**Token Optimization:**
- Start with core component to understand changes
- Only read framework-specific files if API differs by framework
- Skip playbooks unless component has dedicated workflow docs
- Check design tokens only if styling/theming aspects changed
Read more
name: update-component-docs description: Update component documentation when code changes disable-model-invocation: true allowed-tools: Read, Grep, Glob
**Usage:** `/update-component-docs COMPONENT_NAME`
**Examples:**
- `/update-component-docs button`
- `/update-component-docs alert`
Update docs for component: $ARGUMENTS
**Setup:** 1. Read `.claude/PROJECT_CONTEXT.md` for AgnosticUI structure and paths
**Process:**
2. **Locate component files:**
Read v2/lib/src/components/$ARGUMENTS* Read v2/site/docs/components/$ARGUMENTS.md Glob v2/playgrounds/*/src/stories/*$ARGUMENTS* Glob v2/examples/*/src/*$ARGUMENTS*
3. **Identify what changed:**
- Core component API (props, slots, events)
- CSS custom properties or design tokens
- Behavior or interaction patterns
- Accessibility features
- Breaking changes vs additions
4. **Check related documentation:**
- VitePress component page for API tables and usage examples
- Storybook stories across Lit, React, and Vue playgrounds
- Example implementations in each framework
- Related playbook if component has specific use case docs
- Design tokens if styling/theming changed
5. **Propose documentation updates:**
- **VitePress:** Update props tables, events, slots, CSS custom properties, usage examples
- **Storybook stories:** Update args, controls, story descriptions across all three frameworks
- **Examples:** Verify examples still work with new API
- **Playbooks:** Update if related to specific workflow/pattern
- **Design tokens:** Note if component uses new/changed tokens
6. **WAIT FOR USER APPROVAL**
7. **Update consistently across frameworks:**
- Ensure Lit, React, and Vue stories show equivalent functionality
- Use framework-appropriate syntax but consistent examples
- Same terminology and descriptions across all docs
- Code examples match current API
- Note framework-specific differences where relevant
8. **Verify completeness:**
- All frameworks (Lit, React, Vue) documented
- VitePress and Storybook in sync
- Examples updated if API changed
- Design token references accurate
**Token Optimization:**
- Start with core component to understand changes
- Only read framework-specific files if API differs by framework
- Skip playbooks unless component has dedicated workflow docs
- Check design tokens only if styling/theming aspects changed
AgnosticUI Local (v2) is a CLI-based UI component library that copies components directly into your project. Works with AI tools, agent-driven UIs, and prompt-ready workflows.
Other skills on agnosticui.
fix-github-issue
Fix a GitHub issue by number. Use when asked to fix GitHub issues.
implement-ag-playbook
Implement a playbook from its PROMPT specification files. Supports both single-framework (PROMPT-REACT.md, etc.) and 3-framework…
implement-github-featu…
Design and implement a new feature or component from a GitHub issue. Use for net-new functionality, not bug fixes.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about update-component-docs.
- Which coding agents can use update-component-docs?
- update-component-docs installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

