Communitygithub.com

sloth-motion

Plan, design and build animation-first scientific talks (conference talks, seminars, thesis defences, lab meetings) in which every method and work-process step is explained by motion - workflow strips, sampling designs, raster stacks, model grids, cross-validation folds, chart-to-map morphs, cost waves, random walkers, cartoon animals, zoom insets, 3D drone fly-ins - and every number on screen is traced to the analysis outputs. Covers PowerPoint decks built by script with MP4 clips (HTML canvas recorded frame-exact in headless Chrome, R/ragg, Blender) and claude.ai Slides decks with live canvas animations. Use it whenever someone asks for slides, a deck, a presentation or talk, an animated figure, a method or process animation, or a video for a talk, in any language, even if they do not name this skill.

What is sloth-motion?

sloth-motion is a Claude Code agent skill that plan, design and build animation-first scientific talks (conference talks, seminars, thesis defences, lab meetings) in which every method and work-process step is explained by motion - workflow strips, sampling designs, raster stacks, model grids, cross-validation folds, chart-to-map morphs, cost waves, random walkers, cartoon animals, zoom insets, 3D drone fly-ins - and every number on screen is traced to the analysis outputs. Covers PowerPoint decks built by script with MP4 clips (HTML canvas recorded frame-exact in headless Chrome, R/ragg, Blender) and claude.ai Slides decks with live canvas animations. Use it whenever someone asks for slides, a deck, a presentation or talk, an animated figure, a method or process animation, or a video for a talk, in any language, even if they do not name this skill.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/andamanchankhao/sloth-motion/tree/HEAD/skills/sloth-motion

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

sloth-motion: animation-first scientific talks

The goal is a talk whose method and process slides are explained by animation, built by script from the analysis outputs, audited, and checked in the software it will be shown in. The user decides content, method and design; Claude turns those decisions into slides and clips, and shows prototypes before producing the whole set.

Read the references when you need them:

  • references/animation.md before planning anything that moves: the motion vocabulary (which motion explains which kind of step), beat sheets, timing numbers, click clips, rendering pipelines, cartoons, 3D, checks.
  • references/canvas.md before writing a canvas animation with templates/canvas/.
  • references/technical.md before writing deck, video or 3D code (python-pptx timing XML for video, PowerPoint checks, R frame loops, claude.ai Slides decks, Blender).

1. Working protocol

  1. Agree the plan before building. Ask the open questions up front, numbered, with a recommendation first: talk length and audience; where it will be shown (a venue PC or the presenter's own browser, which decides the format in section 3); language of slides and notes; title, authors and event line; the look (section 6); and the list of steps you propose to animate.
  2. If the project keeps a decision log (a CLAUDE.md, a README, a lab notebook), record each decision there with the date, the user's words and the reason.
  3. Never overwrite earlier outputs silently: archive scripts and outputs before a change and compare after it. Never overwrite the presenter's own edits (section 8).
  4. Smoke-test before production: every figure, video and deck script takes a --smoke flag (half size, 10 fps, output to *_TEST folders, never used as the real result).
  5. Prototype before committing to a new visual idea (a motion, cartoons, 3D, a palette): one still or a 3-second clip; the user chooses from images, then the whole set is produced.
  6. Reply in the user's language; write the deck in the language chosen for the talk.

2. Animation is the heart of the talk

The method and the work process are shown as animation, so the audience sees each step happen. A static method slide is the exception, not the default. It works because the operation becomes visible: dots sort into folds, layers drop onto one grid, tiles switch off as variables are dropped, a chart flies apart into a map, a cost wave stalls at a highway. The speaker then narrates over it instead of explaining a diagram.

  1. Start from the process, not the picture. For each method step write one line: input -> operation -> output. Choose the motion that shows the operation (vocabulary table in references/animation.md). Motion that does not explain anything is decoration; leave it out.
  2. Beat sheet tied to the notes. One beat per spoken sentence. An autoplay build completes in about 4-7 s and then holds while the speaker talks. Longer processes become click clips, one beat group per click.
  3. Real data in every frame. Counts, totals, positions and maps come from facts.csv and the outputs, and count-ups end exactly on the fact. Label illustrations (a proposed structure, a schematic plot) as illustrations.
  4. One accent marks what matters now: the held-out fold, the kept predictor, the active stage, the protagonist path. Everything else stays muted.
  5. Every clip ends on a finished picture. The last frame is the poster the audience looks at until the next click, the still in editors and the page in the PDF handout. Hand over to the next step at the start of the next clip, never at the end of this one.
  6. Continuity between slides. Use a chapter label or step strip (or "Method k / n"), the same map frame from slide to slide, and the same object carried across (magic transition in Slides; matched first/last frames in PowerPoint).
  7. Exciting but credible. Ease-out for arrivals, ease-in-out for travel, overshoot only for pops of emphasis; staggered entrances. Never flash faster than 3 times a second. Loops belong only on title and chapter slides, never beside text the audience must read.
  8. Check frames, not code. Look at a frame grid or ?t= stills of every animation at full size before it goes into the deck.

3. Format and animation engine (decide with the user at the start)

PowerPoint (.pptx)claude.ai Slides artifact
Shown froman unknown venue PC, offline, a USB stickthe presenter's own browser, online
MotionMP4 clips: autoplay with the slide, or one clip per click; fade/wipe/appear builds (safe in PowerPoint 2010+)live canvas <x-embed> (16 KB each, at most 8 per slide), click builds, fade/push/magic transitions, uploaded MP4
Built bya python-pptx builder that reads CSVs, checked in PowerPointthe Slides type's files; follow the type's own instructions when editing

Engines, usable for either format:

  • HTML canvas + templates/canvas/canvas_kit.js for diagrams and processes (workflows, equations, tile grids, folds, stacks, charts that morph). Live in Slides; for PowerPoint, record it to MP4 with templates/canvas/capture_canvas.mjs (headless Chrome, no npm packages, frame-exact, about 7 s for 11 s of video). One file can serve both formats.
  • R (ragg + ffmpeg) for map-heavy animations from rasters and vectors (paths, waves, walkers, fragmentation).
  • Blender (headless EEVEE) for 3D terrain fly-ins, with cartoons and labels composited on the rendered frames.

4. Story and structure

  • Storytelling, but academically credible: acts (problem -> method -> findings -> action), about one minute per slide, so a 12-minute talk is about 14 main slides plus backups. Titles are full-sentence conclusions written from the real results after the run ("Two highways split the forest into three blocks"), never generic labels ("Results").
  • Chapter covers ("METHOD", "RESULT") and a small uppercase kicker above each title ("Stage 1 - Predictors") tell the audience where they are; method slides can carry "Method k / n" in the footer.
  • Every result slide has a one-line source or caption at the bottom; audit that it fits on one line.
  • Include: a hook (the subject or the problem in one photo), "meet the subjects" photos (credited; download only with permission), an animated workflow, a limitations slide, a reality check against independent data, an action slide, take-home messages; methods tables and credits in backup.
  • Bridge concepts in the order the audience needs them (least-cost path before circuit current; a single model before the ensemble).
  • Speaker notes: first line a time tag such as [0:50] ("Backup." on backups), then real bullets, one short sentence each (24 words at most), with cues inline: "(Video)", "[click]". The times must add up to the slot.

5. Numbers and claims

  • Every number on a slide, in a frame or in the notes comes from CSV (a facts.csv with id, value, source) through the builder; log each placed number to deck_numbers.csv (videos: *_numbers.csv). No typed numbers.
  • Every story claim ("two crossings are already built", "the best cell is the existing overpass") gets an audit in the builder against the data; the build stops if it fails.

6. Look (choose one per talk and keep it for the whole deck)

Two looks that worked; use them as starting points or take the user's own palette:

  • Field look: white background; #1E3B2F deep green, #7F8C6A sage, #C8B48A sand, #F5F0E6 cream; Georgia headings and Calibri body (on every Office install); categorical series colours such as #E3A33B, #8E5FC0, #2F9EB3, and #C8402E for barriers.
  • Editorial look: warm cream #F0EEE6, ink #1F1E1C, muted #6E6A64, terracotta accent #C8603F (+ #E3A589, #9C4A30), greys #8C8984 / #C9C5BE, cards #E6E2D8; one sans-serif family; a 96 x 4 px accent rule above an uppercase kicker; a one-line footer caption.
  • Maps: a terrain + hypsometric-tint basemap reads better than satellite imagery at slide size; perceptual sequential palettes (viridis for suitability; yellow -> red for flow, bent at the threshold that matters); check categorical colours for colour-vision deficiency; rounded frame corners; the same map frame from slide to slide so cross-fades read as layers changing.
  • Cartoon animals walking along paths (faded where the species is absent), zoom insets where features are too small, a 3D drone fly-in to the key site, cross-section profiles for proposed structures.
  • Title slide: the exact title broken at phrase boundaries (measured with the real font), authors with superscript affiliation marks and no-break spaces inside names, affiliations one per line. A full-bleed map cover with callout circles works well: a real photo only where one exists for that place, pictograms elsewhere.

7. Build and check (every run)

  1. Figures + facts.csv -> animations (canvas capture, R or Blender) -> deck (python-pptx, or the Slides artifact files) -> a structural check (for example the pptx skill's validate.py, if it is available).
  2. PowerPoint: build two decks, the slideshow deck (video posters = first frames) and the print deck (posters = last frames), which is exported to the PDF handout.
  3. Open the decks in PowerPoint (on macOS through AppleScript, see references/technical.md), count slides and effects, export the print deck to PDF, render the pages (pdftoppm) and look at every changed slide. Look at a frame grid of every new or changed video. For a claude.ai Slides deck: open ?t= stills of each canvas locally, then preview the changed slides in the Slides viewer and give the user the deck link.
  4. Before overwriting a deck, check its modification time and the ~$ lock file: if PowerPoint saved it after your build, the user has edited it (section 8).
  5. Report what ran, which audits passed, what changed on which slide, what is NOT verified (click playback in the real slideshow, the venue PC), and what the user must still edit (contact line, presenter details).

8. When the presenter edits the deck by hand

  • Never overwrite their edits. Ask them to save and close (no ~$ lock file), copy their file to an archive folder with the date and time in its name, and diff text, geometry and timing against your last build.
  • Carry their edits into the builder before rebuilding: copy speaker notes verbatim from their saved file for every slide except the ones they asked you to write, and audit that the text is identical. If they say the notes are theirs, the builder must not regenerate notes at all.
  • Once they have reworked the deck by hand (renamed it, hidden slides, moved things), their file becomes the master: change it surgically, one slide per script. The script checks that its input equals the archived copy, rewrites only the named slide, and audits that every other slide and all notes are unchanged. The scripted builder is no longer run on the whole deck unless they ask. The old PDF and print deck are then out of date; say so. Hidden slides drop out of the PDF.

Related Skills