SKILL.md
<overview> This skill embodies the formal standard for building professional, accessible, and composable React artifacts. </overview>
<context name="Knowledge Deep-Dives"> You MUST read these reference files to perform your duties:
- Architecture:
composition.md- asChild, Taxonomy, Composition. - Accessibility:
accessibility.md- Keyboard maps, ARIA, Focus management. - Styling:
styling.md-cnutility, Data attributes, CVA, Design tokens.
</context>
<workflow>
<phase name="review">
/component-review [file]
Strictly audit the file against the specification pillars.
- You MUST read all reference files in the
references/directory before proceeding. - You SHOULD classify the artifact using
taxonomy.md. - Evaluate Accessibility: You MUST check keyboard support and semantic HTML against
accessibility.md. - Evaluate Architecture: You MUST check for monolithic patterns vs composition against
composition.md. - Evaluate Styling: You SHOULD look for
data-slotusage and prop spreading againststyling.md.
</phase>
<phase name="create">
/component-create [name] [intent]
Build a new artifact following the "Architecture First" workflow.
- You MUST read the relevant
references/*.mdfiles to select the correct patterns. - You SHOULD choose the Taxonomy type.
- You SHOULD select the base Semantic Element or Headless Primitive.
- You MUST implement the Keyboard Map.
- You MUST apply asChild support if the component is an activator/trigger.
- You MUST expose Data Attributes (
data-state,data-slot). - You SHOULD use the
cnutility for class merging.
</phase>
</workflow>