graph TD
A[Start Selection of Subagent] -->|User Choice| B[Define New Subagent 5]
B --> C[Input Required: Previous Subagent Outputs]
C --> D[Define Subagent Purpose]
D -->|Option 1| E[Create New Role]
D -->|Option 2| F[Analyze Existing Agent]
D -->|Option 3| G[Enhance Current System]
E --> H[Define Skills]
F --> H
G --> H
H --> I[Establish Input Requirements]
I --> J[Specify Output Format]
J --> K[Document Action Sequence]
K --> L[Integration Plan]
L --> M[Define Dependencies]
M --> N[End Subagent Definition]