@shipshitdev/component-library

Expert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components for monorepo projects

View in AI SkillSafe app
Scanned · no findings
0 downloads
0 stars
0 demos
SKILL.md
namecomponent-library
descriptionExpert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components for monorepo projects. Use when creating or refactoring UI components, reviewing component architecture, or setting up shared component patterns in a monorepo.

Component Library Standards Skill

When to Use

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: ComponentNameProps interface
  • 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.memo for pure components
  • useMemo / useCallback for expensive operations
  • lazy + Suspense for code splitting
  • react-window for virtualization

Accessibility

  • Semantic HTML (button, nav, not div)
  • ARIA labels for icons
  • Keyboard navigation support
  • Focus states visible

References

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@shipshitdev/component-library/verified)](https://skillsafe.ai/skill/@shipshitdev/component-library/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@shipshitdev/component-library/installs)](https://skillsafe.ai/skill/@shipshitdev/component-library/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@shipshitdev/component-library/scan)](https://skillsafe.ai/skill/@shipshitdev/component-library/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@shipshitdev/component-library/eval)](https://skillsafe.ai/skill/@shipshitdev/component-library/)