Skip to content

SriSatyaLokesh/copilot-team-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

58 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GitHub Copilot Team Workflow β€” Boilerplate (V2)

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.md or read it as a website: srisatyalokesh.github.io/copilot-team-workflow


πŸš€ Installation

PowerShell (Windows)

# 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

Bash (Linux / macOS)

# 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

πŸ“‚ What Gets Copied from docs/

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.


βš™οΈ VS Code Settings

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 /debug as 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 /init in Copilot Chat to have Copilot analyze your workspace and generate tailored instructions. Paste the output into .github/copilot-instructions.md under ## Conventions.


✏️ What to Customize

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.md for the rationale and how to customize.

Everything else works out of the box.


πŸ“ What's Included

.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

πŸ“– Learn the System

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

Requirements

  • GitHub Copilot (Individual, Business, or Enterprise plan)
  • VS Code with the GitHub Copilot extension
  • jq installed for session-logger hook (brew install jq / sudo apt install jq)
  • bash 4+ for hook scripts (Windows: use Git Bash or WSL)

πŸ‘€ Building Solo? Use This Instead

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.


πŸ“š References & Further Reading

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.

About

A production-ready .github/ configuration that turns GitHub Copilot into a structured, consistent AI development partner for your team. 8 specialist agents (Discuss, Research, Planner, TDD, Reviewer, Verify, ApiBuilder), 8 slash command prompts (/discuss, /plan, /execute, /verify, /add-new-api, /code-review, and more)

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages