- •Architecture:
composition.md- asChild, Taxonomy, Composition - •Accessibility:
accessibility.md- Keyboard maps, ARIA, Focus management - •Styling:
styling.md-cnutility, Data attributes, CVA, Design tokens </constraints>
/component-review [file]
Strictly audit the file against the specification pillars.
- •You MUST read all reference files in the
references/directory before proceeding - •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: Look for
data-slotusage and prop spreading againststyling.md
/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 - •Choose the Taxonomy type
- •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) - •Use the
cnutility for class merging