npx skills add ...
npx skills add nvidia/elements --skill guidance-api-design
Component API design patterns following Elements conventions for properties, attributes, CSS custom properties, slots, and events. Use this skill whenever the user is designing or deciding on a component API, choosing between properties vs attributes vs slots, naming CSS custom properties, designing events, avoiding impossible states, deciding whether to reflect to an attribute, using CSS Parts, implementing the DataElement interface, or applying the internal-host pattern. Also trigger when the user asks about shorthand vs granular CSS properties or event naming conventions.
npx skills add nvidia/elements --skill guidance-api-design
You MUST review the relevant API design guidelines before designing or modifying component APIs.
When creating new components or features that may contain user state review the Stateless Components Guidelines.
When working with JavaScript properties and HTML attributes review the Properties & Attributes Guidelines.
When working with CSS, CSS Custom Properties or Design Tokens review the Styles & CSS Custom Properties Guidelines.
When creating a new API or determining API design of parent child relationships between components review the Component Composition Guidelines.
When working with user provided content or container-like components review the Slots Guidelines.
When creating new events or listening to existing event review the Custom Events Guidelines.
When creating new components or using components as dependencies review the Component Registration Guidelines.
When creating a new component or package review the Packaging & Exports Guidelines.