Orchestrates complex multi-agent workflows for features requiring coordinated work across multiple GitHub Copilot agents...
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_readWhen 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]