Auto-invoke gencast to generate podcasts from documents when user mentions podcast, audio, or dialogue generation
Auto-invokes gencast CLI to convert documents into conversational podcasts when users request audio, podcast, or dialogue generation. Always uses --minimal flag to reduce context usage.
/plugin marketplace add cadrianmae/claude-marketplace/plugin install gencast@cadrianmae-claude-marketplaceThis skill is limited to using the following tools:
references/styles.mdreferences/voices.mdGenerate conversational podcasts from documents using gencast CLI. ALWAYS uses --minimal flag to reduce context usage.
Auto-invoke when the user mentions:
CRITICAL: ALWAYS include --minimal flag in every gencast command to avoid context bloat.
gencast <input-file> --minimal -o <output.mp3>
gencast document.md --minimal --style educational --audience general -o podcast.mp3
gencast document.md --minimal --with-planning --save-plan -o podcast.mp3
Before running gencast, verify it's installed:
which gencast
If not found, inform the user:
gencast is not installed. Install with: pip install gencast
Check the input file exists before running:
if [[ -f "document.md" ]]; then
gencast document.md --minimal -o podcast.mp3
else
echo "[ERROR] Input file not found: document.md"
fi
Default style (educational) and audience (general):
gencast lecture.md --minimal -o lecture_podcast.mp3
# Interview style for technical audience
gencast chapter.md --minimal --style interview --audience technical -o chapter.mp3
# Casual style for beginners
gencast intro.md --minimal --style casual --audience beginner -o intro.mp3
# Debate style for academic audience
gencast paper.md --minimal --style debate --audience academic -o paper.mp3
For comprehensive coverage of complex documents:
gencast complex_doc.md --minimal --with-planning --save-dialogue --save-plan -o output.mp3
This creates:
output.mp3 - The podcast audiooutput_plan.txt - The planning documentoutput_dialogue.txt - The generated dialogue scriptGencast concatenates multiple inputs:
gencast chapter1.md chapter2.md chapter3.md --minimal -o full_course.mp3
gencast doc.md --minimal --host1-voice nova --host2-voice echo -o podcast.mp3
Available voices: alloy, echo, fable, onyx, nova, shimmer (see references/voices.md)
With --minimal flag, gencast only shows:
No spinners or progress bars - keeps context clean.
After running gencast, report to the user:
[OK] Podcast generated
Output: podcast.mp3
Duration: 5m 32s
Style: educational
Audience: general
Additional files:
- podcast_dialogue.txt (if --save-dialogue used)
- podcast_plan.txt (if --save-plan used)
PDFs require MISTRAL_API_KEY environment variable:
if [[ ! -z "$MISTRAL_API_KEY" ]]; then
gencast document.pdf --minimal -o podcast.mp3
else
echo "[WARN] PDF input requires MISTRAL_API_KEY environment variable"
echo "Set with: export MISTRAL_API_KEY=your_key"
fi
Gencast will overwrite existing files. Warn the user if needed:
if [[ -f "podcast.mp3" ]]; then
echo "[WARN] Output file podcast.mp3 already exists and will be overwritten"
fi
gencast doc.md --minimal -o podcast.mp3
if [[ $# -eq 0 ]]; then
echo "[ERROR] No input files provided"
echo "Usage: gencast <input-files> [options]"
exit 1
fi
For explicit invocation, users can use:
/gencast:podcast <input> [options] - Full control over all options/gencast:plan <input> - Generate planning document only (no audio)gencast CS101_lecture_notes.md --minimal -o CS101_lecture.mp3
gencast API_documentation.md --minimal --style interview --audience technical --save-dialogue -o API_podcast.mp3
gencast intro_to_programming.md --minimal --style casual --audience beginner -o intro_podcast.mp3
gencast research_paper.md --minimal --style debate --audience academic --with-planning --save-plan -o research_podcast.mp3
gencast week1.md week2.md week3.md --minimal --style educational --audience general -o course_weeks_1-3.mp3