A production-ready .github/ configuration that turns GitHub Copilot into a structured, consistent AI development partner for your team.
What you get in ~3 hours of setup:
- 8 specialist agents (Discuss, Research, Planner, TDD, Reviewer, Verify, ApiBuilder, ParallelBuilder)
- 15 slash command prompts (
/start-issue,/discuss,/research,/plan,/execute,/verify,/debug,/add-new-api,/finish-branch,/generate-api-doc,/update-api-doc,/receive-review,/status,/sync-docs,/summarize) - Auto-loading instructions per file type (architecture rules, commenting standards, doc-on-change)
- 13 auto-loading skills (TDD, doc-reviewer, GitHub CLI workflow, GitLab CLI workflow, Playwright, code review patterns)
- Playwright testing skills and instructions
- Session hooks (auto-commit + structured activity log)
- 9 documentation templates + 7 codebase knowledge templates
- GitHub CLI integration (automatic issue/PR creation and merge)
- GitLab CLI integration (automatic issue/MR creation and merge)
- Work folder structure (
work/ISSUE-XXX-name/) to prevent merge conflicts - Activity logging (
logs/copilot/agent-activity.log) for audit trail - Dual-mode execution (Agent Mode for complex features, TDD Agent for routine work)
- A 11-part beginner-friendly learn series in
learn/(at repo root β not copied on install)
What's New in V2 (March 2026): Work folder structure, GitHub and GitLab CLI integration, dual-mode execution, fixed agent handoff chain, activity logging. See MIGRATION-V2.md for upgrade guide.
Learn more: Start with
learn/00-introduction.mdor read it as a website: srisatyalokesh.github.io/copilot-team-workflow
# Navigate to your project
cd your-project
# Clone the boilerplate
git clone https://github.com/SriSatyaLokesh/copilot-team-workflow.git copilot-boilerplate
# Copy .github folder and docs structure (excludes learn/ and boilerplate-only docs)
Copy-Item -Recurse copilot-boilerplate\.github .\
$excludeDocs = @('learn','AGENT-MODE-VS-TDD-AGENT.md','blog-best-way-to-use-copilot.md','COMPLETE-WORKFLOW-VISUAL.md','CONTRIBUTING.md','copilot-team-setup-guide.md','DEVELOPER-STANDARD-GUIDE.md','MIGRATION-V2.md','MODEL-SELECTION.md','RESEARCH-DECISIONS.md','team-copilot-guide.md','vscode-team-copilot-research.md','WHATS-NEW-V2.md','WORK-FOLDER-STRUCTURE.md')
Get-ChildItem copilot-boilerplate\docs -Exclude $excludeDocs | Copy-Item -Destination .\docs -Recurse -Force
# Create required local folders (logs and work folders never committed)
New-Item -ItemType Directory -Force logs\copilot, work
# Make hook scripts executable (if using WSL/Git Bash)
# git update-index --chmod=+x .github/hooks/session-auto-commit/auto-commit.sh
# git update-index --chmod=+x .github/hooks/session-logger/*.sh
# Add logs folder to .gitignore
Add-Content .gitignore "`nlogs/`nwork/"
# Clean up
Remove-Item -Recurse -Force copilot-boilerplate
# Commit
git add .github/ docs/ .gitignore
git commit -m "chore: add Copilot team workflow boilerplate"
git push# Navigate to your project
cd your-project
# Clone the boilerplate
git clone https://github.com/SriSatyaLokesh/copilot-team-workflow.git copilot-boilerplate
# Copy .github folder and docs structure (excludes learn/ and boilerplate-only docs)
cp -r copilot-boilerplate/.github ./
rsync -av \
--exclude='learn/' \
--exclude='AGENT-MODE-VS-TDD-AGENT.md' \
--exclude='blog-best-way-to-use-copilot.md' \
--exclude='COMPLETE-WORKFLOW-VISUAL.md' \
--exclude='CONTRIBUTING.md' \
--exclude='copilot-team-setup-guide.md' \
--exclude='DEVELOPER-STANDARD-GUIDE.md' \
--exclude='MIGRATION-V2.md' \
--exclude='MODEL-SELECTION.md' \
--exclude='RESEARCH-DECISIONS.md' \
--exclude='team-copilot-guide.md' \
--exclude='vscode-team-copilot-research.md' \
--exclude='WHATS-NEW-V2.md' \
--exclude='WORK-FOLDER-STRUCTURE.md' \
copilot-boilerplate/docs/ ./docs/ 2>/dev/null || {
cp -r copilot-boilerplate/docs ./
rm -rf docs/learn docs/AGENT-MODE-VS-TDD-AGENT.md docs/blog-best-way-to-use-copilot.md \
docs/COMPLETE-WORKFLOW-VISUAL.md docs/CONTRIBUTING.md docs/copilot-team-setup-guide.md \
docs/DEVELOPER-STANDARD-GUIDE.md docs/MIGRATION-V2.md docs/MODEL-SELECTION.md \
docs/RESEARCH-DECISIONS.md docs/team-copilot-guide.md docs/vscode-team-copilot-research.md \
docs/WHATS-NEW-V2.md docs/WORK-FOLDER-STRUCTURE.md
}
# Create required local folders (logs and work folders never committed)
mkdir -p logs/copilot work
# Make hook scripts executable
chmod +x .github/hooks/session-auto-commit/auto-commit.sh
chmod +x .github/hooks/session-logger/*.sh
# Add logs and work folders to .gitignore
echo -e "logs/\nwork/" >> .gitignore
# Clean up
rm -rf copilot-boilerplate
# Commit
git add .github/ docs/ .gitignore
git commit -m "chore: add Copilot team workflow boilerplate"
git push| Copied into your project | Not copied (boilerplate-only) |
|---|---|
docs/README.md |
AGENT-MODE-VS-TDD-AGENT.md |
docs/project.md |
blog-best-way-to-use-copilot.md |
docs/templates/ (11 templates) |
COMPLETE-WORKFLOW-VISUAL.md |
docs/codebase/ (7 scaffold files) |
CONTRIBUTING.md |
docs/apis/ (README + example) |
copilot-team-setup-guide.md |
docs/flows/ (README + example) |
DEVELOPER-STANDARD-GUIDE.md |
docs/external-apis/ (README + example) |
MIGRATION-V2.md |
docs/issues/ (README + example) |
MODEL-SELECTION.md |
docs/decisions/ (empty folder) |
RESEARCH-DECISIONS.md |
docs/team-notes/ (empty folder) |
team-copilot-guide.md |
vscode-team-copilot-research.md |
|
WHATS-NEW-V2.md |
|
WORK-FOLDER-STRUCTURE.md |
learn/is never copied β it's a standalone guide, read at the boilerplate repo.
After copying, enable Copilot customization features in your workspace .vscode/settings.json:
{
"github.copilot.chat.codeGeneration.useInstructionFiles": true,
"chat.promptFilesLocations": [".github/prompts"],
"chat.instructionsFilesLocations": [".github/instructions"],
"chat.promptFilesRecommendations": {
"start-issue": true,
"status": true,
"debug": true
}
}
chat.promptFilesRecommendations: Surfaces/start-issue,/status, and/debugas suggested actions when opening a new chat session β ensures developers always start from the correct entry point and can quickly check their progress.
Then reload VS Code to pick up the agents, instructions, and prompts.
π‘ Auto-generate project instructions: Type
/initin Copilot Chat to have Copilot analyze your workspace and generate tailored instructions. Paste the output into.github/copilot-instructions.mdunder## Conventions.
After installation, edit these 4 files for your project:
| File | What to change |
|---|---|
.github/copilot-instructions.md |
Your project name, tech stack, key doc links |
.github/instructions/api-architecture.instructions.md |
Your folder paths (src/controllers/, src/wrappers/, etc.) |
.github/instructions/backend.instructions.md |
Your framework, ORM, validation library |
.github/instructions/frontend.instructions.md |
Your frontend stack (React, Next.js, Vue, etc.) |
.github/skills/acquire-codebase-knowledge/SKILL.md |
Initial codebase mapping questions and standards |
π Model Selection: All agents and prompts come with optimized model assignments (GPT-4o, Claude Sonnet/Opus, Haiku). See
docs/MODEL-SELECTION.mdfor the rationale and how to customize.
Everything else works out of the box.
.github/
βββ copilot-instructions.md β Edit: your project overview + SETUP REQUIRED block
βββ tool-sets.json β Pre-defined tool groups (read-only, full-dev, review)
βββ instructions/
β βββ developer-guide.instructions.md β Always loaded β workflow overview
β βββ api-architecture.instructions.md β Loaded on src/wrappers/**, src/services/**
β βββ backend.instructions.md β Loaded on src/**/*.ts
β βββ frontend.instructions.md β Loaded on src/**/*.tsx
β βββ testing.instructions.md β Loaded on **/*.test.*
β βββ playwright-typescript.instructions.md β Playwright test standards
β βββ self-explanatory-code-commenting.instructions.md β Comment WHY not WHAT
β βββ update-docs-on-code-change.instructions.md β Doc sync on code change
β βββ parallel-agents.instructions.md β When and how to use parallel agents
βββ agents/ β 8 specialist agents
β βββ discuss.agent.md β Phase 1: requirements (argument-hint β
)
β βββ research.agent.md β Phase 2: codebase exploration (argument-hint β
)
β βββ plan.agent.md β Phase 3: task breakdown (argument-hint β
)
β βββ tdd.agent.md β Phase 4: TDD implementer (argument-hint β
)
β βββ review.agent.md β Code quality reviewer
β βββ verify.agent.md β Phase 5: done-check (argument-hint β
)
β βββ api-builder.agent.md β External API integrations (argument-hint β
)
β βββ parallel-builder.agent.md β Orchestrator: dispatches independent tasks in parallel
βββ prompts/ β 15 slash commands
β βββ start-issue.prompt.md β /start-issue (Entry point β always start here)
β βββ discuss.prompt.md β /discuss (define requirements)
β βββ research.prompt.md β /research (find existing patterns)
β βββ plan.prompt.md β /plan (create implementation tasks)
β βββ execute.prompt.md β /execute (dual-mode: Agent Mode or TDD Agent)
β βββ verify.prompt.md β /verify (check completeness)
β βββ debug.prompt.md β /debug (troubleshooting)
β βββ add-new-api.prompt.md β /add-new-api (external API integration)
β βββ receive-review.prompt.md β /receive-review (handle feedback)
β βββ finish-branch.prompt.md β /finish-branch (merge/PR/discard)
β βββ generate-api-doc.prompt.md β /generate-api-doc (new API endpoint doc)
β βββ update-api-doc.prompt.md β /update-api-doc (sync existing doc)
β βββ status.prompt.md β /status (check current phase)
β βββ summarize.prompt.md β /summarize (save session context)
β βββ sync-docs.prompt.md β /sync-docs (bulk doc updates)
βββ workflows/ β Specialist workflows
β βββ acquire-codebase-knowledge.md β Factual codebase mapping procedure
βββ skills/ β 13 auto-loading knowledge packs
β βββ acquire-codebase-knowledge/SKILL.md β Factual codebase mapping (Arch, Stack, etc.)
β βββ agent-activity-logger/SKILL.md β Log format reference
β βββ doc-reviewer/SKILL.md β Brutal doc review (Critical/Major/Minor)
β βββ documentation-writer/SKILL.md β DiΓ‘taxis-guided doc creation
β βββ github-cli-workflow/SKILL.md β GitHub issue/PR automation (gh CLI)
β βββ gitlab-cli-workflow/SKILL.md β GitLab issue/MR automation (glab CLI)
β βββ playwright-automation-fill-in-form/SKILL.md
β βββ playwright-explore-website/SKILL.md
β βββ playwright-generate-test/SKILL.md
β βββ receiving-code-review/SKILL.md β Evaluate-before-implement pattern
β βββ requesting-code-review/SKILL.md β Subagent review dispatch
β βββ subagent-driven-development/SKILL.md β Per-task subagent + 2-stage review
β βββ test-driven-development/SKILL.md β Iron Law TDD + Red-Green-Refactor
βββ hooks/
βββ session-auto-commit/ β Auto-commit on session end (Stop)
βββ session-logger/ β JSON audit log (SessionStart/Stop/UserPromptSubmit)
learn/ β 11-part beginner guide (standalone, not copied on install)
work/ β Active issue work folders (gitignored, local only)
logs/ β Activity logs (gitignored, local only)
docs/
βββ MIGRATION-V2.md β Upgrade guide from V1 to V2
βββ MODEL-SELECTION.md β Model assignment rationale (GPT-4o, Claude, Haiku)
βββ templates/ β Copy-paste starters for every doc type
β βββ plan-template.md β Template for work/ISSUE-XXX/plan.md
β βββ result-template.md β Template for work/ISSUE-XXX/result.md
β βββ ...
βββ codebase/ β Factual codebase knowledge (Arch, Stack, etc.)
βββ external-apis/ β Fill in: one folder per external API
βββ issues/ β (Deprecated in V2) Example issue docs only
βββ apis/ β Fill in: one doc per endpoint
βββ flows/ β Fill in: one doc per user journey
The learn/ folder at the root of this repo is a standalone guide β share it with your team or read it before installing. It is not copied when you install the boilerplate into your project.
| Part | Topic |
|---|---|
| 00 | Getting Started β Installation & Setup |
| 01 | .github folder β all 6 building blocks explained |
| 02 | 5-Phase Issue workflow (Discuss β Verify) |
| 03 | API Architecture β the layer rules |
| 04 | Documenting external APIs before writing wrappers |
| 05 | Day-to-day developer workflow |
| 06 | Hooks β what runs automatically |
| 07 | Team lead setup guide |
| 08 | Using this repo as a boilerplate |
| 09 | Test-Driven Development (TDD) |
| 10 | Subagent-Driven Development |
- GitHub Copilot (Individual, Business, or Enterprise plan)
- VS Code with the GitHub Copilot extension
jqinstalled for session-logger hook (brew install jq/sudo apt install jq)bash4+ for hook scripts (Windows: use Git Bash or WSL)
This boilerplate is designed for teams β structured phases, documentation standards, and multi-developer coordination.
If you're a solo developer building your own app, we recommend:
A lightweight Plan β Execute β Verify workflow optimized for individual developers who need to move fast with minimal ceremony. Start there, and migrate to this boilerplate when your team grows.
This boilerplate was built by studying how professional teams configure Copilot. These are the primary sources:
| Resource | What you'll learn |
|---|---|
| github/awesome-copilot | Community collection of 172 agents, 175 instructions, 361 skills, hooks, and plugins. Browse this to find more tools to add to your setup. |
| VS Code Copilot Documentation | Official docs β agents, instructions, prompt files, customization, and all Copilot features explained in depth. |
| VS Code repository .github/ | How the team that builds VS Code uses Copilot internally β 13 instructions, 17 prompts, 11 skills in production. The gold standard for real-world usage. |