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¶
- New to Copilot agents โ start at Fundamentals
- Confused about "agents" vs "agentic AI" โ read Clarification
- Wondering about
/slashvs@agentโ see Slash Commands vs Agents - Building team workflows โ jump to Intermediate Concepts
- Architecting complex pipelines โ go straight to Advanced Patterns
- Using JetBrains or other IDEs โ check IDE Compatibility
- Creating custom agents โ see Reference Guides
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¶
- Complete setup โ Run
bash scripts/setup-vscode.sh - Test it out โ Open Copilot Chat, type
@, select an agent - Read about your domain โ Pick a section from "What This Guide Covers" above
- Create your first agent โ See Reference Guides
- 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