Custom Chat Modes: Create Focused AI Conversations for Specific Tasks

GitHub Copilot can do more than answer general questions. With custom chat modes, you can create specialized AI experiences that guide conversations toward a specific goal. Rather than relying on a generic assistant, a chat mode defines how Copilot should respond, what tools it may use, and which rules it should follow. This makes conversations more consistent and helps the AI stay focused on the task at hand.

Chat modes are ideal for activities such as brainstorming new features, reviewing architecture, planning documentation, or coaching developers. Instead of repeatedly explaining how you want Copilot to behave, you define the behavior once and reuse it whenever needed.

How to create a custom chat mode

  1. Create a .github/chatmodes directory if it does not already exist.
  2. Add a new file ending with .chatmode.md.
  3. Define the chat mode's metadata, including its description and available tools.
  4. Describe the response structure you expect Copilot to follow.
  5. Add clear rules that limit the scope and style of the conversation.
  6. Save the file and select the chat mode from the Copilot Chat interface.

Example

---
description: Brainstorm ideas for new learning assignments
tools:
  - codebase
---

# Response Format

For every response:

1. Summarize the current project or codebase.
2. Suggest 3–5 new ideas.
3. Explain why each idea is valuable.
4. End with one follow-up question.

# Rules

- Keep responses concise.
- Focus on ideas, not implementation details.
- Build on existing project content.
- Always finish with a question.

Once the chat mode is available, every conversation follows the same structure and objectives. This produces more predictable responses and reduces the need to rewrite prompts for recurring activities.

Best practices

  • Create one chat mode for each recurring role or workflow.
  • Define a clear response format with consistent sections.
  • Limit the scope so Copilot stays focused.
  • Keep rules short and unambiguous.
  • Combine chat modes with instruction files, templates, and reusable prompts for an even more consistent AI-assisted workflow.
chatmodes
copilot
brainstorming
workflow
productivity

Comments