Skip to content

GitHub Copilot Agents Hub

Your single source of truth for building, managing, and deploying custom GitHub Copilot agents, instructions, skills, and prompts across your team.


Quick Start

Get up and running in 5 minutes:

# 1. Clone the repository
git clone https://github.com/YOUR-ORG/copilot-agents-hub.git
cd copilot-agents-hub

# 2. Run setup (creates symlinks to VS Code config)
bash scripts/setup-vscode.sh

# 3. Restart VS Code
# Cmd+Shift+P โ†’ Reload Window

# 4. Open Copilot Chat
# Cmd+Shift+I โ†’ Type @ โ†’ See agents

Done! You now have access to all custom agents across your machines.


What This Guide Covers

This documentation is organized into increasing levels of depth:

Level What You Will Learn
Fundamentals What agents, instructions, skills, and prompts are and why they exist
Clarification How Copilot agents differ from broader agentic AI systems
Slash Commands vs Agents Understand / (one-off tasks) vs @ (persistent agent context)
Intermediate How the primitives compose, configuration patterns, and real-world use cases
Advanced Hooks, multi-agent workflows, scoping, tool restrictions, and anti-patterns
IDE Compatibility Which editors support each primitive and how to configure them
Reference Guides Creating your own agents, skills, prompts, and instructions

Who Should Read This


Quick Mental Model

flowchart TD
    User["Developer in IDE"] --> Chat["Copilot Chat"]
    Chat --> Agent["Custom Agent (.agent.md)"]
    Chat --> Prompt["Prompt (.prompt.md)"]
    Agent --> Instructions["Instructions (.instructions.md)"]
    Agent --> Skills["Skills (SKILL.md)"]
    Agent --> Tools["MCP ยท Built-in Tools ยท Hooks"]
    Prompt --> Instructions

Repository Structure

copilot-agents-hub/
โ”œโ”€โ”€ .github/                      โ† Code only (no docs)
โ”‚   โ”œโ”€โ”€ agents/                   โ† Custom agent definitions (.agent.md)
โ”‚   โ”œโ”€โ”€ prompts/                  โ† Reusable prompt templates (.prompt.md)
โ”‚   โ”œโ”€โ”€ instructions/             โ† File-pattern instructions (.instructions.md)
โ”‚   โ”œโ”€โ”€ skills/                   โ† Skill bundles (SKILL.md + assets)
โ”‚   โ”œโ”€โ”€ workflows/                โ† GitHub Actions workflows
โ”‚   โ””โ”€โ”€ copilot-instructions.md   โ† Workspace-level rules
โ”œโ”€โ”€ docs/                         โ† MkDocs documentation
โ”‚   โ”œโ”€โ”€ fundamentals/             โ† Core concepts
โ”‚   โ”œโ”€โ”€ intermediate/             โ† Working together patterns
โ”‚   โ”œโ”€โ”€ advanced/                 โ† Advanced patterns
โ”‚   โ”œโ”€โ”€ ide-compatibility/        โ† IDE setup guides
โ”‚   โ”œโ”€โ”€ reference/                โ† Creating agents, skills, prompts, instructions
โ”‚   โ”œโ”€โ”€ setup.md                  โ† Detailed setup guide
โ”‚   โ”œโ”€โ”€ agents-index.md           โ† Agent registry
โ”‚   โ””โ”€โ”€ index.md                  โ† This file
โ”œโ”€โ”€ .vscode/                      โ† VS Code workspace settings
โ”œโ”€โ”€ scripts/                      โ† Automation scripts
โ””โ”€โ”€ mkdocs.yml                    โ† Documentation configuration

Running the Docs Locally

# One-liner (installs mkdocs-material if missing, then serves)
bash scripts/serve-docs.sh

Or manually:

pip install -r requirements.txt
mkdocs serve
# โ†’ http://127.0.0.1:8000

To build a static site for deployment:

mkdocs build
# Output goes to site/

Key Components

๐Ÿค– Agents (.agent.md)

Specialized AI personas for specific tasks. Use in Copilot Chat with @agent-name.

Current agents: - โœ… mkdocs-content โ€” MkDocs documentation specialist

๐Ÿ“‹ Instructions (.instructions.md)

Auto-applied file-level style guides. Appear automatically when editing matching file types.

๐Ÿ› ๏ธ Skills (Bundled reference libraries)

Templates, configs, and examples. Access with /skill-name in Copilot Chat.

Current skills: - โœ… mkdocs-docs โ€” Complete MkDocs setup library

๐Ÿ“ Prompts (.prompt.md)

Parameterized single-task workflows. Access with /prompt-name in Copilot Chat.


Next Steps

  1. Complete setup โ€” Run bash scripts/setup-vscode.sh
  2. Test it out โ€” Open Copilot Chat, type @, select an agent
  3. Read about your domain โ€” Pick a section from "What This Guide Covers" above
  4. Create your first agent โ€” See Reference Guides
  5. Sync to other machines โ€” Push to GitHub, clone elsewhere, run setup script

Learning Path

Step What Time
1 Quick Start (above) 5 mins
2 Fundamentals 10 mins
3 Setup Guide 5 mins
4 Agents Index 2 mins
5 Create Your First Agent 15 mins
6 Sync Across Machines 5 mins

Validate Before Pushing to GitHub

bash scripts/validate-agents.sh

Checks: - โœ“ All agents have valid YAML - โœ“ Agent names match filenames - โœ“ No duplicate names - โœ“ Configuration is complete