All skills
adithya-s-k avatar

/manim-composer

@6668663
by Adithya S Kadithya-s-k/manim_skill1.1k stars
94

Trigger when: (1) User wants to create an educational/explainer video, (2) User has a vague concept they want visualized, (3) User mentions "3b1b style" or "explain like 3Blue1Brown", (4) User wants to plan a Manim video or animation sequence, (5) User asks to "compose" or "plan" a math/science visualization. Transforms vague video ideas into detailed scene-by-scene plans (scenes.md). Conducts research, asks clarifying questions about audience/scope/focus, and outputs comprehensive scene specifications ready for implementation with ManimCE or ManimGL. Use this BEFORE writing any Manim code. This skill plans the video; use manimce-best-practices or manimgl-best-practices for implementation.

Use this Skill: https://skilld.dev/gh/adithya-s-k/manim_skill/manim-composer

This session only. Nothing lands on disk.

referencesscene-examples.md

≈1.4k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Scene Examples

Example scene breakdowns from 3b1b-style videos.


Example 1: Explaining the Dot Product

Scene 1: The Question

Duration: ~30 seconds Purpose: Hook the viewer with the mystery

Visual Elements

  • Two vectors a and b drawn as arrows
  • The dot product formula: a · b = |a||b|cos(θ)
  • Question mark animation

Content Open on two vectors. Show the formula. Pose the question: "Why does multiplying components and adding them give you something related to the angle between vectors?"

Narration Notes Tone: curious, slightly puzzled. Emphasize that the formula seems arbitrary.

Technical Notes

  • Use Arrow for vectors
  • MathTex for formula
  • Indicate() on the cos(θ) term

Scene 2: Geometric Interpretation

Duration: ~90 seconds Purpose: Show projection interpretation

Visual Elements

  • Vector a (horizontal, blue)
  • Vector b (angled, green)
  • Projection of b onto a (dashed line)
  • Right angle marker
  • Length labels

Content Show that a · b equals |a| times the projection of b onto a. Animate the projection dropping down. Show this equals |a||b|cos(θ) geometrically.

Narration Notes "The dot product measures how much one vector goes in the direction of another."

Technical Notes

  • DashedLine for projection
  • RightAngle mobject
  • animate.rotate() for showing different angles

Scene 3: Numeric Connection

Duration: ~60 seconds Purpose: Connect geometry to algebra

Visual Elements

  • Coordinate grid
  • Vector a = [a₁, a₂]
  • Vector b = [b₁, b₂]
  • Components highlighted

Content Show vectors on grid with components labeled. Demonstrate why a₁b₁ + a₂b₂ equals the geometric interpretation. Use specific numbers.

Narration Notes Walk through calculation slowly. "Let's see why the algebra matches the geometry."

Technical Notes

  • NumberPlane or Axes
  • Brace for component labels
  • TransformMatchingTex for equation steps

Example 2: Introduction to Fourier Series

Scene 1: The Hook

Duration: ~45 seconds Purpose: Show the surprising result

Visual Elements

  • A square wave (sharp corners)
  • Sum of smooth sine waves
  • Morphing animation between them

Content "You can build a square wave—something with sharp corners—from perfectly smooth sine waves." Show the result first, then promise to explain how.

Narration Notes Tone: wonder, slight disbelief. This should feel surprising.

Technical Notes

  • ParametricFunction for waves
  • Transform animation for the morph
  • Consider showing 1, 3, 5 terms building up

Scene 2: Building Blocks

Duration: ~120 seconds Purpose: Introduce sine waves as basis

Visual Elements

  • Single sine wave
  • Frequency visualization (faster oscillation)
  • Amplitude visualization (taller/shorter)
  • Phase visualization (shifting left/right)

Content Introduce the three parameters: frequency, amplitude, phase. Show each one separately, then combine.

Narration Notes Go slow. "A sine wave has three knobs we can adjust..."

Technical Notes

  • ValueTracker for animating parameters
  • Updaters to make wave respond to trackers
  • Labels for each parameter

Scene 3: Superposition

Duration: ~90 seconds Purpose: Show waves can be added

Visual Elements

  • Two sine waves (different colors)
  • Their sum (third color)
  • Point-by-point addition visualization

Content Show that adding waves means adding their heights at each point. Demonstrate with two specific frequencies combining.

Narration Notes "Adding waves is simple—at each point, just add the heights."

Technical Notes

  • VGroup of three function graphs
  • Vertical lines showing addition at specific x values
  • Animate the addition happening

Example 3: Matrix as Linear Transformation

Scene 1: Grid Transformation

Duration: ~60 seconds Purpose: Visual foundation

Visual Elements

  • 2D coordinate grid (NumberPlane)
  • Basis vectors i-hat and j-hat (colored arrows)
  • Grid lines transforming

Content Show a grid. Highlight i-hat (1,0) and j-hat (0,1). Apply a transformation—watch the entire grid move while tracking where basis vectors land.

Narration Notes "Watch what happens to the grid when we apply this transformation. Notice how every point moves."

Technical Notes

  • NumberPlane with visible grid lines
  • apply_matrix() method
  • Keep basis vectors visually distinct

Scene 2: Basis Vectors Determine Everything

Duration: ~90 seconds Purpose: Key insight

Visual Elements

  • Transformed i-hat and j-hat
  • Arbitrary vector v as combination
  • v = xi + yj visualization

Content Show that knowing where i-hat and j-hat land tells you where ANY vector lands. Because v = xi + yj, the transformed v = x(new i) + y(new j).

Narration Notes "Here's the key insight..." Build anticipation before the reveal.

Technical Notes

  • Vector addition animation (tip-to-tail)
  • Scaling animation for coefficients
  • TransformMatchingShapes for the combination

Scene Transition Patterns

Zoom Focus

Full scene → Zoom into detail → Explain → Zoom out

Side-by-Side Build

Empty left | Empty right
Add to left | Compare
Add to right | Connect them

Transform Chain

Object A → Transform → Object B → Transform → Object C
(Maintain visual continuity throughout)

Reset and Rebuild

Complex scene → Clear/fade most → Focus on one element → Build new complexity

Source: SKILL.md on GitHub

1 warning17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill is a design and planning framework for creating Manim animations in the style of 3Blue1Brown. It provides narrative structures, visual techniques, and scene templates to guide the AI agent through the conceptual phase of video production. No security risks, executable code, or malicious patterns were detected.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    5 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 6668663. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 8 months ago

README badge

README badge for adithya-s-k/manim_skill/manim-composer