Overview
- Purpose: Universal factory worker for creating ALL 3 task types (implementation, refactoring, test)
- Pattern: Worker v1.0.0 - Invoked by orchestrator (x-task-manager) via Skill tool with taskType parameter
- Templates:
implementation → task_template_implementation.md (7 sections)
refactoring → refactoring_task_template.md (7 sections)
test → test_task_template.md (11 sections)
- Type-Specific Validation:
implementation: NO tests (tests in final Story task)
refactoring: Regression Strategy required
test: Priority ≥15 scenarios + Limits (2-5 E2E, 3-8 Integration, 5-15 Unit)
- Input: IDEAL plan + guide links from orchestrator
- Output: Task URLs + summary → return to orchestrator
graph TD
Start([Invoked by orchestrator
taskType parameter]) --> SelectTemplate{Select Template
by taskType}
SelectTemplate -->|implementation| T1[task_template_implementation.md
7 sections]
SelectTemplate -->|refactoring| T2[refactoring_task_template.md
7 sections]
SelectTemplate -->|test| T3[test_task_template.md
11 sections]
T1 --> Phase1
T2 --> Phase1
T3 --> Phase1
Phase1[Phase 1: Generate Task Documents
From IDEAL plan
Fill template sections]
Phase1 --> Phase2{Phase 2: Type-Specific Validation
implementation: NO tests
refactoring: Regression Strategy
test: Priority ≥15 + Limits}
Phase2 -->|Validation failed| Error([ERROR: Stop execution
Report to orchestrator])
Phase2 -->|Validation passed| Phase3[Phase 3: Show Preview
Task summaries
Total count & hours]
Phase3 --> Phase4{Phase 4: User Confirmation}
Phase4 -->|"confirm"| Phase5[Phase 5: Create in Linear
+ Update kanban_board.md]
Phase4 -->|Other input| Abort([Abort: Return to orchestrator])
Phase5 --> Success([SUCCESS
Return task URLs + summary])
style Start fill:#e1f5fe
style Success fill:#c8e6c9
style Error fill:#ffcdd2
style Abort fill:#fff9c4
style SelectTemplate fill:#e1bee7
style T1 fill:#c8e6c9
style T2 fill:#fff3e0
style T3 fill:#ffcdd2
style Phase2 fill:#fff3e0
style Phase4 fill:#fff3e0