prepare_design_doc_draft
Generates prompts for creating a design intent document (DESIGN.md) to establish a consistent theme and tone for all slides. Skips if design already exists.
Instructions
Prepares the prompt for the CLIENT to draft DESIGN.md (design intent).
No LLM call. If DESIGN.md already exists, returns {"skip": true} — reuse the
existing design intent (do not regenerate). Otherwise returns system_prompt,
user_prompt, and project_id. Generate the draft JSON (theme + tone +
page_requests) following the prompt's output_format, then call
ingest_design_doc_draft.
Call this ONCE before generating slides, so every slide shares one design theme and narrative arc.
Args: project_id: Project ID. Loads outline from the saved project. outline_json: Full outline JSON. Optional if project_id is given. color_theme: Color theme ("dark" or "light", default: "dark").
Returns: JSON with system_prompt, user_prompt, project_id, color_theme — or {"skip": true}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | ||
| color_theme | No | dark | |
| outline_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |