What problem does it solve?
Frontend development often suffers from inconsistent components, duplicated logic, and weak API contracts. This Skill provides a principled, reusable standard for building small, focused components with explicit interfaces, encapsulation, and clear responsibilities to improve maintainability and collaboration across frameworks.
Core Features & Use Cases
- Single Responsibility: each component does one thing well and can be combined to form complex UIs.
- Explicit APIs: TypeScript interfaces or PropTypes define props and usage, with inline documentation.
- Framework-agnostic guidance: applies to React, Vue, Svelte, and Web Components; covers directories like components/, src/components/, ui/, lib/.
- Documentation and testing expectations: includes usage examples and tests to ensure reliability.
- Refactoring guidance: promotes small, reusable pieces and composable patterns to reduce coupling.
Quick Start
Create or update a frontend component (e.g., Button) in a framework directory (components/, ui/, src/components/) with a dedicated props interface, sensible defaults, and an inline usage example.