component-design

component-design is a skill for Claude Code from choxos/MathVizAgent. It costs 25 tokens per session (2,468 once invoked), scanned A, original, MIT.

Reusable building patterns for Manim, a Python tool that creates mathematical animations. They show how to package related visual objects into components that can be created, moved, styled, and animated together.

In plain words
What is it for?
Use them to build reusable Manim diagrams, plots, and other animated visual components with parameters and automatic redraws.
Why use it?
They reduce repeated code and keep complex visualizations easier to organize and reuse.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mathviz plugin — 6 skills, 4 commands, 6 agents shipped together

Good fit Use them to build reusable Manim diagrams, plots, and other animated visual components with parameters and automatic redraws.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/choxos/mathvizagent/component-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add choxos/MathVizAgent --skill component-design
Clone the repo
git clone --depth 1 https://github.com/choxos/MathVizAgent

Made for: Claude Code.

Or install mathviz, the plugin that ships this one along with the rest of its 6 skills, 4 commands, 6 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for component-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/choxos/mathvizagent/component-design/github.svg)](https://agentmods.dev/skills/choxos/mathvizagent/component-design)
Your own site
<a href="https://agentmods.dev/skills/choxos/mathvizagent/component-design"><img src="https://agentmods.dev/badge/skills/choxos/mathvizagent/component-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for component-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/choxos/mathvizagent/component-design"><img src="https://agentmods.dev/badge/skills/choxos/mathvizagent/component-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,468 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.02468
Opus 5.5 $0.00010 $0.00987
Sonnet 5.5 $0.00005 $0.00494
Haiku 4.5 $0.00003 $0.00247

Measured 3mo ago against content hash a9b0283420b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

component-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/mathviz/skills/component-design/SKILL.md · 433 lines

How it starts

The opening of the file, as written. The whole thing — 433 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Component Design

Patterns for creating reusable, well-structured Manim components.

VGroup Subclass Pattern

Basic Structure

class MyComponent(VGroup):
    """Reusable visualization component"""

    def __init__(self, param1, param2, **kwargs):
        super().__init__(**kwargs)

        # Store parameters
        self.param1 = param1
        self.param2 = param2

        # Build component
        self._build()

    def _build(self):
        """Construct the component's mobjects"""
        # Create child mobjects
        self.part_a = Circle(radius=self.param1)
        self.part_b = Square(side_length=self.param2)

        # Position relative to each other
        self.part_b.next_to(self.part_a, RIGHT)

        # Add to self (VGroup)
        self.add(self.part_a, self.part_b)

Usage

# Create instance
component = MyComponent(1.0, 0.5)

# It's a VGroup, so all VGroup methods work
component.scale(0.5)
component.move_to(LEFT * 2)
component.set_color(BLUE)

# Animate
self.play(Create(component))
self.play(component.animate.shift(RIGHT * 3))

Real-World Example: Distribution Plot

from scipy.stats import norm

class DistributionPlot(VGroup):
    """Self-contained probability distribution visualization"""

    def __init__(
        self,
        func,                # Distribution function
        x_range=(-3, 3),     # Domain
        color=BLUE,
        show_axes=True,
        **kwargs
    ):
        super().__init__(**kwargs)

        self.func = func
        self.x_min, self.x_max = x_range
        self.color = color

        self._build(show_axes)

    def _build(self, show_axes):
        # Calculate y range from function
        x_vals = np.linspace(self.x_min, self.x_max, 100)
        y_vals = [self.func(x) for x in x_vals]
        y_max = max(y_vals) * 1.1

        # Create axes
        self.axes = Axes(
            x_range=[self.x_min, self.x_max, 1],
            y_range=[0, y_max, y_max/4],
            x_length=6,
            y_length=4,
            tips=False
        )

        # Create plot
        self.curve = self.axes.plot(self.func, color=self.color)

        # Add to component
        if show_axes:
            self.add(self.axes)
        self.add(self.curve)

    # Helper methods
    def get_point(self, x):
        """Get point on curve at x value"""
        return self.axes.c2p(x, self.func(x))

    def get_area(self, x_start, x_end, color=None):
        """Get shaded area under curve"""
        return self.axes.get_area(
            self.curve,
            x_range=[x_start, x_end],
            color=color or self.color
        )

    def get_vertical_line(self, x, color=RED):
        """Get vertical line from x-axis to curve"""
        return DashedLine(
            start=self.axes.c2p(x, 0),
            end=self.get_point(x),
            color=color
        )

Read the full file on GitHub · 433 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 433 lines · 25 tokens per session scan A a9b0283420b5

Subscribe to this mod's changes

component-design is a skill published in the GitHub repository choxos/MathVizAgent (1 stars, last pushed 6mo ago), licensed MIT. It adds 25 tokens to every session and 2,468 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

component-design compared with skills from other repositories

component-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
component-designchoxos/MathVizAgentSkill16mo agoMITA25Claude Code
r-miraiposit-dev/skillsSkill57618d agoMITA74Claude Code
r-cran-statusposit-dev/skillsSkill57618d agoMITA105Claude Code
paper-opportunity-radartamdogood/builder-essential-skillsSkill2293d agoMITA98Codex
literature-reviewemaballarin/ccpluginsSkill411d agoMITA121Claude Code
bib-auditemaballarin/ccpluginsSkill411d agoMITA190Claude Code
figure-composeremaballarin/ccpluginsSkill411d agoMITA89Claude Code