This repository contains custom chat modes and instructions for GitHub Copilot to enhance your development experience in Visual Studio Code. Custom chat modes and repository instructions allow you to tailor Copilot's behavior to your specific needs and team workflow.
- Latest version of Visual Studio Code
- Access to GitHub Copilot
Custom chat modes in VS Code allow you to create tailored chat experiences for specific tasks. Each chat mode consists of instructions and tools that are applied automatically when you switch to that mode.
- Create a
.github/chatmodesdirectory in your workspace - Copy the desired
.chatmode.mdfiles from this repository to your workspace - Open the Chat view in VS Code (⌃⌘I)
- Select your custom chat mode from the chat mode dropdown list
Chat mode files use the .chatmode.md suffix and contain:
- Front Matter metadata:
---
description: Description of what the chat mode does
tools: ['tool1', 'tool2', 'tool3']
model: Optional AI model specification
---- Body with chat mode instructions in Markdown format
A sophisticated system that automatically improves user prompts through:
- Context-aware enhancement
- Interactive questioning
- Few-shot learning integration
Key features:
- Automatic prompt enhancement with context addition
- Smart questioning for gathering critical information
- Pattern recognition and template building
- Adaptive inquiry based on domain and complexity
Learn more about Prompt Enhancer Chat Mode
A specialized mode for React 16 applications focusing on:
- Class-based components
- Redux state management
- Enzyme and Cypress testing
- 100% test coverage requirement
Key features:
- Strict architectural constraints for React 16
- Traditional Redux patterns with connect() HOC
- Comprehensive testing standards
- Performance optimization guidelines
Learn more about React 16 Redux Mode
Detailed instructions for developing enterprise Java applications using:
- Java 17 (LTS)
- IBM Open Liberty server
- Gradle build tool
- Jakarta EE specifications
Key features:
- Modern Java 17 features utilization
- Open Liberty architecture best practices
- Jakarta EE implementation patterns
- Comprehensive project structure
- Performance optimization guidelines
Learn more about Java 17 Open Liberty Instructions
- Load the desired chat mode file in your development environment
- Follow the specific architectural constraints and patterns defined in the mode
- Use the provided templates and examples for consistent implementation
- Reference the instruction files when working on specific technology stacks
- Follow the defined project structure and coding standards
- Implement the recommended best practices and patterns
Feel free to contribute by:
- Adding new chat modes for different development scenarios
- Enhancing existing modes with more patterns and examples
- Adding custom instructions for other technology stacks
- Improving documentation and examples
Repository custom instructions help configure GitHub Copilot to generate responses tailored to your team's workflow and project requirements.
- Create a
.githubdirectory in your repository root - Create a file named
copilot-instructions.mdinside the.githubdirectory - Add your custom instructions in Markdown format
- Keep instructions short and self-contained
- Focus on project-specific requirements
- Avoid instructions that:
- Reference external resources
- Request specific response styles
- Demand particular levels of detail
When multiple instruction sets are available:
- Personal instructions (highest priority)
- Repository instructions
- Organization instructions (lowest priority)
Custom instructions are enabled by default but can be controlled:
-
For Copilot Chat:
- Open the Chat panel
- Click the options button
- Select "Enable/Disable custom instructions"
-
For Copilot Code Review:
- Go to repository Settings
- Navigate to Copilot > Code review
- Toggle "Use custom instructions when reviewing pull requests"