Skip to content

A curated collection of custom chat modes based on chatmode.md files for Visual Studio Code (VS Code) used by GitHub Copilot to enhance your development using AI to work smarter.

License

Notifications You must be signed in to change notification settings

abdullahkhawer/ai-github-copilot-vs-code-chat-modes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ AI GitHub Copilot VS Code Chat Modes

Introduction

A curated collection of custom chat modes based on chatmode.md files for Visual Studio Code (VS Code) used by GitHub Copilot to enhance your development using AI to work smarter.

Custom chat modes allow you to modify GitHub Copilot's behavior in VS Code. Each chatMode.md file builds a specialized AI assistant with targeted knowledge and abilities for your development work, significantly cutting development time by eliminating repetitive manual tasks.

Official Documentation

🚀 Available Chat Modes

Title Description Category
Terraform Helm Release Upgrade Analyser Creates a detailed upgrade plan for a Helm release created via Terraform by analysing the configuration differences between the current and desired Helm chart versions and any breaking changes Infrastructure & DevOps
Dockerfile Developer Develops optimized, secure, and best-practice Dockerfiles based on user requirements and application context Infrastructure & DevOps
Conversation to Chat Mode Creates a custom chat mode file based on a conversational interface where users describe their specific task requirements and guidelines Development Tools
Code Commit Assistant Analyzes code changes, prepares conventional commit messages, and commits to a new branch with proper Git workflow automation Development Tools

Terraform Helm Release Upgrade Analyser

This chat mode helps you safely upgrade Helm releases managed by Terraform by:

  • Automatic Detection: Scans your Terraform code to identify Helm release resources
  • Version Comparison: Compares template files and default values between chart versions
  • Breaking Change Analysis: Identifies potential breaking changes and compatibility issues
  • Detailed Planning: Creates comprehensive upgrade plans with step-by-step instructions

Demo

Demo

Dockerfile Developer

This chat mode helps you create optimized, secure, and production-ready Dockerfiles by:

  • Context Analysis: Analyzes your project files to understand dependencies and build requirements
  • Best Practices: Follows Docker best practices including proper layer ordering, caching optimization, and clean syntax
  • Size Optimization: Creates minimal container images through multi-stage builds and efficient package management
  • Security Focus: Implements security best practices including non-root users and vulnerability scanning
  • Technology Detection: Automatically detects your application stack from project files (package.json, requirements.txt, etc.)

Demo

Demo

Conversation to Chat Mode

This meta chat mode helps you create new custom chat modes through a guided conversation by:

  • Interactive Creation: Walks you through a conversational interface to define your chat mode requirements
  • Template Generation: Automatically generates properly formatted .chatmode.md files based on your inputs
  • Guided Questions: Asks targeted questions about your specific task and required guidelines
  • Best Practices: Ensures your custom chat mode follows established conventions and formatting

Demo

Demo

Code Commit Assistant

This chat mode helps you automate your Git workflow by analyzing code changes and creating proper commits by:

  • Automatic Code Analysis: Analyzes all uncommitted changes to understand the scope and impact of modifications
  • Conventional Commits: Automatically determines the appropriate conventional commit type (feat, fix, docs, etc.) based on code changes
  • Branch Management: Creates new branches for your changes following Git best practices
  • Quality Checks: Optionally runs pre-commit hooks and Terraform formatting before committing
  • Automated Workflow: Handles the complete Git workflow from branch creation to pushing changes

Demo

Demo

📖 How to Use Chat Modes

To use any of these custom chat modes effectively, follow these general steps:

Prerequisites

  • Ensure you have the necessary files, projects, or context ready for the specific chat mode you want to use
  • Understand the specific requirements for your chosen chat mode by checking the chat mode file.

Setup

  1. Install the Chat Mode: Copy the desired .chatmode.md file from the /chat-modes directory to your workspace's .github/chatmodes directory
  2. Restart VS Code: Restart VS Code to load the new chat mode
  3. Start a New Chat Session: Open the GitHub Copilot Chat panel in VS Code
  4. Select the Chat Mode: Click the dropdown menu at the bottom of the chat panel and select your custom chat mode
  5. Choose the Model: Select the model to be used. For example, Claude Sonnet 4 (recommended for best performance)
  6. Add Context: Choose the appropriate directory or files as context for your specific task

Prompt Example

Simple Start Command

For most chat modes, you can simply use:

Start.

This will prompt the chat mode to guide you through any necessary questions or steps.

Tips for Best Results

  • Always select the appropriate directory or files as context for your task
  • Use Claude Sonnet 4 model for optimal performance
  • Be specific about your requirements when the chat mode asks for clarification
  • Ensure you have the necessary permissions and prerequisites before starting

Note: For more details, refer to the chosen custom chat mode's .chatmode.md file.

🤝 Contributing

Contributions are welcome! If you have a custom chat mode you'd like to share:

  1. Fork this repository
  2. Create a new .chatmode.md file in the chat-modes directory
  3. Update this README.md to include your chat mode in the table
  4. Submit a pull request

Chat Mode Guidelines

  • Use descriptive names and clear descriptions
  • Include comprehensive documentation and usage examples
  • Test your chat mode thoroughly before submitting
  • Follow the established file naming convention: your-mode-name.chatmode.md

📝 License

This project is licensed under the Apache License - see the LICENSE file for details.


😊 Any contributions, improvements and suggestions will be highly appreciated.
🌟 Star this repository to know about awesome new chat modes for VS Code.

About

A curated collection of custom chat modes based on chatmode.md files for Visual Studio Code (VS Code) used by GitHub Copilot to enhance your development using AI to work smarter.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published