---
name: book-media-generator
description: Generates media for intelligent textbooks - slide decks and presentations (MARP web decks in docs/slides/ or PowerPoint .pptx lecture downloads), illustrated stories and graphic novels, freely-licensed chapter images from Wikimedia and government archives, and audio (text-to-speech voiceovers, glossary pronounce buttons via ElevenLabs). Routes to the appropriate media guide.
license: Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
metadata:
  ibook.version: "1.0"
  ibook.preferred-model: "sonnet"
title: book-media-generator
canonical_url: https://skilld.dev/gh/dmccreary/ibook-skills/book-media-generator
last_updated: 2026-09-29T05:25:27.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [assets/marp/template.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/assets/marp/template.md), [references/chapter-images-guide.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/chapter-images-guide.md), [references/marp-authoring-guide.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/marp-authoring-guide.md), [references/marp-deck-guide.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/marp-deck-guide.md), [references/marp-mkdocs-integration.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/marp-mkdocs-integration.md), [references/pptx-lecture-guide.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/pptx-lecture-guide.md), [references/pptx-slide-patterns.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/pptx-slide-patterns.md), [references/pptx-speaker-notes-guide.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/pptx-speaker-notes-guide.md), [references/pronounce-button-guide.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/pronounce-button-guide.md), [references/story-guide.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/story-guide.md), [references/story-index-template.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/story-index-template.md), [references/text-to-speech-guide.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/text-to-speech-guide.md), [references/tts-installation.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/tts-installation.md), [references/tts-streaming.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/tts-streaming.md), [references/tts-voice-settings.md](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/references/tts-voice-settings.md), [scripts/audio/generate-pronunciation.py](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/scripts/audio/generate-pronunciation.py), [scripts/story/fix-references.py](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/scripts/story/fix-references.py), [scripts/story/generate-images.py](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/scripts/story/generate-images.py), [scripts/story/uncomment-images.sh](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/scripts/story/uncomment-images.sh), [scripts/story/verify-images.py](https://skilld.dev/api/skills-raw/dmccreary/ibook-skills/book-media-generator/scripts/story/verify-images.py).
>
> If the user asked to install this Skill, run `npx skilld install dmccreary/ibook-skills/book-media-generator`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/book-media-generator`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/dmccreary/ibook-skills/book-media-generator) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/book-media-generator`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/book-media-generator --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/book-media-generator --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Book Media Generator

**Version:** 1.0

## Overview

This meta-skill generates static media for intelligent textbooks — slides, illustrations, sourced images, and audio. It consolidates six skills into a single entry point with on-demand loading of specific media guides.

## FIRST: Slides Disambiguation Rule

Two routes make slide decks. Before routing any "make slides / a presentation / a deck" request, decide:

- **Published on the site / embedded / web deck / shareable link** → `references/marp-deck-guide.md` (MARP → self-contained HTML in `docs/slides/`, iframe-embedded, added to the slides gallery and nav)
- **Downloadable file / classroom lecture / "PowerPoint" / .pptx** → `references/pptx-lecture-guide.md` (pptxgenjs → .pptx with 4-act storytelling and speaker notes)
- **Ambiguous** (just "make slides for chapter 3") → ask ONE question: "Published on the site as a web deck, or a downloadable PowerPoint for classroom use?"

## When to Use This Skill

Use this skill when users request:

- A slide deck or presentation from a topic, chapter, or document (see disambiguation rule above)
- An illustrated story / graphic novel about a scientist or historical figure (docs/stories/)
- Adding freely-licensed maps and photos to chapters (Wikimedia Commons, US government archives)
- Text-to-speech audio, voiceovers, or spoken narration (ElevenLabs)
- A "Pronounce" button with an MP3 pronunciation for a glossary term

## Step 1: Identify Media Type

### Routing Table

| Trigger Keywords | Guide File | Purpose |
|------------------|------------|---------|
| slide deck, slides, presentation, web deck, publish slides, MARP, deck on the site | `references/marp-deck-guide.md` | MARP → self-contained HTML deck in docs/slides/ with gallery + nav integration |
| powerpoint, pptx, lecture deck, classroom slides, downloadable deck, lecture presentation | `references/pptx-lecture-guide.md` | pptxgenjs → .pptx lecture with 4-act structure and speaker notes |
| story, graphic novel, illustrated narrative, historical figure story, scientist story, case study story | `references/story-guide.md` | Illustrated graphic-novel narratives in docs/stories/ with generated panel images |
| chapter images, add photos, add maps, wikimedia, image sourcing, freely licensed images, attribution | `references/chapter-images-guide.md` | Source real licensed media from Wikimedia/gov archives with captions + attribution |
| text to speech, tts, voiceover, narration, audio version, speech synthesis, elevenlabs | `references/text-to-speech-guide.md` | ElevenLabs TTS — voiceovers, voice apps, 70+ languages |
| pronounce, pronunciation, pronounce button, glossary audio, say the term | `references/pronounce-button-guide.md` | Generate an MP3 pronunciation and insert a Pronounce button into a glossary entry |

### Decision Tree

```
Slides or a presentation?
  → Apply the Slides Disambiguation Rule (top of this file)

Narrative with illustrated panels about a person or case study?
  → YES: story-guide.md

Poster/infographic containing numeric claims or cited data?
  → NOT this skill: the fact-verified poster route lives in the
    microsim-generator skill (references/verified-infographic-guide.md)
  (purely decorative image with no factual claims → consider
   the cover-image feature in book-installer instead)

Real photos/maps sourced from archives (not AI-generated)?
  → YES: chapter-images-guide.md

Audio from text?
  → Single glossary term pronunciation → pronounce-button-guide.md
  → Anything else (narration, voiceover, app) → text-to-speech-guide.md
```

## Step 2: Load the Matched Guide

Read the corresponding guide file from `references/` and follow its workflow.

## Audio Routes: ElevenLabs API Key

Both audio routes (`text-to-speech-guide.md`, `pronounce-button-guide.md`) call the ElevenLabs API and need `ELEVENLABS_API_KEY` set in the environment. Check for it before starting; if missing, point the user at `references/tts-installation.md`.

## Supporting Files

- `references/marp-mkdocs-integration.md`, `references/marp-authoring-guide.md`, `assets/marp/template.md` — MARP route
- `references/pptx-slide-patterns.md`, `references/pptx-speaker-notes-guide.md` — PowerPoint route
- `references/story-index-template.md`, `scripts/story/` (generate-images.py, verify-images.py, fix-references.py, uncomment-images.sh) — story route
- `references/tts-installation.md`, `references/tts-streaming.md`, `references/tts-voice-settings.md` — TTS route
- `scripts/audio/generate-pronunciation.py` — pronounce-button route

## Examples

### Example 1: Web Deck
**User:** "Turn chapter 4 into a presentation on the site"
**Routing:** "presentation" + "on the site" → `references/marp-deck-guide.md`
**Action:** Read marp-deck-guide.md; produce docs/slides/<deck>/ + gallery entry + nav

### Example 2: Classroom PowerPoint
**User:** "I need a PowerPoint to lecture from for chapter 4"
**Routing:** "PowerPoint" + "lecture" → `references/pptx-lecture-guide.md`
**Action:** Read pptx-lecture-guide.md; generate the .pptx with speaker notes

### Example 3: Ambiguous Slides
**User:** "Make slides for chapter 4"
**Routing:** Ambiguous → ask: web deck or downloadable PowerPoint? Then route accordingly.

### Example 4: Story
**User:** "Add a graphic novel story about Ada Lovelace to the Stories section"
**Routing:** "graphic novel story" → `references/story-guide.md`
**Action:** Read story-guide.md; write index.md with panel prompts; run scripts/story/generate-images.py

### Example 5: Fact-Checked Poster (routes elsewhere)
**User:** "Create an infographic about remote-work productivity statistics"
**Routing:** NOT this skill — fact-verified posters moved to `microsim-generator` → `references/verified-infographic-guide.md`
**Action:** Load the microsim-generator skill instead; it owns claim verification, the poster pipeline, and the gallery thumbnail script

### Example 6: Pronounce Button
**User:** "Create a pronounce button for the term Mitochondria"
**Routing:** "pronounce button" → `references/pronounce-button-guide.md`
**Action:** Read pronounce-button-guide.md; run scripts/audio/generate-pronunciation.py; insert the button into glossary.md
