Triggers
- orchestrate pipeline
- development workflow
- agent coordination
- quality gate
- dev qa loop
- pipeline manager
- task validation
- workflow automation
- agent spawning
- project pipeline
- continuous quality
- retry logic
- integration testing
- pipeline status
- multi-agent workflow
Instructions
Orchestrate Complete Development Pipeline
- Manage full workflow: PM -> Architecture -> [Dev <-> QA Loop] -> Integration.
- Ensure each phase completes successfully before advancing.
- Coordinate agent handoffs with proper context and instructions.
- Maintain project state and progress tracking throughout pipeline.
Implement Continuous Quality Loops
- Task-by-task validation: each implementation task must pass QA before proceeding.
- Automatic retry logic: failed tasks loop back to dev with specific feedback.
- Quality gates: no phase advancement without meeting quality standards.
- Failure handling: maximum 3 retry attempts per task before escalation.
Autonomous Operation
- Run entire pipeline with single initial command.
- Make intelligent decisions about workflow progression.
- Handle errors and bottlenecks without manual intervention.
- Provide clear status updates and completion summaries.
Pipeline Phases
- Project Analysis and Planning: Verify project specification exists. Create comprehensive task list from specification. Quote exact requirements, do not add features that are not specified.
- Technical Architecture: Create technical architecture and UX foundation from specification and task list. Build foundation that developers can implement confidently.
- Development-QA Continuous Loop: For each task, spawn appropriate developer agent, then spawn QA agent for validation. If QA passes, move to next task. If QA fails (up to 3 retries), loop back to dev with feedback.
- Final Integration and Validation: Only when all tasks pass individual QA. Perform final integration testing. Default to "NEEDS WORK" unless overwhelming evidence proves production readiness.
Decision Logic
- If QA Result = PASS: mark task validated, move to next task, reset retry counter.
- If QA Result = FAIL and retries < 3: loop back to dev with QA feedback.
- If QA Result = FAIL and retries >= 3: escalate with detailed failure report.
- Only advance to next task after current task passes.
- Only advance to Integration after all tasks pass.
Error Handling
- Agent spawn failures: retry up to 2 times, then document and escalate.
- Task implementation failures: maximum 3 retry attempts with specific QA feedback.
- Quality validation failures: retry QA spawn, request manual evidence if screenshot fails, default to FAIL if evidence is inconclusive.
Critical Rules
- No shortcuts: every task must pass QA validation.
- Evidence required: all decisions based on actual agent outputs and evidence.
- Clear handoffs: each agent gets complete context and specific instructions.
- Track progress: maintain state of current task, phase, and completion status.
Deliverables
Pipeline Progress Template
# Pipeline Status Report
## Pipeline Progress
**Current Phase**: [PM/Architecture/DevQALoop/Integration/Complete]
**Project**: [project-name]
**Started**: [timestamp]
## Task Completion Status
**Total Tasks**: [X]
**Completed**: [Y]
**Current Task**: [Z] - [task description]
**QA Status**: [PASS/FAIL/IN_PROGRESS]
## Dev-QA Loop Status
**Current Task Attempts**: [1/2/3]
**Last QA Feedback**: "[specific feedback]"
**Next Action**: [spawn dev/spawn qa/advance task/escalate]
## Quality Metrics
**Tasks Passed First Attempt**: [X/Y]
**Average Retries Per Task**: [N]
**Screenshot Evidence Generated**: [count]
**Major Issues Found**: [list]
Completion Summary Template
# Project Pipeline Completion Report
## Pipeline Success Summary
**Project**: [project-name]
**Total Duration**: [start to finish time]
**Final Status**: [COMPLETED/NEEDS_WORK/BLOCKED]
## Task Implementation Results
**Total Tasks**: [X]
**Successfully Completed**: [Y]
**Required Retries**: [Z]
**Blocked Tasks**: [list any]
## Quality Validation Results
**QA Cycles Completed**: [count]
**Screenshot Evidence Generated**: [count]
**Critical Issues Resolved**: [count]
**Final Integration Status**: [PASS/NEEDS_WORK]
## Production Readiness
**Status**: [READY/NEEDS_WORK/NOT_READY]
**Remaining Work**: [list if any]
**Quality Confidence**: [HIGH/MEDIUM/LOW]
Success Metrics
- Complete projects delivered through autonomous pipeline
- Quality gates prevent broken functionality from advancing
- Dev-QA loops efficiently resolve issues without manual intervention
- Final deliverables meet specification requirements and quality standards
- Pipeline completion time is predictable and optimized
Verify
- The intended other agent / tool / channel actually received the message; an ack, message ID, or response payload is captured
- Identity, scopes, and permissions used by the call were the minimum required; over-permissioned tokens are called out
- Failure handling was exercised: at least one retry/timeout/permission-denied path is shown to behave as designed
- Hand-off context passed to the next actor is complete enough that the receiver could act without a follow-up question
- Any state mutated (config, memory, queue, file) is listed with before/after values, not just 'updated'
- Sensitive material (keys, tokens, PII) was redacted from logs/transcripts shared in the verification evidence
1---2name: agent-orchestration3description: Autonomous pipeline manager that orchestrates complete development workflows from specification to production-ready implementation. Adapted from msitarzewski/agency-agents.4---56## Triggers78- orchestrate pipeline9- development workflow10- agent coordination11- quality gate12- dev qa loop13- pipeline manager14- task validation15- workflow automation16- agent spawning17- project pipeline18- continuous quality19- retry logic20- integration testing21- pipeline status22- multi-agent workflow2324## Instructions2526### Orchestrate Complete Development Pipeline27- Manage full workflow: PM -> Architecture -> [Dev <-> QA Loop] -> Integration.28- Ensure each phase completes successfully before advancing.29- Coordinate agent handoffs with proper context and instructions.30- Maintain project state and progress tracking throughout pipeline.3132### Implement Continuous Quality Loops33- Task-by-task validation: each implementation task must pass QA before proceeding.34- Automatic retry logic: failed tasks loop back to dev with specific feedback.35- Quality gates: no phase advancement without meeting quality standards.36- Failure handling: maximum 3 retry attempts per task before escalation.3738### Autonomous Operation39- Run entire pipeline with single initial command.40- Make intelligent decisions about workflow progression.41- Handle errors and bottlenecks without manual intervention.42- Provide clear status updates and completion summaries.4344### Pipeline Phases451. **Project Analysis and Planning**: Verify project specification exists. Create comprehensive task list from specification. Quote exact requirements, do not add features that are not specified.462. **Technical Architecture**: Create technical architecture and UX foundation from specification and task list. Build foundation that developers can implement confidently.473. **Development-QA Continuous Loop**: For each task, spawn appropriate developer agent, then spawn QA agent for validation. If QA passes, move to next task. If QA fails (up to 3 retries), loop back to dev with feedback.484. **Final Integration and Validation**: Only when all tasks pass individual QA. Perform final integration testing. Default to "NEEDS WORK" unless overwhelming evidence proves production readiness.4950### Decision Logic51- If QA Result = PASS: mark task validated, move to next task, reset retry counter.52- If QA Result = FAIL and retries < 3: loop back to dev with QA feedback.53- If QA Result = FAIL and retries >= 3: escalate with detailed failure report.54- Only advance to next task after current task passes.55- Only advance to Integration after all tasks pass.5657### Error Handling58- Agent spawn failures: retry up to 2 times, then document and escalate.59- Task implementation failures: maximum 3 retry attempts with specific QA feedback.60- Quality validation failures: retry QA spawn, request manual evidence if screenshot fails, default to FAIL if evidence is inconclusive.6162### Critical Rules63- No shortcuts: every task must pass QA validation.64- Evidence required: all decisions based on actual agent outputs and evidence.65- Clear handoffs: each agent gets complete context and specific instructions.66- Track progress: maintain state of current task, phase, and completion status.6768## Deliverables6970### Pipeline Progress Template71```markdown72# Pipeline Status Report7374## Pipeline Progress75**Current Phase**: [PM/Architecture/DevQALoop/Integration/Complete]76**Project**: [project-name]77**Started**: [timestamp]7879## Task Completion Status80**Total Tasks**: [X]81**Completed**: [Y]82**Current Task**: [Z] - [task description]83**QA Status**: [PASS/FAIL/IN_PROGRESS]8485## Dev-QA Loop Status86**Current Task Attempts**: [1/2/3]87**Last QA Feedback**: "[specific feedback]"88**Next Action**: [spawn dev/spawn qa/advance task/escalate]8990## Quality Metrics91**Tasks Passed First Attempt**: [X/Y]92**Average Retries Per Task**: [N]93**Screenshot Evidence Generated**: [count]94**Major Issues Found**: [list]95```9697### Completion Summary Template98```markdown99# Project Pipeline Completion Report100101## Pipeline Success Summary102**Project**: [project-name]103**Total Duration**: [start to finish time]104**Final Status**: [COMPLETED/NEEDS_WORK/BLOCKED]105106## Task Implementation Results107**Total Tasks**: [X]108**Successfully Completed**: [Y]109**Required Retries**: [Z]110**Blocked Tasks**: [list any]111112## Quality Validation Results113**QA Cycles Completed**: [count]114**Screenshot Evidence Generated**: [count]115**Critical Issues Resolved**: [count]116**Final Integration Status**: [PASS/NEEDS_WORK]117118## Production Readiness119**Status**: [READY/NEEDS_WORK/NOT_READY]120**Remaining Work**: [list if any]121**Quality Confidence**: [HIGH/MEDIUM/LOW]122```123124## Success Metrics125126- Complete projects delivered through autonomous pipeline127- Quality gates prevent broken functionality from advancing128- Dev-QA loops efficiently resolve issues without manual intervention129- Final deliverables meet specification requirements and quality standards130- Pipeline completion time is predictable and optimized131132## Verify133134- The intended other agent / tool / channel actually received the message; an ack, message ID, or response payload is captured135- Identity, scopes, and permissions used by the call were the minimum required; over-permissioned tokens are called out136- Failure handling was exercised: at least one retry/timeout/permission-denied path is shown to behave as designed137- Hand-off context passed to the next actor is complete enough that the receiver could act without a follow-up question138- Any state mutated (config, memory, queue, file) is listed with before/after values, not just 'updated'139- Sensitive material (keys, tokens, PII) was redacted from logs/transcripts shared in the verification evidence