/loxihart-design:ui-component-libraryfrom loxihart-design
Reusable UI component patterns for React, Vue, and vanilla JavaScript. Includes advanced components beyond basic libraries (shadcn/ui, MUI), complex interactions, and production-ready code patterns. Use when building custom component libraries or implementing sophisticated UI components. Also triggers on compound components, headless hooks, render props, virtualized lists, drag and drop, command palette, autocomplete, rich text editor, file upload component, or any request for advanced React component patterns beyond what shadcn provides out of the box. Even if someone says "build me a custom component" — use this skill.
Ships in loxihart-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
<essential_principles>
Every component starts with the correct semantic HTML element, keyboard navigation, ARIA attributes, and focus management. These are designed in at the API level, not bolted on after.
Prefer compound component patterns (Tabs.Trigger, Tabs.Content) over monolithic prop-heavy components. Let consumers compose behavior rather than configuring it through dozens of props.
Use headless hooks (useDropdown, useModal) to encapsulate behavior. Consumers apply their own styles. This makes components portable across design systems.
Memoize expensive computations, virtualize long lists, use event delegation, and lazy-load off-screen content. Don't wait for performance problems to optimize.
</essential_principles>
| User Says | Route To |
|---|---|
| "Build a component" / "custom component" / "component API" | workflows/build-component.md, then references/component-patterns.md |
| "Virtualized table" / "infinite scroll" / "data grid" / "chart" | references/component-catalog.md → Data Display |
| "Drag and drop" / "modal" / "tooltip" / "command palette" / "file upload" | references/component-catalog.md → Interactive |
| "Autocomplete" / "multi-select" / "date picker" / "form component" | references/component-catalog.md → Forms |
| "Split panes" / "masonry" / "carousel" / "virtualized list" | references/component-catalog.md → Layout |
| "Testing components" / "performance" / "memoization" | references/testing-performance.md |
| "Compound components" / "headless" / "render props" / "advanced pattern" | references/component-patterns.md |
<component_checklist>
Before building any component, verify:
Functionality:
Accessibility:
Performance:
Styling:
</component_checklist>
<quality_gates>
Before releasing any component:
npx vizzly tdd), Chromatic, or Percy</quality_gates>
<reference_index>
| Workflow | Purpose | When to Read |
|---|---|---|
workflows/build-component.md | Step-by-step: design API → scaffold → implement → test → document | Creating any new component |
| Reference | Purpose | When to Read |
|---|---|---|
references/component-patterns.md | CVA anatomy, compound components, headless hooks, render props | Designing component architecture |
references/component-catalog.md | Advanced component implementations by category (data, interactive, forms, layout) | Building a specific complex component |
references/testing-performance.md | Unit tests, a11y tests, memoization, virtualization, styling options | Testing and optimizing components |
| Script | Purpose | When to Run |
|---|---|---|
scripts/a11y-check.js | Static accessibility analysis of a component file (ARIA, keyboard, semantic HTML) | After implementing, before PR |
| Asset | Purpose | When to Use |
|---|---|---|
assets/component-template.tsx | Production-ready component starter with CVA variants, forwardRef, ARIA, loading state | Starting any new component |
</reference_index>
Tabs.Trigger, Tabs.Content) is superior to monolithic prop APIs for complex components because it preserves composition and avoids prop explosion"use client" directivesassets/component-template.tsx (opens in a new tab)references/component-catalog.md (opens in a new tab)references/component-patterns.md (opens in a new tab)references/testing-performance.md (opens in a new tab)scripts/a11y-check.js (opens in a new tab)workflows/build-component.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-design19 skills in this plugin
/advanced-ux-patternsComprehensive UX best practices including accessibility (WCAG 2.2), interaction patterns, user research methods, and usability principles. Use when designing user interfaces, conducting UX audits, or implementing accessible, user-centered designs. Also triggers on WCAG, ARIA, keyboard navigation, screen reader, focus trap, focus management, touch targets, usability testing, heuristic evaluation, card sorting, tree testing, NPS, SUS, form design, navigation patterns, mobile UX, design handoff, cognitive load, information architecture, dark patterns, skeleton screen, error states, reduced motion, dark mode accessibility, component states, error recovery, or any request to audit, improve, spec, or review a user interface — even casually. If UI is involved, use this skill./advanced-visual-designAdvanced visual design techniques including typography systems, color theory, grid-based layouts, visual hierarchy, and composition principles. Use when creating high-quality visual designs, establishing design foundations, or implementing sophisticated design systems. Also triggers on type scale, font pairing, color palette, HSL color, 8-point grid, 12-column layout, visual hierarchy, whitespace, composition, rule of thirds, golden ratio, dark mode design, optical adjustments, or easing curves. Even if someone says "make this look professional" or "set up my design foundations" — use this skill.Other plugins' skills for the same job