This project has been enhanced with custom agents, prompts, and instructions from the awesome-copilot repository to supercharge your GitHub Copilot experience.
.opencode/
├── agent/ # Custom specialized agents
│ ├── accessibility.agent.md # WCAG expert for building accessible UIs
│ ├── api-architect.agent.md # API design and implementation expert
│ ├── expert-react-frontend-engineer.agent.md # React 19.2 specialist
│ ├── mantine-ui-specialist.agent.md # Mantine UI library expert
│ └── playwright-tester.agent.md # E2E testing specialist
├── instructions/ # Coding standards and best practices
│ ├── a11y.instructions.md # Accessibility guidelines
│ ├── nodejs-javascript-vitest.instructions.md # Vitest testing patterns
│ ├── playwright-typescript.instructions.md # Playwright E2E testing
│ ├── reactjs.instructions.md # React best practices
│ └── typescript-5-es2022.instructions.md # TypeScript standards
└── prompts/ # Task-specific prompts
├── architecture-blueprint-generator.prompt.md # Generate architecture docs
├── breakdown-feature-implementation.prompt.md # Break down features
├── breakdown-feature-prd.prompt.md # Create PRDs
├── breakdown-plan.prompt.md # Create implementation plans
└── review-and-refactor.prompt.md # Code review and refactoring
Agents are specialized AI personas that provide expert-level guidance for specific domains:
-
Accessibility Agent - WCAG 2.1/2.2 expert
- Ensures WCAG AA/AAA compliance
- Provides keyboard navigation patterns
- Implements screen reader support
- Reviews code for accessibility issues
-
API Architect - API design specialist
- Designs RESTful APIs with best practices
- Creates service layer architecture
- Implements resilience patterns (circuit breaker, retry, etc.)
- Provides complete working API implementations
-
Expert React Frontend Engineer - React 19.2 specialist
- Modern React patterns with latest hooks
- Server Components and Actions API
- Performance optimization
- TypeScript integration
-
Mantine UI Specialist - Mantine v7+ expert
- Component composition patterns
- Theming and dark mode
- Responsive layouts
- Form handling with @mantine/form
-
Playwright Tester - E2E testing expert
- Playwright test patterns
- Page Object Model
- Visual regression testing
- CI/CD integration
Agents can be invoked in GitHub Copilot Chat:
@accessibility Review this component for WCAG compliance
@mantine-ui-specialist Create a responsive dashboard layout
@playwright-tester Write E2E tests for the login flow
Instructions automatically apply to files based on patterns and provide contextual coding standards:
- reactjs.instructions.md - Applied to
**/*.jsx, **/*.tsxfiles - typescript-5-es2022.instructions.md - Applied to
**/*.tsfiles - a11y.instructions.md - Applied to all files for accessibility
- playwright-typescript.instructions.md - Applied to test files
- nodejs-javascript-vitest.instructions.md - Applied to test files
These instructions are automatically loaded by Copilot when working on matching files.
Prompts are reusable templates for common tasks. Use them with the / command in Copilot Chat:
-
Architecture Blueprint Generator
/architecture-blueprint Generate architecture documentation -
Feature Breakdown
/breakdown-feature Create implementation plan for user authentication -
PRD Creation
/breakdown-feature-prd Write PRD for the dashboard feature -
Code Review
/review-and-refactor Review and refactor this component
- GitHub Copilot subscription
- VS Code with GitHub Copilot extension
- OpenCode CLI (optional)
@accessibility @mantine-ui-specialist
Create a registration form with:
- Email and password fields
- Validation
- WCAG AA compliance
- Proper ARIA labels
- Keyboard navigation
/breakdown-feature-implementation
Feature: User Dashboard
- User profile display
- Recent activity feed
- Quick actions panel
@api-architect
Create a REST API for:
- User management (CRUD)
- Authentication with JWT
- Circuit breaker pattern
- Rate limiting
Language: TypeScript
@playwright-tester
Write comprehensive E2E tests for:
- User login flow
- Dashboard navigation
- Form submission with validation
The project uses Mantine UI v7+ for components. Key features:
- Dark mode - Automatic dark/light theme switching
- Responsive - Mobile-first responsive layouts
- Accessible - WCAG-compliant components out of the box
- Customizable - Extensive theme configuration
See mantine-ui-specialist.agent.md for detailed usage patterns.
- Fast, isolated tests for components and utilities
- See
nodejs-javascript-vitest.instructions.md
- Full user journey testing
- Visual regression testing
- See
playwright-typescript.instructions.md
Run tests:
npm test # Unit tests
npm run test:e2e # E2E tests
npm run test:coverage # Coverage report- Use functional components with hooks
- Follow React 19.2 patterns (use(), Actions API)
- Implement proper error boundaries
- Optimize with React.memo, useMemo, useCallback when needed
- Use strict mode
- Avoid
any- preferunknownwith type guards - Define proper interfaces for all props and state
- Use discriminated unions for complex state
- Use semantic HTML
- Add proper ARIA labels
- Ensure keyboard navigation
- Test with screen readers
- Meet WCAG 2.1 AA standards
- Follow AAA pattern (Arrange, Act, Assert)
- Test behavior, not implementation
- Use Page Object Model for E2E tests
- Maintain high code coverage (>80%)
Create a new file in .opencode/agent/:
---
description: "Your agent description"
name: "Agent Name"
---
# Agent Name
Your agent instructions here...Create a new file in .opencode/instructions/:
---
description: "Instruction description"
applyTo: "**/*.ts"
---
# Instructions
Your coding standards here...Create a new file in .opencode/prompts/:
---
agent: 'agent'
description: "Prompt description"
---
# Prompt Name
Your prompt template here...- GitHub Copilot Documentation
- Awesome Copilot Repository
- Mantine UI Documentation
- React Documentation
- Playwright Documentation
- Vitest Documentation
To add more agents, instructions, or prompts:
- Create new files in appropriate directories
- Follow the frontmatter format
- Test with GitHub Copilot
- Document usage patterns
This setup follows the MIT license from the awesome-copilot repository.