Slide Generator: Outline Step
Generate a structured presentation outline from research findings. Uses Claude with extended thinking (budget_tokens=4096) to produce a well-organized slide structure.
Pre-loaded Context
Working directory:
!pwd
Available research files:
!ls -la *.json 2>/dev/null || echo "No JSON files found"
Prerequisites
- Preflight:
sg --versionmust succeed before proceeding — ifsgis missing, stop and tell the user this requires the privatedavistroy/slide-generatorengine (owner-only; see ADR-0008) slide-generatorpackage installedANTHROPIC_API_KEYset in environment- A
research.jsonfile from the research step (or equivalent structured JSON)
Input Validation
Required:
<research.json>- Path to research findings file
Optional:
--output <path>- Output file path (default:outline.json)--target-slides <N>- Target number of slides (default: 20, configurable viaSG_TARGET_SLIDES)--multi-presentation- Allow splitting into multiple presentations if content warrants it
Instructions
- Verify input: Confirm the research JSON file exists and contains valid structured data
- Run outline generation:
sg outline research.json --output outline.json - Verify output: Confirm
outline.jsonwas created with slide structure - Report results: Show the outline structure (slide titles, approximate slide count)
Error Handling
| Error | Cause | Fix |
|---|---|---|
File not found |
Wrong path to research.json | Check file path, list directory |
Invalid JSON |
Corrupted or incomplete research file | Re-run research step |
Token limit exceeded |
Research too large | Set SG_OUTLINE_MAX_TOKENS=16384 or reduce research scope |
Output
The outline step produces outline.json containing:
- Ordered list of slides with titles
- Bullet point structure per slide
- Speaker notes hints
- Graphics description placeholders
- Logical flow and transitions
Next Step
After outline completes, run the draft step:
sg draft outline.json --output presentation.md
Or use /sg-draft to continue the pipeline.