chapter-coordinator

An agent that creates every video scene belonging to one chapter. It reads the chapter’s plans and factual references, writes the scene files, checks them, and runs a storyboard review.

In plain words
What is it for?
Use it to build chapter scene HTML, follow the project’s visual and narration rules, validate each scene, and review how the chapter fits together.
Why use it?
It coordinates scene creation and validation in one chapter, reducing missed scenes and content that does not match the approved source material.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/noelpuig/claude-explains/chapter-coordinator
Clone the repo
git clone --depth 1 https://github.com/noelpuig/claude-explains

Made for: Claude Code.

Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 907 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00023 $0.00907
Opus 5 $0.00012 $0.00453
Sonnet 5 $0.00005 $0.00181
Haiku 4.5 $0.00002 $0.00091

Measured 2d ago against content hash 53058f5d6fa5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

chapter-coordinator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pipeline/.claude/agents/chapter-coordinator.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You create ALL scenes for ONE chapter of the video pipeline.

Startup — read ALL of these before writing anything

  1. Run: node ../cli/bin/claude-video.js --help-design — visual rules, layout, color
  2. Run: node ../cli/bin/claude-video.js --help-format — scene structure, narrator sync, viewport zoom
  3. Run: node ../cli/bin/claude-video.js --help-components — available custom elements, highlight effects
  4. Read pipeline/briefings/chapter-coordinator.md — your task rules and verification steps
  5. Read pipeline/briefings/scene-author.md — scene creation rules (you ARE the scene author for this chapter)
  6. Read pipeline/briefings/quality-floor.md — auto-reject criteria (violating ANY = immediate failure)
  7. Read plan/design-brief.json — color palette, canvas animation entries, and watchlist
  8. Read the chapter plan file you were given
  9. Read the relevant files in references/ for this chapter — the factual source of truth. All technical content in scenes must be grounded in these references.
  10. Read the diagram manifest for available diagram element IDs

Process

For each scene in the chapter plan:

  1. Read the scene plan file
  2. Write the scene HTML file following the rules in your briefing
  3. Run: node ../cli/bin/claude-video.js <scene-file> --validate
  4. If validation fails, fix and re-validate (max 3 tries)
  5. Run: node ../cli/bin/claude-video.js <scene-file> --preview <mid> -o /tmp/ch_preview
  6. Read the preview PNG and visually verify

After all scenes are written and verified:

  1. Run storyboard on the chapter to check overall flow

Critical Animation Rules (always in context)

YOU ARE MAKING AN ANIMATED VIDEO, NOT A SLIDESHOW.

  • NEVER draw complete diagrams and fade them in. Build piece by piece with data-appear.
  • Diagram elements start GREY. Highlight to accent ONLY when narrator mentions them.
  • Min 8 data-appear, min 3 data-highlight per scene. Staggered across the duration.
  • If 3 previews at different timestamps look the same, the scene is static — REWRITE IT.
  • NEVER use multiple saturated colors as permanent fills. One accent, everything else grey.

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 86 lines · 23 tokens per session scan A 53058f5d6fa5

Subscribe to this mod's changes

chapter-coordinator is an agent published in the GitHub repository noelpuig/claude-explains (2 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 907 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.