npx skills add ...
npx skills add marswaveai/skills --skill podcast
Create podcasts from topics, URLs, or text. Triggers on: "做播客", "podcast", "播客", "录一期节目", "chat about", "discuss", "debate", "dialogue", "make a podcast about".
npx skills add marswaveai/skills --skill podcast
/speech)/explainer)/image-gen)/content-parser)Generate podcast episodes with 1-2 AI speakers discussing a topic. Supports quick overviews, deep analysis, and debate formats. Input can be a topic description, URL(s), or text. Output is a full audio episode with transcript.
shared/cli-authentication.mdshared/cli-patterns.md for command execution and error handlingshared/speaker-selection.md as fallback only; fetch from the speakers API when the user wants to change voiceshared/config-pattern.md before any interactionshared/speaker-selection.md for speaker selection (text table + free-text input)~/Downloads/ or .listenhub/ — save artifacts to the current working directory with friendly topic-based names (see shared/config-pattern.md § Artifact Naming)Follow shared/cli-authentication.md § Auth Check. 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.
Then follow shared/cli-authentication.md § Auth Mode Detection to determine AUTH_MODE and set:
All subsequent CLI calls use $CMD_PREFIX instead of hardcoded listenhub podcast.
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:
Only run when the user explicitly asks to reconfigure. Display current settings:
Then ask these questions in order and save:
outputMode: Follow shared/output-mode.md § Setup Flow Question.
Language (optional): "默认语言?"
nullMode (optional): "默认播客模式?"
nullAfter collecting answers, save immediately:
Ask topic and optional reference materials together in a single question using AskUserQuestion with two sub-questions, or a single free-text prompt:
What topic would you like to turn into a podcast? If you have reference materials (URLs or text), include them here too.
Accept: topic description, URL(s), pasted text, or any combination.
Examples of valid input:
Default: "quick" — skip this question unless:
config.defaultMode is set to something else → use that value silentlyOnly ask this question if the user's intent is ambiguous AND no default is configured. In most cases, just use "quick".
Default: match the user's interaction language. Detect from the language the user used in Step 1:
zhenconfig.language is set → use that valueNever ask this question. Always infer silently. Show in the confirmation summary so the user can override if needed.
Default: 2 speakers (dialogue) — the most common and engaging format.
Skip this question. Debate mode requires 2 speakers. For quick/deep, default to 2 speakers as well.
Only use 1 speaker if the user explicitly requests a monologue or solo format.
Follow shared/speaker-selection.md:
config.defaultSpeakers.{language} is set → use saved speakers silentlyshared/speaker-selection.md (no question asked)For 2-speaker mode (dialogue/debate): use Primary + Secondary defaults for the language.
Default: 1.0x (original speed). Never ask this question.
Only set a speed when the user explicitly asks for one — "慢一点"、"快一点"、"1.25 倍速"、
"read it faster"、"slow it down". Otherwise omit --speed entirely so the request keeps
its historical behaviour.
0.5 to 2.0, at most two decimals — it is a continuous range,
not a fixed set of steps.0.5, 0.75, 1 (default), 1.25, 1.5, 2. Values in between such
as 0.85 or 1.35 are equally valid.0.85, "快一点" → 1.25, "慢很多" → 0.5,
"快很多" → 1.75. When the user names a number, pass that number through unchanged.Show the speed in the confirmation summary only when it is not 1.
Summarize all choices:
Wait for explicit confirmation before calling any CLI command. The user can adjust any parameter here before confirming.
Submit (background): Run the CLI command with run_in_background: true and timeout: 360000:
Flag notes:
--query — the topic or question to discuss--source-url — repeatable, one per URL reference--source-text — repeatable, one per text block reference--mode — one of quick, deep, debate--lang — language code--speaker — repeatable (max 2); use speaker display names--speaker-id — alternative to --speaker; use speaker IDs instead of names--speed — generation speed multiplier 0.5–2.0 (max two decimals, default 1); omit it unless the user asked for a different speed--source-url / --source-text if the user provided no referencesThe 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, Present result:
Parse the CLI JSON output to extract fields: audioUrl, subtitlesUrl, audioDuration, credits.
Read OUTPUT_MODE from config. Follow shared/output-mode.md for behavior.
inline or both: Display audioUrl as a clickable link.
Present:
download or both: Also download the file. Generate a topic slug following shared/config-pattern.md § Artifact Naming.
Present:
Offer to show transcript or provide download URL on request
Update config with the choices made this session:
shared/cli-speakers.mdshared/speaker-selection.mdshared/cli-patterns.mdshared/cli-authentication.mdshared/config-pattern.mdUser: "Make a podcast about the latest AI developments"
Agent workflow:
Wait for CLI to return result, then present with title and listen link.
mkdir -p ".listenhub/podcast"
echo '{"outputMode":"inline","language":null,"defaultMode":"quick","defaultSpeakers":{}}' > ".listenhub/podcast/config.json"
CONFIG_PATH=".listenhub/podcast/config.json"
CONFIG=$(cat "$CONFIG_PATH")CONFIG_PATH=".listenhub/podcast/config.json"
[ ! -f "$CONFIG_PATH" ] && CONFIG_PATH="$HOME/.listenhub/podcast/config.json"
CONFIG=$(cat "$CONFIG_PATH")当前配置 (podcast):
输出方式:{inline / download / both}
语言偏好:{zh / en / 未设置}
默认模式:{quick / deep / debate / 未设置}
默认主播:{speakerName(s) / 使用内置默认}NEW_CONFIG=$(echo "$CONFIG" | jq --arg m "$OUTPUT_MODE" '. + {"outputMode": $m}')
# Save language if user chose one (not "每次手动选择")
if [ "$LANGUAGE" != "null" ]; then
NEW_CONFIG=$(echo "$NEW_CONFIG" | jq --arg lang "$LANGUAGE" '. + {"language": $lang}')
fi
# Save mode if user chose one
if [ "$MODE" != "null" ]; then
NEW_CONFIG=$(echo "$NEW_CONFIG" | jq --arg mode "$MODE" '. + {"defaultMode": $mode}')
fi
echo "$NEW_CONFIG" > "$CONFIG_PATH"
CONFIG=$(cat "$CONFIG_PATH")Ready to generate podcast:
Topic: {topic}
Mode: {mode}
Language: {language}
Speakers: {speaker name(s)}
Speed: {speed}x # omit this line when speed is 1
References: {yes/no + brief description}
Proceed?