From gencast
This skill should be used when the user asks to "check these sources for a podcast", "are these sources good for gencast", "preflight my notebook before generating", or wants a quality + cost review of source material before running `gencast generate`. Reports token counts, predicted USD cost via `gencast estimate`, and topical coherence read.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gencast:source-checkThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Preflight a gencast notebook (or candidate source files) before spending money. Reports source-token counts, predicted cost, fits-in-budget verdict, and a subjective topical-coherence read. Identifies opportunities to split the notebook, summarise first, or pick a cheaper model.
Preflight a gencast notebook (or candidate source files) before spending money. Reports source-token counts, predicted cost, fits-in-budget verdict, and a subjective topical-coherence read. Identifies opportunities to split the notebook, summarise first, or pick a cheaper model.
gencast list-profiles --type episodes --json 2>/dev/null | jq -r '.[] | "- **\(.name)**: \(.description // "(no description)")"' || echo "(gencast not installed)"
Version check (need gencast>=1.2.0): !gencast --version 2>/dev/null | python3 -c "import sys,re; v=sys.stdin.read().strip(); m=re.search(r'(\d+)\.(\d+)', v); sys.exit(1) if not v else print(v if m and (int(m[1]),int(m[2]))>=(1,2) else f'TOO OLD: need gencast>=1.2.0, found {v} — run: pipx upgrade gencast')" 2>/dev/null || echo "MISSING — install with: pipx install gencast"
gencast>=1.2.0 on PATHnotebook.yaml, OR a list of candidate source files the user wants to evaluate.Identify the input. If the user gave a notebook.yaml, use it directly. If the user only named source files, scaffold a minimal notebook in a temp file (using bundled defaults) so gencast estimate has something to operate on. Do not prompt the user for profiles in this case — defaults are fine for a preflight.
Run gencast estimate.
gencast estimate <NB.yaml> --json
Parse the JSON output: total_usd, per-stage breakdown, source_tokens, suggestions.
Read the source content. For each source file, read the actual text (~first 2,000 chars is enough for a coherence read). Do not load entire large PDFs.
Report findings in this order:
suggestions from the estimate JSON (cheaper-model swaps), and add the user's own based on coherence (split into multiple notebooks, summarise first, etc.).Output format. Plain-language summary in 5–8 lines. No tables unless the user asks.
gencast generate. This skill is preflight only.gencast estimate multiple times. One call per notebook.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub cadrianmae/gencast --plugin gencast