Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add shipshitdev/library --skill "component-library"
Install specific skill from multi-skill repository
# Description
Expert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components for monorepo projects
# SKILL.md
name: component-library
description: Expert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components for monorepo projects
version: 1.0.0
tags:
- react
- nextjs
- components
- design-system
- typescript
- performance
- patterns
Component Library Standards Skill
Expert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components.
When to Use This Skill
Use when you're:
- Creating new UI components
- Refactoring existing components for reusability
- Reviewing component architecture
- Setting up shared component patterns
- Optimizing component performance
Quick Reference
Naming
- Files: PascalCase (
Button.tsx) - Props:
ComponentNamePropsinterface - Hooks:
use-prefix (use-auth.ts)
Structure
'use client'; // Only if needed
// Imports: types → hooks → utils → components
export interface MyComponentProps { ... }
export default function MyComponent({ ... }: MyComponentProps) { ... }
Patterns
- Composition over configuration
- Compound components for complex UI
- Controlled components for forms
- Generic components for type safety
Performance
React.memofor pure componentsuseMemo/useCallbackfor expensive operationslazy+Suspensefor code splittingreact-windowfor virtualization
Accessibility
- Semantic HTML (
button,nav, notdiv) - ARIA labels for icons
- Keyboard navigation support
- Focus states visible
References
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.