What problem does it solve?
This Skill prevents inconsistent component structure in the Keystone UI library by defining how every UI component should be organized, imported, exported, tested, and documented.
Core Features & Use Cases
- Flat component layout: Keeps each component in a single top-level TypeScript file for predictable maintenance and discoverability.
- Safe composition patterns: Enforces React 19 ref handling, sibling-relative imports, and no barrel files to reduce coupling.
- Library integration rules: Covers package exports, registry updates, hover gating, and the no Radix UI constraint so new components fit the ecosystem cleanly.
- Use case: Apply this Skill when adding a new button, dialog, or form component to packages ui src and you need the implementation to match Keystone UI conventions end to end.
Quick Start
Use this Skill to review or create a Keystone UI component so it follows the required file structure, imports, exports, and registry conventions.