Communitygithub.com

animated-explainer

Create editable animated explainers, visual comparisons, process diagrams and knowledge posters from topics, notes, documents or optional visual references; export PNG, GIF or MP4. Use for explanatory graphics, including static versions of an animation.

What is animated-explainer?

animated-explainer is a Claude Code agent skill that create editable animated explainers, visual comparisons, process diagrams and knowledge posters from topics, notes, documents or optional visual references; export PNG, GIF or MP4. Use for explanatory graphics, including static versions of an animation.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Xiaoye119/animated-explainer-skill/tree/HEAD/skills/animated-explainer

Ask in your favorite AI

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

Documentation

Animated Explainer

Turn the user's material into a clear, editable visual explanation. Use the bundled React/SVG/Remotion starter when appropriate. The agent writes the explanation and code; the renderer exports it. No model API or paid service is required by this skill.

Input and scope

  • Accept a topic, pasted notes, structured data, documents, links, paper excerpts, images, local video, or a mixture. Use what the user actually supplies.
  • A reference video is optional. Never search for or download Douyin merely because this skill is active. For a supplied reference, read reference-inputs.md; ordinary text tasks skip it.
  • Preserve requested language, theme, dimensions, output types and audience. Default to a light portrait explainer and PNG + a short looping GIF when unspecified. MP4 is useful for sharper playback.
  • Ask only for missing information that changes the explanation materially. Otherwise state a reasonable assumption and proceed. A new factual topic may need primary-source research; supplied complete material may not.

Prepare only the dependencies this task needs

Read environment.md and run the read-only scripts/doctor.mjs before setup. It checks installed tools without installing or downloading anything.

Before installing or upgrading a missing runtime, package, rendering browser, font, external skill, or system library, present the concrete proposed additions and get user approval. A request to install this skill authorizes copying its files, not all environmental changes. Explain scope, source and why each addition is needed. Group related additions into one request. Existing explicit authorization covers those same additions; do not ask again. If approval is pending, continue content preparation but do not run the dependent installation. If declined, use an already available alternative or deliver the prepared source and name the missing capability.

Prefer project-local dependencies and official package sources. Do not execute npx as a hidden installation step. Do not modify global profiles or install unrelated ML stacks. LeRobot/ROS/Rerun may be content sources; explaining them does not require installing them.

The official Remotion skills are optional guidance, not a runtime dependency. Reuse them if available. Fetch/install them only when their detailed guidance is needed and the user approves the addition. This skill contains enough guidance for its bundled starter.

Make the explanation

  1. Decide the question the image should answer. Extract objects, relationships, steps and the most useful comparison dimensions. Keep terminology and comparison conditions consistent.
  2. Record factual sources in sources.md or in the spec's sources. Label invented values and illustrative motion as schematic. Do not turn a reference video's timing or counters into measured performance. Cite specific paper sections and evaluation settings when comparing papers; unknown cells stay unknown.
  3. Select a layout by relationships: cards for independent concepts; rows for comparable alternatives sharing stages; flow for ordered steps or a feedback cycle. These are starting points, not limits. Split dense content into more outputs or customize the source rather than making tiny text.
  4. Give every motion a meaning: movement = transfer, growing queue = backlog, grouped movement = grouped split, highlighted state = inspection, branch = alternative, loop = feedback. A generic animated dot is not sufficient when the concept needs a different mechanism.

Read visual-authoring.md for layout and animation decisions; read spec.md only when using the starter's content JSON.

Build and preview

  • Use node scripts/create-project.mjs --dest <new-project> to copy the starter. This does not install anything and refuses a nonempty destination.
  • After approved dependency setup, write a content spec or customize src/Poster.tsx. The starter supports 3–8 cards, 3–9 rows and 3–7 flow stages. Its diagram types are reusable examples; add a new diagram when needed.
  • Use useCurrentFrame() / useVideoConfig() as the animation clock. Avoid CSS animations, wall-clock time and nondeterministic random values. Keep the first and last loop states coherent.
  • Preview with the local Remotion CLI (node node_modules/@remotion/cli/remotion-cli.js studio). Before a full export, render a representative still and inspect it. If no interactive browser is available, inspect rendered stills at start, transition, hold and loop boundary.
  • Check Chinese fonts explicitly. System font fallback can differ. Obtain any missing font only with approval and keep its license; never bundle proprietary system fonts.

Export and verify

Run node scripts/render.mjs --project <project> --spec <spec.json> --out <output-dir> --formats png,gif,mp4 (choose only requested formats). The script validates content, refuses missing dependencies, uses installed renderers and FFmpeg, writes evidence and checks media metadata. It never installs dependencies or downloads a browser.

Read quality.md before delivery. Check the rendered picture, meaningful intermediate states, text clipping, contrast, loop behavior and factual qualification. Export success alone is not visual verification. Keep the editable source, content spec and sources with the result. Describe material limits such as silent output or schematic data.

Revision

Use the same project for follow-ups. Change the requested content, theme, layout or timing; preserve other authored choices. Re-render affected outputs and recheck relevant states. Do not publish or upload anything unless the user requests it.

Related Skills