GitHub Copilot Handbook
GitHub Copilot Handbook
Your guide to customizing and getting the most out of GitHub Copilot
Resources
Official VS Code documentation for GitHub Copilot features and customization.
| Resource | Summary |
|---|---|
| Copilot Features Cheat Sheet | Complete reference: chat interfaces, inline suggestions, context controls, agents |
| Chat Sessions | Session lifecycle, checkpoints, rollback, export as JSON or .prompt.md |
| Chat Context | #-mentions, @-participants, workspace indexing, context window visualization |
| Chat Tools | Built-in, MCP, and extension tools; approval system, sandboxing, security |
| Smart Actions | 15 integrated actions: commits, PRs, merge conflicts, docs, tests, rename |
| Context Engineering Guide | Curate context → create plans → generate code; project docs as AI memory |
| Prompt Engineering Guide | Practical tips for effective prompts in inline suggestions and chat |
| Prompt Engineering for Copilot Chat | GitHub official guide: effective prompts, examples, breaking down tasks, avoiding ambiguity |
| Copilot CLI Best Practices | Strategies for Copilot CLI: customization, planning, delegation, team workflows |
| Custom Instructions | AGENTS.md, copilot-instructions.md, /init for workspace-tailored guidelines |
| Customization Overview | Layers: instructions → skills → prompts → agents → MCP → model selection |
| Prompt Files | .prompt.md templates with YAML frontmatter, dynamic variables, tool integration |
| Custom Agents | .agent.md personas with handoff system, scoped tool access |
| Agent Skills | SKILL.md packages, progressive loading, portable via agentskills.io standard |
| Subagents | Isolated context windows for parallel tasks, token-efficient delegation |
| Agents Tutorial | Local → Background → Cloud agents; planning-first approach |
| Background Agents | Autonomous CLI-based execution in Git worktrees, no supervision required |
Study Guide
A structured learning path from fundamentals to advanced customization.
Phase 1: Understand the Platform
Start by learning what Copilot can do and how it processes context — this is the foundation everything else builds on.
- Copilot Features Cheat Sheet — Get oriented. Know what's available: chat views, inline suggestions, smart actions, context controls.
- Chat Sessions + Chat Context — Understand how sessions work and how Copilot gathers context. This is the mental model for everything that follows.
- Chat Tools — Learn the tool system (built-in, MCP, extensions) and approval model.
- Smart Actions — Built-in actions for commits, docs, tests, conflict resolution — use these before building custom solutions.
Phase 2: Context Engineering & Prompting
The single most important skill for effective AI-assisted development. Poor context = poor output.
- Context Engineering Guide — Official VS Code guide: curate context → create plans → generate code.
- Context Engineering — Manus-inspired principles: filesystem as memory, plan repetition, failure traces, cache optimization.
- 📺 Subagents: Parallel Execution and Context Isolation — How subagents enable isolated context windows for parallel tasks.
- AI Coding Best Practices — Plan architecture upfront, tell AI what NOT to do, use different modes strategically.
- Custom Instructions — Set up
AGENTS.mdandcopilot-instructions.md; use/initto bootstrap workspace guidelines. - Prompt Engineering Guide — Practical tips for writing effective prompts for inline suggestions and chat.
- Prompt Engineering for Copilot Chat — GitHub official guide: effective prompts, examples, breaking down complex tasks.
- Prompt Engineering — Comprehensive guide covering fundamentals, advanced reasoning strategies (CoT, ToT, AoT, Reflexion), and best practices.
Phase 3: Define Your Standards
Before automating anything, define what "good" looks like for your team.
- Coding Guidelines — C# patterns, code organization conventions.
- Coding Style — Formatting and naming conventions.
- Testing (xUnit) — Test patterns, fixtures, assertions.
- Git Messages — Commit message format and conventions.
- Code Review — Code review agent with prioritized feedback.
Phase 4: Automate with Customizations
Now encode your standards into reusable prompts, agents, and skills.
- Customization Overview — Understand the layering: instructions → skills → prompts → agents → MCP.
- Prompt Files — Learn
.prompt.mdformat, then study handbook prompts:- Commit — Conventional commits with emoji categorization
- Pros and Cons — Decision analysis framework
- Session Reflection — Capture session learnings
- Custom Agents — Learn
.agent.mdformat, then study handbook agents:- Debug — 4-phase systematic debugging
- Research — Recursive exploration with source analysis
- Differ — Git branch diff summaries
- Spec Interview — Structured requirement gathering with plan handoff
- Code Review — Prioritized review (Critical → Low)
- Agent Skills — Learn
SKILL.mdformat, then study handbook skills:- .NET Run File — Execute C# scripts directly
- .NET Test — Selective test execution
- .NET Dependency — NuGet dependency management
- Planning with Files — Persistent task tracking
Phase 5: Scale with Agents
Delegate complex, multi-step work to autonomous agents.
- Subagents — Isolated context for parallel delegation.
- Agents Tutorial — Build Local → Background → Cloud agent workflows.
- Background Agents — Autonomous execution in worktrees.
- Copilot CLI Best Practices — Strategies for CLI agent workflows: customization, planning, delegation.
Phase 6: Reflect & Iterate
Close the feedback loop. The best setups evolve continuously.
- Session Reflection — Meta-analysis of how work was done, not what was built.
- Use
/reflectafter complex sessions → accumulate insights → extract patterns into new instructions, prompts, or skills.
External Resources
awesome-copilot — A curated list of awesome resources for GitHub Copilot.