OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add nvidia/elements --skill authoring-components
Guide for creating new Elements components with all required files, base classes, metadata patterns, and test boilerplate. Use this skill whenever the user wants to create, scaffold, or set up a new component from scratch, needs to understand the required 10-file structure, asks about base classes and mixins (LitElement vs ButtonFormControlMixin), define.ts vs index.ts patterns, static metadata, component registration, or sub-component parent relationships. Also trigger when the user mentions creating test boilerplate for all 5 test types.
npx skills add nvidia/elements --skill authoring-components
You MUST review the component creation guideline before creating or modifying components.
Read the component creation guide to get critical context for component creation guidance.
LitElement directly or apply ButtonFormControlMixin for button-like interactive components.projects/core/src/<component-name>/:
component-name.ts:component class with metadata, JSDoc, and render methodcomponent-name.css:styles using CSS custom propertiescomponent-name.examples.ts:example templates with @summary JSDoccomponent-name.test.ts:unit testscomponent-name.test.axe.ts:accessibility testscomponent-name.test.visual.ts:visual regression testscomponent-name.test.ssr.ts:SSR testscomponent-name.test.lighthouse.ts:lighthouse testsdefine.ts:registration using define() helper with HTMLElementTagNameMapindex.ts:side-effect-free exportimport '@nvidia-elements/core/<component-name>/define.js' to projects/core/src/bundle.ts in alphabetical order. Keep this registration bundle import-only. Export the public API from the component index.ts and expose its entry point through the package exports map.js-modules list in projects/core/src/index.test.lighthouse.ts so the combined direct-import benchmark measures the component.mise exec -- pnpm run test:lighthouse from projects/core. Increase a bundle-size limit only when the measured payload exceeds the current limit.mise exec -- pnpm run lint and mise exec -- pnpm run test from projects/core./projects/core/src/button/ - ButtonFormControlMixin pattern example/projects/core/src/badge/ - LitElement pattern example/projects/core/src/card/ - Composition with slots example