| name | amia-github-pr-workflow |
| description | Use when coordinating PR review work as orchestrator. Defines delegation rules, verification, and completion criteria. Trigger with /start-pr-review [PR_NUMBER]. Loaded by ai-maestro-integrator-agent-main-agent. |
| license | MIT |
| compatibility | Requires AI Maestro installed. |
| tags | pr-review, orchestration, delegation, verification, github |
| metadata | {"version":"1.0.0","author":"Emasoft","category":"workflow"} |
| agent | amia-api-coordinator |
| context | fork |
| user-invocable | false |
Orchestrator PR Workflow Skill
Overview
Orchestrator workflow for delegating PR reviews to subagents, verifying completion, and reporting to user.
Prerequisites
- GitHub CLI (
gh) authenticated
- Python 3.8+ and AI Maestro configured
- Subagent spawning capability
Instructions
- Poll -- Run
amia_orchestrator_pr_poll.py to get open PRs
- Classify -- Human PR = escalate; AI/bot PR = delegate directly
- Delegate -- Spawn subagent for review/changes (never do work yourself)
- Monitor -- Poll progress via background tasks (never block)
- Verify -- Run
amia_verify_pr_completion.py before reporting
Checklist
Copy this checklist and track your progress:
Critical Rules
- Never block, write code, or merge without MANAGER approval (via the chain)
- Always verify before reporting status
- Escalate human PRs up the chain (to the MANAGER / MAESTRO)
Output
| Output Type | Format | Description |
|---|
| Subagent Delegation | Task spawn | Spawned subagent with PR review/fix instructions |
| Status Report | Text/JSON | Current PR status and action recommendations |
| Verification Result | JSON | Pass/fail status for all completion criteria |
| User Notification | Text | Human-readable summary of PR readiness |
Output discipline: All scripts support --output-file <path>. Use it to minimize token consumption.
Error Handling
Script failures return non-zero exit codes. See the detailed guide in Resources for details.
Examples
python scripts/amia_orchestrator_pr_poll.py --repo owner/repo
python scripts/amia_verify_pr_completion.py --repo owner/repo --pr 123
Resources
Full index in detailed-guide:
- Decision Tree
- Scripts Reference
- amia_orchestrator_pr_poll.py
- amia_verify_pr_completion.py
- Section Index
-
- Orchestrator Responsibilities
-
- Delegation Rules
-
- Verification Workflow
-
- Worktree Coordination
-
- Human vs AI PR Assignment
-
- Completion Criteria
-
- Polling Schedule
-
- Merge Failure Recovery
- Error Handling
- Subagent not returning results
- PR status appears stale
- Completion verification fails intermittently
- Multiple subagents conflicting
- User not receiving status updates
- Extended Examples
- Example 1: Standard PR Review Coordination
- Example 2: Verify PR is Ready to Merge
- Full Reference Documents Index