graph TD
A[Document Compiler Subagent Start] --> B[Input Validation]
B --> C{All Required Inputs Present?}
C -->|No| D[Error: Missing Input]
D --> Z[End Process]
C -->|Yes| E[Initialize LLM Skill #223]
E --> F[Format VSL Segments]
F --> G[Match Visual Prompts to Segments]
G --> H[Insert Transitions Between Segments]
H --> I[Add Music/SFX Section]
I --> J[Generate Final Document Structure]
J --> K[Create VideoAdCreativeBrief.txt]
K --> L{Document Creation Successful?}
L -->|No| M[Error: Document Creation Failed]
M --> Z
L -->|Yes| N[Return video-ad-creative-brief]
N --> Z