en un clic
component-registry
// Track and manage reusable UI components and patterns in the mock-app. Maintains an inventory of extracted components and unextracted patterns to promote incremental refactoring and prevent code duplication.
// Track and manage reusable UI components and patterns in the mock-app. Maintains an inventory of extracted components and unextracted patterns to promote incremental refactoring and prevent code duplication.
Initialize a minimal hello-world mock-app with React, Vite, TypeScript, Tailwind CSS, React Router, and MSW. Use when scaffolding a new mock-app from scratch, bootstrapping a project skeleton, or starting a fresh prototype. Produces a working app with routing, mock API support, and a hello-world landing page.
End-to-end workflow for implementing a new feature in the mock-app, ensuring data model alignment, sample data, UI/UX consistency, component reuse, and automated verification with Playwright MCP.
Create new Agent Skills for this project. Use when asked to create a skill, document a workflow, or teach Copilot a new capability. Skills are stored in .github/skills/ and can include instructions, scripts, examples, and resources.
Debug and fix failing Playwright E2E tests. Use when tests fail, when asked to fix failing tests, or when investigating test failures. Analyzes test output, screenshots, error context, and uses Playwright MCP to identify root causes.
Always start a fresh browser session after any file change, walk through the full user flow, and monitor for errors before proceeding with further work.
Create comprehensive feature requirement documents for the WCU Mosquito Surveillance Web Application. Use when asked to document a feature, write feature requirements, or create feature specifications from the roadmap. Includes user stories, functional requirements, data model review, workflows, and edge cases.
| name | component-registry |
| description | Track and manage reusable UI components and patterns in the mock-app. Maintains an inventory of extracted components and unextracted patterns to promote incremental refactoring and prevent code duplication. |
Maintain a living inventory of UI components and patterns in the mock-app to:
/Users/justinmeyer/dev/western-carolina-discovery/.github/skills/component-registry/REGISTRY.md
Components that exist as reusable, shared implementations:
### Button
- **Path**: `/mock-app/src/components/ui/Button.tsx`
- **Description**: Reusable button with variants (primary, secondary, success, danger, ghost) and sizes (sm, md, lg)
Patterns that might need extraction:
### Card
- **Name**: Card
- **Description**: Container with white background, border, rounded corners, and shadow
- **Found in**: `/mock-app/src/pages/OrganizationJobsPage.tsx`, `/mock-app/src/pages/JobsPage.tsx`
Check Registry for Existing Components
.github/skills/component-registry/REGISTRY.mdCheck for Potential Components
Add New Components
Note Potential Components
# Find all button elements with repeated className patterns
grep -r '<button' mock-app/src/pages/ | grep -o "className=\"[^\"]*\"" | sort | uniq -c | sort -rn
# Find repeated card/container patterns
grep -r 'className=".*bg-white.*rounded.*shadow' mock-app/src/pages/ -n
# Count usages of an existing component
grep -r "import.*Button.*from.*components/ui" mock-app/src/ | wc -l
# Find repeated input patterns
grep -r '<input' mock-app/src/pages/ | grep -o "className=\"[^\"]*\"" | sort | uniq -c | sort -rn
Scan for repeated button patterns:
grep -r '<button' mock-app/src/pages/ | grep -o "className=\"[^\"]*\"" | sort | uniq -c | sort -rn
Scan for card/panel patterns:
grep -r 'className=".*bg-white.*rounded.*shadow' mock-app/src/pages/ -n
Count component usages:
grep -r "import.*Button.*from.*components/ui" mock-app/src/ | wc -l