--- name: component-registry description: Track reusable UI components and unextracted patterns. Maintains a REGISTRY.md inventory of extracted components and patterns that need extraction. Use when auditing components, planning extractions, or checking what components exist. --- # Skill: Component Registry Maintain a living inventory of UI components and patterns in the project. ## Purpose The component registry tracks: - **✅ Extracted components** — reusable components that exist in the shared components directory - **⚠️ Needs extraction** — patterns used in multiple places that should be extracted - **Usage counts** — how many times each component/pattern is used ## Registry Location Store the registry at `.github/skills/component-registry/REGISTRY.md` or a project-appropriate location. ## Registry Format ```markdown # Component Registry ## ✅ Extracted Components | Component | Location | Usage Count | Description | |-----------|----------|-------------|-------------| | Button | src/components/ui/Button | 24 | Primary action button with variants | | Card | src/components/ui/Card | 12 | Content card container | ## ⚠️ Needs Extraction | Pattern | Found In | Count | Priority | |---------|----------|-------|----------| | Status badge | JobList, UserList, Dashboard | 8 | High | | Search input | JobsPage, UsersPage | 4 | Medium | ``` ## Maintenance Workflow ### Scanning for Patterns Run these commands to find common patterns: ```bash # Find repeated button patterns grep -rn "className.*btn\|