update-component-docs
Skill833 starsChanged 9 months agoApache-2.0View on GitHub
Update component documentation when code changes
In this repository5 other files it gives its agents.
- check-accessibilitySkill
- explain-codeSkill
- fix-github-issueSkill
- implement-ag-playbookSkill
- implement-github-featureSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Update docs for component: $ARGUMENTS
- Very specific: line 17
Read .claude/PROJECT_CONTEXT.md for AgnosticUI structure and paths
- Distinctive: line 44
VitePress: Update props tables, events, slots, CSS custom properties, usage examples
- Distinctive: line 45
Storybook stories: Update args, controls, story descriptions across all three frameworks
- Distinctive: line 46
Examples: Verify examples still work with new API
- Distinctive: line 47
Playbooks: Update if related to specific workflow/pattern
- Distinctive: line 53
Ensure Lit, React, and Vue stories show equivalent functionality
- Distinctive: line 54
Use framework-appropriate syntax but consistent examples
- Distinctive: line 60
All frameworks (Lit, React, Vue) documented
- Distinctive: line 66
Start with core component to understand changes
- Distinctive: line 67
Only read framework-specific files if API differs by framework
- Distinctive: line 69
Check design tokens only if styling/theming aspects changed
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Usage: /update-component-docs COMPONENT_NAME
Examples:
/update-component-docs button/update-component-docs alert
Update docs for component: $ARGUMENTS
Setup:
- Read
.claude/PROJECT_CONTEXT.mdfor AgnosticUI structure and paths
Process:
- 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*- 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
- 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
- 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
- WAIT FOR USER APPROVAL
- 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
- 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

