frontend-components
Build reusable, composable UI components with single responsibilities, clear prop interfaces, proper state management, and minimal coupling. Use this skill when creating or editing React components (.tsx, .jsx files), when designing component APIs with props, when implementing component composition patterns, when managing local component state, when building shadcn/ui components, when creating shared UI components in resources/js/Components/, when implementing component documentation, or when refactoring large components into smaller, focused pieces.
When & Why to Use This Skill
This Claude skill streamlines frontend development by providing expert guidance on building reusable, composable React UI components. It ensures high-quality code through single-responsibility principles, clean prop interfaces, and efficient state management, specifically optimized for modern frameworks and libraries like shadcn/ui and TypeScript-based environments.
Use Cases
- Developing new React components (.tsx/.jsx) with standardized prop interfaces and robust TypeScript types.
- Refactoring complex, monolithic components into smaller, maintainable, and focused functional units to improve code readability.
- Implementing and customizing shadcn/ui components to maintain design consistency and accelerate UI development.
- Designing and documenting shared UI libraries, such as buttons, modals, and forms, within specific project directories like resources/js/Components/.
- Optimizing component state management using React hooks while ensuring minimal coupling and clear internal logic encapsulation.
| name | Frontend Components |
|---|---|
| description | Build reusable, composable UI components with single responsibilities, clear prop interfaces, proper state management, and minimal coupling. Use this skill when creating or editing React components (.tsx, .jsx files), when designing component APIs with props, when implementing component composition patterns, when managing local component state, when building shadcn/ui components, when creating shared UI components in resources/js/Components/, when implementing component documentation, or when refactoring large components into smaller, focused pieces. |
Frontend Components
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend components.
When to use this skill
- When creating new React components in
.tsxor.jsxfiles - When editing existing components in
resources/js/Components/or similar directories - When designing component prop interfaces and TypeScript types
- When implementing component composition by combining smaller components
- When managing component state (useState, useReducer, etc.)
- When building or customizing shadcn/ui components
- When creating reusable UI components (buttons, cards, modals, forms, etc.)
- When refactoring monolithic components into smaller, focused pieces
- When implementing component documentation or usage examples
- When deciding between local state and lifting state up to parent components
- When defining component naming conventions
- When encapsulating component internal logic and exposing minimal APIs
Instructions
For details, refer to the information provided in this file: frontend components