graph TD
A[Provide detailed task description] --> B{Analyze task requirements}
B -->|Purpose and goals| C[Identify desired output]
B -->|Input data| D[Determine necessary input]
B -->|Constraints and preferences| E[Note specific requirements]
C --> F{Break down task into components}
D --> F
E --> F
F -->|Component 1| G[Identify subagent and skills for component 1]
F -->|Component 2| H[Identify subagent and skills for component 2]
F -->|Component 3| I[Identify subagent and skills for component 3]
G --> J{Assess dependencies}
H --> J
I --> J
J -->|No dependencies| K[Assign subagents to components]
J -->|Dependencies exist| L[Resolve dependencies]
L --> K
K --> M[Execute automated workflow]
M --> N{Evaluate results}
N -->|Satisfactory| O[Task complete]
N -->|Unsatisfactory| P[Refine workflow and repeat]