graph TD
A[Image Generation Agent Start] --> B{Module Info Received?}
B -->|No| C[Wait for Module Info]
C --> B
B -->|Yes| D[Parse Module Requirements]
D --> E{Need Custom Prompt?}
E -->|Yes| F[Generate Image Prompt - Skill #223]
E -->|No| G[Use Direct Input Prompt]
F --> H[AI Image Creation - Skill #222]
G --> H
H --> I{Need Web Images?}
I -->|Yes| J[Web Image Search - Skill #187]
I -->|No| K[Skip Web Search]
J --> L[Collate Image URLs]
K --> L
L --> M[Format JSON Output]
M --> N[Return Image URLs]
N --> O{More Modules?}
O -->|Yes| B
O -->|No| P[End Image Generation]