chalkboard
Skill9 starsChanged 2 months agoMITView on GitHub
Use when the user says "use chalkboard", "make a chalkboard video", or asks for a narrated explainer video, an animated explanation, a Manim animation, or a 3Blue1Brown-style visual walkthrough of a topic, paper, codebase, or set of notes. Runs this repo's pipeline (python main.py) to produce output/<run_id>/final.mp4, and covers choosing options, resuming, and debugging failed runs.
- Reads credentials
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Always pass --yes. It skips confirmations and makes the run non-interactive: nothing waits on stdin, exhausted retries abort instead of …
- Very specific: line 62
Every pipeline stage is checkpointed in pipeline_state.db.
- Very specific: line 77
Layout problems: read output/<run_id>/layout_report.json (passed, violations with type such as off_screen, overlap, zone_collision, …
- Distinctive: line 82
Do not modify pipeline code to get one video through.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Chalkboard: generate a narrated explainer video
Chalkboard turns a topic (plus optional source material) into a narrated Manim video: script, fact check, scene code on the built-in design system, validation, TTS, render, visual QA. Architecture details live in CLAUDE.md; setup in README.md.
Before the first run
From the repo root, check once:
.envexists withANTHROPIC_API_KEYand a workingTTS_BACKEND(openaineedsOPENAI_API_KEY;kokoroneeds PyTorch +espeak-ng). If.envis missing, tell the user to copy.env.exampleand fill in keys; never invent keys.- A render path exists: either
manimimportable pluslatex,dvisvgmandffmpegonPATH(local, preferred), or Docker.RENDER_BACKEND=autopicks local when it can.--no-renderskips rendering entirely.
Run it
Runs take several minutes (each Claude stage, then TTS, render and visual QA), so start it in the background and check on it, rather than blocking:
python main.py --topic "how B-trees keep themselves balanced" --yes [options] > chalkboard.log 2>&1Always pass --yes. It skips confirmations and makes the run non-interactive: nothing waits on stdin, exhausted retries abort instead of prompting, and a scene with only layout warnings after its last retry is rendered anyway.
The first output line contains run: <run_id>; note it. When the run ends the log shows Done → .../final.mp4.
Choosing options
Pick from the request; leave the rest at defaults.
| Want | Flag | |||
| Depth of fact checking; web research before scripting | `--effort low | medium | high (high` adds a research step) | |
| Audience | `--audience beginner | intermediate | expert` | |
| Narration style | `--tone casual | formal | socratic` | |
| Look | `--theme chalkboard | light | colorful` | |
| Resolution | `--quality low | medium | high | 4k` (480p15 / 720p30 / 1080p60 / 2160p60). Set it on the first run; it is fixed once the pipeline finishes |
| Voice | `--narrator aria | milo(ElevenLabseleven_v4, needs ELEVENLABS_API_KEY), kokoro(free, local),alloy(OpenAI). Default:NARRATORin.env, else TTS_BACKEND` | ||
| Scene structure | --template algorithm (array step-through), code (code walkthrough), compare (A vs B), derivation (step-by-step math), howto (numbered steps), timeline (dated events). Omit to let the agent decide | |||
| Source material | --context PATH (files/dirs, repeatable), --context-ignore GLOB, --url URL, --github owner/repo | |||
| Pace | --speed 1.15 | |||
| Quick look first | --preview (480p preview.mp4, then full render via --run-id) | |||
| Extras | --quiz (quiz.json), --burn-captions, `--qa-density zero | normal | high` |
Math topics: --template derivation gives aligned, step-by-step equations. Code topics: --template code with --context pointing at the file.
Where output lands
output/<run_id>/ (or $OUTPUT_DIR/<run_id>/):
final.mp4: the video (captions and chapter markers embedded);preview.mp4with--previewcaptions.srt,chapters.txt,thumb.jpg,quiz.json(with--quiz)script.txt,segments.json(per-segment timing),scene.py(generated Manim code),manifest.json(settings)layout_report.json(last layout dry-run),qa_frames/(frames reviewed by visual QA),media/(raw Manim output)
Report the full path of final.mp4 to the user.
Resume
Every pipeline stage is checkpointed in pipeline_state.db. To continue a run that crashed or was stopped:
python main.py --topic "<same topic>" --run-id <run_id> --yes [--context ... again]It continues from the last completed stage, or goes straight to rendering if the pipeline already finished. --context, --url and --github are not checkpointed: pass them again.
To re-render after hand-editing output/<run_id>/scene.py: delete output/<run_id>/final.mp4 and output/<run_id>/media/, then run the resume command above.
A run whose pipeline ended in escalation (retries exhausted, status failed) is finished as far as the checkpoint is concerned; resuming it will not retry. Start a new run instead, perhaps with a --template or a narrower topic.
Debugging
- Read the log. Each node prints
[node] ... → status; retries print[label] failed (...) retrying; the render prints[render] animation N/M; QA prints[qa] issues found:with each issue. - Layout problems: read
output/<run_id>/layout_report.json(passed,violationswithtypesuch asoff_screen,overlap,zone_collision,timing_overrun, and a per-segmentdescription). - Scene crashes: the layout feedback includes the traceback tail. Reproduce locally (local backend) with
PYTHONPATH=docker CHALKBOARD_REPORT_DIR=output/<run_id> python -m manim render -ql output/<run_id>/scene.py ChalkboardScene. Known Manim 0.21.0 pitfalls are listed inCLAUDE.md. - Render failures: rerun with
--verbose(not combinable with--preview) to stream Manim output. - API errors: auth, bad request and out-of-credit errors fail immediately; tell the user rather than retrying in a loop.
Do not modify pipeline code to get one video through; report recurring failure patterns so they can be fixed in the prompt or the AST guards.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

