Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
adithya-s-k avatar

Manimgl Best Practices

  • 1.6k installs
  • 1k repo stars
  • Updated January 23, 2026
  • adithya-s-k/manim_skill

manimGL animation best practices.

About

The manimgl-best-practices skill provides manimlib animation code patterns for attention flow visualizations and 3Blue1Brown-style transformer visuals. Includes random_bright_color hue_range helper and value_to_color mapping positive negative value gradients for BLUE and RED scales. Example AttentionArcsAnimation runnable via manimgl attention_arcs_animation.py AttentionArcsAnimation -o. Use building mathematical animations attention arc diagrams and manimGL scenes with consistent color mapping utilities for educational motion graphics content. manimlib attention arc animation patterns. value_to_color gradient mapping helper. random_bright_color hue utility. 3Blue1Brown transformer visualization style. Run via manimgl module Scene -o output. manimGL animation best practices. User asks manimgl animation best practices.

  • manimlib attention arc animation patterns.
  • value_to_color gradient mapping helper.
  • random_bright_color hue utility.
  • 3Blue1Brown transformer visualization style.
  • Run via manimgl module Scene -o output.

Manimgl Best Practices by the numbers

  • 1,595 all-time installs (skills.sh)
  • +33 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #182 of 1,340 Generative Media skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

manimgl-best-practices capabilities & compatibility

Capabilities
scene patterns · color mapping
Use cases
video generation
npx skills add https://github.com/adithya-s-k/manim_skill --skill manimgl-best-practices

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.6k
repo stars1k
Security audit2 / 3 scanners passed
Last updatedJanuary 23, 2026
Repositoryadithya-s-k/manim_skill

manimGL attention arc animation?

manimGL animation patterns including attention arcs and color utilities for mathematical visualizations.

Who is it for?

Educational animation authors.

Skip if: Non-manim video editing.

When should I use this skill?

User asks manimgl animation best practices.

What you get

Runnable manim scene with color helpers.

  • ManimGL scene Python files
  • rendered animation output

Files

SKILL.mdMarkdownGitHub ↗

""" Attention Arcs Animation - Simple attention flow visualization

Shows how attention connects different positions with animated arcs. Based on 3Blue1Brown's transformer visualizations.

Run: manimgl attention_arcs_animation.py AttentionArcsAnimation -o """ from manimlib import * import numpy as np import random

def random_bright_color(hue_range=(0.0, 1.0)): """Generate a random bright color within a hue range.""" hue = random.uniform(*hue_range) return Color(hsl=(hue, 0.7, 0.6))

def value_to_color( value, low_positive_color=BLUE_E, high_positive_color=BLUE_B, low_negative_color=RED_E, high_negative_color=RED_B, min_value=0.0, max_value=10.0 ): """Map a value to a color based on its sign and magnitude.""" alpha = np.clip(float((abs(value) - min_value) / (max_value - min_value)), 0, 1) if value >= 0: return interpolate_color(low_positive_color, high_positive_color, alpha) else: return interpolate_color(low_negative_color, high_negative_color, alpha)

class SimpleEmbedding(VGroup): """A simple numeric embedding visualization."""

def __init__(self, length=7, height=2.0, kwargs): super().__init__(kwargs)

Create rectangles for entries

entries = VGroup() for i in range(length): value = random.uniform(-9.9, 9.9) rect = Rectangle(width=0.3, height=height / length * 0.8) color = value_to_color(value) rect.set_fill(color, opacity=0.8) rect.set_stroke(WHITE, 1) entries.add(rect)

entries.arrange(DOWN, buff=0.05) entries.set_height(height)

Add brackets

lb = Tex(r"\left[", font_size=72) rb = Tex(r"\right]", font_size=72) lb.stretch_to_fit_height(height 1.1) rb.stretch_to_fit_height(height 1.1) lb.next_to(entries, LEFT, buff=0.05) rb.next_to(entries, RIGHT, buff=0.05)

self.add(lb, entries, rb) self.entries = entries self.brackets = VGroup(lb, rb)

class AttentionArcsAnimation(Scene): """ Demonstrates attention mechanism through animated arcs connecting positions.

This visualization shows how each position attends to other positions, with arc colors and widths representing attention weights. """

def construct(self):

Create a row of embeddings

n_embeddings = 6 embeddings = VGroup(*( SimpleEmbedding(length=8, height=3.0) for _ in range(n_embeddings) )) embeddings.arrange(RIGHT, buff=0.8) embeddings.set_width(FRAME_WIDTH - 2) embeddings.to_edge(DOWN, buff=1.5)

Add position labels

labels = VGroup(*( Text(f"Pos {i}", font_size=24) for i in range(n_embeddings) )) for label, emb in zip(labels, embeddings): label.next_to(emb, DOWN, buff=0.2)

Title

title = Text("Attention: How positions communicate", font_size=48) title.to_edge(UP)

Show initial setup

self.play( Write(title), LaggedStartMap(FadeIn, embeddings, shift=0.5 UP, lag_ratio=0.1), run_time=2 ) self.play(LaggedStartMap(FadeIn, labels, shift=0.2 DOWN, lag_ratio=0.1)) self.wait()

Create attention arcs for each position

self.play_attention_animation(embeddings, run_time=4) self.wait()

Show focused attention on one position

focus_label = Text("Each position gathers context from others", font_size=36) focus_label.next_to(title, DOWN, buff=0.5)

self.play(FadeIn(focus_label, shift=DOWN)) self.play_focused_attention(embeddings, focus_index=3, run_time=3) self.wait()

Cleanup

self.play( FadeOut(focus_label), FadeOut(title), FadeOut(labels), FadeOut(embeddings), )

de

Related skills

FAQ

Run example?

manimgl attention_arcs_animation.py AttentionArcsAnimation -o.

Color helper?

value_to_color maps values to blue red gradients.

Library?

manimlib imported from manimGL.

Is Manimgl Best Practices safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.