When to Use
- User wants to create a slide deck or presentation
- User asks for "slides", "幻灯片", "PPT", or "presentation"
- User wants visual content organized into slides from a topic or URL
When NOT to Use
- User wants a narrated video without slides (use
/explainer) - User wants audio-only content (use
/speechor/podcast) - User wants a podcast-style discussion (use
/podcast) - User wants to generate a standalone image (use
/image-gen)
Purpose
Generate slide decks with AI-generated visuals from topics, URLs, or text. By default, slides are generated without audio narration. Narration can be optionally enabled. Ideal for presentations, summaries, and visual storytelling.
Hard Constraints
- Always read config following
shared/config-pattern.mdbefore any interaction - Follow
shared/cli-patterns.mdfor execution modes, error handling, and interaction patterns - Always follow
shared/cli-authentication.mdfor auth checks - Follow
shared/speaker-selection.mdwhen narration is enabled - Never hardcode speaker IDs — always fetch from the speakers CLI when the user wants to change voice
- Never save files to
~/Downloads/or.listenhub/— save artifacts to the current working directory with friendly topic-based names (seeshared/config-pattern.md§ Artifact Naming) - Mode is always
slides— neverinfoorstory(those are for/explainer) - Only 1 speaker supported (when narration is enabled)
- Default behavior: skip audio (no narration). Only add narration when the user explicitly requests it via
--no-skip-audio
<HARD-GATE>
Use the AskUserQuestion tool for every multiple-choice step — do NOT print options as plain text. Ask one question at a time. Wait for the user's answer before proceeding to the next step. After all parameters are collected, summarize the choices and ask the user to confirm. Do NOT call any CLI command until the user has explicitly confirmed.
</HARD-GATE>
Step -1: CLI Auth Check
Follow shared/cli-authentication.md. If the CLI is not installed or the user is not logged in, auto-install and auto-login — never ask the user to run commands manually.
Step 0: Config Setup
Follow shared/config-pattern.md Step 0 (Zero-Question Boot).
If file doesn't exist — silently create with defaults and proceed:
Do NOT ask any setup questions. Proceed directly to the Interaction Flow.
If file exists — read config silently and proceed:
Setup Flow (user-initiated reconfigure only)
Only run when the user explicitly asks to reconfigure. Display current settings:
Then ask:
-
outputMode: Follow
shared/output-mode.md§ Setup Flow Question. -
Language (optional): "默认语言?"
- "中文 (zh)"
- "English (en)"
- "每次手动选择" → keep
null
After collecting answers, save immediately:
Interaction Flow
Step 1: Topic / Content
Free text input. Ask the user:
What would you like to create slides about?
Accept: topic description, text content, URL(s), or any combination.
Step 2: Language
If config.language is set, pre-fill and show in summary — skip this question.
Otherwise ask:
Step 3: Narration
Ask:
Default is no narration. If the user says yes, proceed to Step 4. Otherwise skip to Step 5.
Step 4: Speaker Selection (only if narration enabled)
Skip this step entirely if narration is not enabled.
Follow shared/speaker-selection.md:
- If
config.defaultSpeakers.{language}is set → use saved speaker silently - If not set → use built-in default from
shared/speaker-selection.mdfor the language - Show the speaker in the confirmation summary (Step 5) — user can change from there if desired
- Only show the full speaker list if the user explicitly asks to change voice
Only 1 speaker is supported for slides narration.
Step 5: Confirm & Generate
Summarize all choices:
Without narration:
With narration:
Wait for explicit confirmation before running any CLI command.
Workflow
-
Submit (background): Run the CLI command with
run_in_background: trueandtimeout: 660000:Without narration (default):
With narration:
If the user provided a source URL, add
--source-url "{url}".The CLI handles polling internally and returns the final result when generation completes.
-
Tell the user the task is submitted and that they will be notified when it finishes.
-
When notified of completion, parse and present the result:
Parse the CLI JSON output for key fields:
Read
OUTPUT_MODEfrom config. Followshared/output-mode.mdfor behavior.Without narration:
inlineorboth: Present the online link.downloadorboth: Also save the script file. Generate a topic slug followingshared/config-pattern.md§ Artifact Naming.- Save as
{slug}-slides.mdin cwd (dedup if exists) - Present the save path in addition to the above summary.
With narration:
inlineorboth: Display audio URL as a clickable link.downloadorboth: Also save files. Generate a topic slug followingshared/config-pattern.md§ Artifact Naming.- Create
{slug}-slides/folder (dedup if exists) - Write
script.mdinside - Download audio:
- Present:
- Save as
After Successful Generation
Update config with the choices made this session:
If narration was used, also save the speaker:
Estimated times:
- Slides without narration: 2-4 minutes
- Slides with narration: 4-8 minutes
Resources
- CLI authentication:
shared/cli-authentication.md - CLI patterns:
shared/cli-patterns.md - Speaker query:
shared/cli-speakers.md - Speaker selection guide:
shared/speaker-selection.md - Config pattern:
shared/config-pattern.md - Output mode:
shared/output-mode.md
Composability
- Invokes: speakers CLI (for speaker selection when narration enabled)
- Invoked by: content-planner (Phase 3)
Example
User: "帮我做一个关于量子计算的幻灯片"
Agent workflow:
- Topic: "量子计算"
- Language: pre-filled from config or ask → "zh"
- Narration: ask → "不需要"
- Confirm and generate
Wait for CLI to return result, then present the online link.
User: "Create slides about React hooks with narration"
Agent workflow:
- Topic: "React hooks"
- Language: ask → "en"
- Narration: ask → "需要"
- Speaker: use built-in default for English
- Confirm and generate
Wait for CLI to return result, then present the online link and audio link.

