workflow-steps.jsonβ’8.43 kB
{
"workflowSteps": [
{
"name": "context_gathering_and_analysis",
"description": "Gather and analyze all relevant task context, including description, codebase analysis, and research findings.",
"sequenceNumber": 1,
"isRequired": true,
"stepType": "ACTION",
"approach": "Intelligently retrieve comprehensive task information to build a foundation for strategic planning.",
"approachGuidance": {
"stepByStep": [
"Review message history to identify existing context and requirements provided by the product-manager role.",
"If context is insufficient, execute the 'TaskOperations.get' MCP operation to fetch the full task details.",
"Ensure the MCP call includes parameters to retrieve the description, codebase analysis, research findings, and any existing subtasks.",
"When making the MCP call, use serviceName: 'TaskOperations', operation: 'get', with includeDescription: true, includeAnalysis: true, includeResearch: true, includeCodeReviews: true.",
"Only execute the MCP call conditionally if context is missing from message history.",
"Synthesize all gathered information to form a complete understanding of the task's objectives, constraints, and technical landscape."
]
},
"qualityChecklist": [
"Message history reviewed for initial context.",
"Task description, business requirements, and acceptance criteria are fully understood.",
"Codebase analysis from the product-manager role has been reviewed and comprehended.",
"Research findings and recommendations have been analyzed.",
"A comprehensive understanding of the task is achieved before proceeding to planning."
],
"conditions": []
},
{
"name": "strategic_subtask_creation",
"description": "CRITICAL: Create highly-detailed, actionable subtasks ONE-BY-ONE leveraging existing comprehensive task analysis and implementing precise architectural guidance.",
"sequenceNumber": 2,
"isRequired": true,
"stepType": "ACTION",
"approach": "Leverage existing comprehensive task analysis to create implementation-ready subtasks through structured phases: analysis synthesis, strategic architecture, and quality validation.",
"approachGuidance": {
"stepByStep": [
"β οΈ CRITICAL PROTOCOL: You are the bridge between Product Manager's analysis and Senior Developer's implementation. Your subtasks must be implementation-ready with zero ambiguity.",
"π PHASE 1: SYNTHESIS & STRATEGIC FOUNDATION (5 minutes focus)",
"1. EXTRACT business objectives from task.taskDescription.businessRequirements and map to user impact",
"2. LEVERAGE architecture patterns from task.codebaseAnalysis.architectureFindings (techStack, patterns, designPrinciples)",
"3. PRIORITIZE issues from task.codebaseAnalysis.problemsIdentified by severity (critical β high β medium)",
"4. APPLY research insights from task.researchReports.recommendations to guide implementation decisions",
"5. ESTABLISH quality baseline from task.codebaseAnalysis.qualityAssessment to maintain/improve standards",
"ποΈ PHASE 2: STRATEGIC SUBTASK CREATION (Main implementation focus)",
"6. MAP each acceptanceCriteria to specific implementable subtasks using existing detailed requirements",
"7. CREATE each subtask individually with ENHANCED PROTOCOL:",
" β’ CONTEXT: Link to specific businessRequirements and acceptanceCriteria",
" β’ TECHNICAL: Use architectureFindings.fileStructure for EXACT file paths",
" β’ IMPLEMENTATION: Provide complete code examples based on existing techStack",
" β’ PATTERNS: Apply existing designPrinciples and identified patterns",
" β’ ERROR HANDLING: Address specific problemsIdentified.issues with severity-based approaches",
" β’ TESTING: Build on existing testingApproach and address testCoverage.gaps",
" β’ PERFORMANCE: Address performance issues from problemsIdentified",
" β’ SECURITY: Apply security findings from qualityGuidelines",
"8. VALIDATE each subtask addresses specific issues from problemsIdentified and aligns with research recommendations",
"π§ PHASE 3: COMPREHENSIVE QUALITY VALIDATION (Final verification)",
"9. VERIFY all acceptanceCriteria mapped to specific subtasks",
"10. CONFIRM all critical/high severity issues from problemsIdentified are addressed",
"11. ENSURE subtasks implement researchReports.recommendations and avoid identified risks",
"12. VALIDATE implementation readiness: Could senior developer implement without clarification?"
]
},
"qualityChecklist": [
"π PHASE 1 COMPLETION:",
"β
Business objectives extracted from taskDescription.businessRequirements",
"β
Architecture patterns leveraged from codebaseAnalysis.architectureFindings",
"β
Issues prioritized by severity from problemsIdentified (critical β high β medium)",
"β
Research insights applied from researchReports.recommendations",
"β
Quality baseline established from qualityAssessment metrics",
"ποΈ PHASE 2 COMPLETION:",
"β
Each acceptanceCriteria mapped to specific implementable subtasks",
"β
Individual subtask creation with unique, contextual content (no batching)",
"β
Technical precision: Exact file paths from architectureFindings.fileStructure",
"β
Complete code examples based on existing techStack and designPrinciples",
"β
Error handling addresses specific problemsIdentified.issues by severity",
"β
Testing strategy builds on testingApproach and addresses coverage gaps",
"β
Performance considerations address identified issues and metrics",
"β
Security awareness applies qualityGuidelines and addresses security issues",
"β
Each subtask validated against problemsIdentified and research alignment",
"π§ PHASE 3 COMPLETION:",
"β
All acceptanceCriteria verification: Every criteria mapped to subtasks",
"β
Critical/high severity issues confirmation: All addressed in subtasks",
"β
Research recommendations implementation: All applied and risks avoided",
"β
Developer readiness validation: Implementation possible without clarification",
"β
Comprehensive coverage: No gaps in businessRequirements or technicalRequirements",
"β
Quality standards: Maintains/improves existing qualityAssessment baseline"
],
"conditions": [
{
"name": "context_gathering_completed",
"conditionType": "PREVIOUS_STEP_COMPLETED",
"logic": {
"check": "step_completed",
"parameters": {
"stepName": "context_gathering_and_analysis"
}
},
"isRequired": true
}
]
},
{
"name": "role_transition",
"description": "Transition to senior developer with strategic context",
"sequenceNumber": 3,
"isRequired": true,
"stepType": "ACTION",
"approach": "Execute transition to senior developer with comprehensive implementation guidance",
"approachGuidance": {
"stepByStep": [
"Execute get_role_transitions with fromRoleName: 'architect'",
"Extract transitionId for architect to senior developer transition",
"Execute execute_transition with strategic context in handoff",
"Verify transition success and delegation confirmation"
]
},
"qualityChecklist": [
"get_role_transitions executed with correct parameters",
"Correct transitionId obtained for senior developer transition",
"execute_transition executed with strategic context",
"Transition success verified and delegation confirmed"
],
"conditions": [
{
"name": "subtask_creation_completed",
"conditionType": "PREVIOUS_STEP_COMPLETED",
"logic": {
"check": "step_completed",
"parameters": {
"stepName": "strategic_subtask_creation"
}
},
"isRequired": true
}
]
}
]
}