frontend-components

pdovhomilja's avatarfrom pdovhomilja

Design and build reusable, composable UI components following single responsibility principle with clear interfaces and proper state management. Use this skill when creating React components, Vue components, or other framework components, defining component props and interfaces, managing component state, building reusable UI elements, working with component files (*.tsx, *.jsx, *.vue, *.svelte, components/*, ui/*), implementing component composition patterns, encapsulating component logic, documenting component APIs, keeping state local or lifting it up when needed, designing component hierarchies, or refactoring monolithic components into smaller pieces. Apply this skill when building new components, refactoring existing component structures, reviewing component design patterns, or ensuring components are maintainable and reusable.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 25, 2025

When & Why to Use This Skill

This Claude skill provides a comprehensive framework for designing and building reusable, composable UI components. It focuses on the single responsibility principle, efficient state management, and clear interface definitions for modern frameworks like React, Vue, and Svelte. By guiding the creation of component hierarchies and refactoring monolithic code, it ensures frontend projects are scalable, maintainable, and follow modern architectural standards.

Use Cases

  • Developing reusable UI libraries: Create consistent, framework-specific components (React, Vue, Svelte) with standardized props and robust type definitions.
  • Refactoring legacy frontend code: Break down complex, monolithic components into smaller, manageable pieces following the single responsibility principle to improve code health.
  • Optimizing component state: Implement best practices for local state management versus state lifting to ensure performant and predictable UI behavior across the application.
  • Architecting component hierarchies: Design clear interfaces and composition patterns to build complex user interfaces from simple, modular building blocks.
  • Documenting Component APIs: Automatically generate clear documentation for component usage, props, and state transitions to facilitate team collaboration.
nameFrontend Components
descriptionDesign and build reusable, composable UI components following single responsibility principle with clear interfaces and proper state management. Use this skill when creating React components, Vue components, or other framework components, defining component props and interfaces, managing component state, building reusable UI elements, working with component files (*.tsx, *.jsx, *.vue, *.svelte, components/*, ui/*), implementing component composition patterns, encapsulating component logic, documenting component APIs, keeping state local or lifting it up when needed, designing component hierarchies, or refactoring monolithic components into smaller pieces. Apply this skill when building new components, refactoring existing component structures, reviewing component design patterns, or ensuring components are maintainable and reusable.

Frontend Components

When to use this skill

  • When creating or modifying component files (e.g., *.tsx, *.jsx, *.vue, *.svelte, components/*, ui/*)
  • When designing new UI components or refactoring existing ones
  • When defining component props, interfaces, or type definitions
  • When managing component state (useState, useReducer, reactive state, etc.)
  • When implementing component composition (combining smaller components into larger ones)
  • When building reusable UI elements that can be used across different contexts
  • When encapsulating component logic and keeping implementation details private
  • When documenting component usage, props, and providing examples
  • When deciding whether to keep state local or lift it up to parent components
  • When splitting large, complex components into smaller, focused ones
  • When naming components with clear, descriptive names
  • When reviewing component architecture for maintainability and reusability

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.

Instructions

For details, refer to the information provided in these files:

Component Architecture

frontend components

Aesthetic Excellence (for visual components)

frontend aesthetics - Apply when building UI components to ensure distinctive design choices in typography, colors, animations, and backgrounds.