Orchestrates complex multi-agent workflows for features requiring coordinated work across multiple GitHub Copilot agents. Triggers on "orchestrate workflow", "coordinate these agents", "manage agent execution", or when dealing with complex features spanning multiple domains.
This skill manages complex workflows involving multiple GitHub Copilot agents working on related issues. It handles sequencing, handoffs, dependency resolution, and progress tracking for coordinated multi-agent development.
Auto-trigger when:
Manual trigger:
Coordinate multiple GitHub Copilot agents to work together on complex features:
A coordinated sequence of work items (issues) with dependencies, assigned to appropriate agents.
A logical grouping of work that can happen in parallel. Phases execute sequentially.
The transition point when one agent completes work and the next agent can start.
A verification point where progress is validated before proceeding to next phase.
See workflows/ directory for pre-defined workflow templates:
Phase 1: Backend Foundation
└─ Database Specialist → Schema changes
Phase 2: API Implementation
└─ Backend API Specialist → Endpoints (depends on Phase 1)
Phase 3: Frontend Implementation
├─ React Specialist → Components (depends on Phase 2)
└─ Tailwind UI Specialist → Styling (depends on Phase 2)
Phase 4: Integration & Testing
├─ State Management Specialist → Wire up data flow
└─ Testing Specialist → E2E tests
Phase 5: Review & Polish
├─ Code Review Specialist → Review all changes
├─ Performance Specialist → Check performance
└─ Security Specialist → Security review
Phase 1: Preparation
└─ Testing Specialist → Add tests for existing behavior
Phase 2: Refactoring
└─ Refactoring Specialist → Restructure code
Phase 3: Verification
├─ TypeScript Specialist → Fix type issues
└─ Testing Specialist → Verify tests still pass
Phase 4: Review
└─ Code Review Specialist → Ensure no behavior changes
Phase 1: Authentication
├─ Authentication Specialist → OAuth flow
└─ Security Specialist → Token security
Phase 2: API Integration
└─ [Service] API Specialist → API calls
Phase 3: Frontend
├─ React Specialist → UI components
└─ State Management Specialist → Data flow
Phase 4: Testing
└─ Testing Specialist → Integration tests
When creating a workflow:
{
id: "workflow-123",
epic: "#150",
name: "Spotify Playlist Integration",
phases: [
{
name: "Authentication",
issues: ["#151"],
agents: ["Third-Party-API-Specialist", "Authentication-Specialist"],
dependencies: [],
checkpoint: "OAuth flow working, tokens stored"
},
{
name: "API Implementation",
issues: ["#152", "#153"],
agents: ["Third-Party-API-Specialist", "Backend-API-Specialist"],
dependencies: ["Phase 1"],
checkpoint: "API endpoints return playlist data"
},
// ... more phases
],
status: "in_progress",
currentPhase: 1
}
For each phase:
mcp__github__assign_copilot_to_issue for each issuemcp__github__pull_request_read
When transitioning between phases:
## Phase Handoff: Authentication → API Implementation
**Previous Phase**: Authentication ✅ Completed
- #151 merged in PR #200
- OAuth flow working
- Tokens stored securely
**Next Phase**: API Implementation 🚀 Starting
- Agents: @Third-Party-API-Specialist, @Backend-API-Specialist
- Issues: #152, #153
- Context: Use OAuth tokens from Phase 1 to make Spotify API calls
**Handoff Notes**:
- Token storage methods available in `server/storage.ts:456`
- OAuth callback route is `/api/spotify/callback`
- Access tokens expire after 1 hour, use refresh logic
**Checkpoint**: API endpoints should return playlist data successfully
Track workflow status:
Workflow: Spotify Playlist Integration (#150)
Status: Phase 2 of 4 (50% complete)
✅ Phase 1: Authentication (Completed 2 hours ago)
- #151: Spotify OAuth flow → Merged in PR #200
🚀 Phase 2: API Implementation (In Progress)
- #152: Playlist search API → PR #201 (in review)
- #153: Track metadata API → Assigned, not started
⏳ Phase 3: Frontend (Blocked - waiting on Phase 2)
- #154: Playlist browser UI
- #155: Playback controls
⏳ Phase 4: Testing (Blocked - waiting on Phase 3)
- #156: E2E tests for playlist flow
Using GitHub MCP tools to monitor in real-time:
mcp__github__search_pull_requests to find new PRsmcp__github__pull_request_read with method: "get"mcp__github__pull_request_read with method: "get_status"mcp__github__pull_request_read with method: "get_reviews"pr.merged === truemcp__github__issue_read to check if closed// Poll every 5 minutes
while (!phaseComplete) {
for (const issueNum of phaseIssues) {
const issue = await mcp__github__issue_read({
method: "get",
owner: "{owner}",
repo: "{repo}",
issue_number: issueNum
})
// Check if issue has linked PR
if (issue.pull_request) {
const pr = await mcp__github__pull_request_read({
method: "get",
owner: "{owner}",
repo: "{repo}",
pullNumber: issue.pull_request.number
})
// Track progress
if (pr.merged) {
markIssueComplete(issueNum)
}
}
}
await sleep(300000) // 5 minutes
}
Before moving to next phase, validate via GitHub MCP:
mcp__github__issue_read to verify state === "closed"pr.merged === true for each PRpull_request_read with method: "get_status"
conclusion: "success"Update epic issue with progress:
## Workflow Progress
**Last Updated**: 2025-01-15 14:30 UTC
### Phase 1: Authentication ✅
- #151 Completed (PR #200)
### Phase 2: API Implementation 🚀 IN PROGRESS
- #152 In Review (PR #201)
- #153 Not Started
### Phase 3: Frontend ⏳ BLOCKED
Waiting on #152, #153
### Phase 4: Testing ⏳ BLOCKED
Waiting on #154, #155
**Overall Progress**: 25% (1/4 phases complete)
**Estimated Completion**: 3-4 days remaining
When two agents need to modify the same file:
When PRs conflict:
When new bugs block workflow:
Pre-defined workflows in workflows/ directory:
full-stack-feature.md - Complete backend + frontend featureapi-integration.md - Third-party API integrationrefactoring.md - Safe code refactoring workflowperformance-optimization.md - Performance improvement workflowsecurity-hardening.md - Security improvement workflowtesting-pyramid.md - Comprehensive test coverage workflowTypical flow:
Issue Creation → Agent Assignment → Workflow Orchestration → PR Review → Merge
↑ ↑ ↑ ↑ ↑
| | | | |
MCP Orchestrator Agent Coordinator Workflow Orchestrator PR Reviewer Done
workflows/ directoryreference/handoff-patterns.mdreference/monitoring.md# Workflow Status: [Workflow Name]
**Epic**: #[NUM]
**Started**: [Date]
**Current Phase**: [N of M]
**Overall Status**: [On Track | At Risk | Blocked]
## Phase Summary
### ✅ Completed Phases
- Phase 1: [Name] (Completed [date])
- Issues: #X, #Y
- PRs: #A, #B
### 🚀 Active Phase
- Phase 2: [Name] (In Progress)
- Issues: #C (in review), #D (assigned)
- Blockers: None
- Checkpoint: [Criteria]
### ⏳ Upcoming Phases
- Phase 3: [Name] (Blocked by Phase 2)
- Phase 4: [Name] (Blocked by Phase 3)
## Next Actions
1. [Action 1]
2. [Action 2]
## Risks
- [Risk 1] - [Mitigation]
- [Risk 2] - [Mitigation]
**Estimated Completion**: [Date / Days remaining]