agentleFS
nicglazkovnicglazkov/Chalkboard/.claude/skills/chalkboard/SKILL.md

chalkboard

Skill15 starsChanged 55 days 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

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. OmidSa75/Brain-Damage★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

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
  1. Very specific:

    Always pass --yes. It skips confirmations and makes the run non-interactive: nothing waits on stdin, exhausted retries abort instead of …

    line 25
  2. Very specific:

    Every pipeline stage is checkpointed in pipeline_state.db.

    line 64
  3. Very specific:

    Layout problems: read output/<run_id>/layout_report.json (passed, violations with type such as off_screen, overlap, zone_collision, …

    line 83
  4. Distinctive:

    Do not modify pipeline code to get one video through.

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  • .env exists with ANTHROPIC_API_KEY and a working TTS_BACKEND (openai needs OPENAI_API_KEY; kokoro needs PyTorch + espeak-ng). If .env is missing, tell the user to copy .env.example and fill in keys; never invent keys.
  • A render path exists: either manim importable plus latex, dvisvgm and ffmpeg on PATH (local, preferred), or Docker. RENDER_BACKEND=auto picks local when it can. --no-render skips 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>&1

Always 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.

Several runs can go at once (each has its own run id; the checkpoint DB is shared safely). When driving a run over ssh (or wsl.exe), detach it and follow the log instead of streaming it through the session: setsid -f bash -c 'python main.py ... --yes > logs/<id>.log 2>&1 < /dev/null; echo $? > logs/<id>.rc', then poll the log and wait for the .rc file (or tail -f --pid). Never pipe main.py through tee/grep held open by a remote session: if that session's relay stalls, the client waits forever even though the video is done.

Choosing options

Pick from the request; leave the rest at defaults.

WantFlag
Depth of fact checking; web research before scripting`--effort lowmediumhigh (high` adds a research step)
Audience`--audience beginnerintermediateexpert`
Narration style`--tone casualformalsocratic`
Look`--theme chalkboardlightcolorful`
Resolution`--quality lowmediumhigh4k` (480p15 / 720p30 / 1080p60 / 2160p60). Set it on the first run; it is fixed once the pipeline finishes
Voice`--narrator ariamilo(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 zeronormalhigh`

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.mp4 with --preview
  • captions.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.

Which version is running

curl <base>/version on a server (e.g. curl -s http://127.0.0.1:8000/version) returns the version, git commit (dirty: true = uncommitted changes), uptime, runtime, config and latest changelog entry. Locally: python main.py --version. Each run's manifest.json and run_stats.json record chalkboard_version and git_commit. If you change this repo, bump VERSION (see CLAUDE.md, Versioning).

Debugging

  1. 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.
  2. Layout problems: read output/<run_id>/layout_report.json (passed, violations with type such as off_screen, overlap, zone_collision, label_on_curve, timing_overrun, and a per-segment description).
  3. 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 in CLAUDE.md.
  4. Render failures: rerun with --verbose (not combinable with --preview) to stream Manim output.
  5. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.