math-typography

math-typography is a skill for Claude Code from choxos/MathVizAgent. It costs 29 tokens per session (2,678 once invoked), scanned A, original, MIT.

A guide to displaying and animating mathematical formulas in Manim animations.

In plain words
What is it for?
Use it to create equations, mixed text-and-math labels, colored formula parts, and step-by-step formula animations.
Why use it?
It explains how to combine equations with text, split formulas into parts, and color selected symbols without breaking LaTeX rendering.

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 it to create equations, mixed text-and-math labels, colored formula parts, and step-by-step formula animations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/choxos/mathvizagent/math-typography
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 math-typography
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 math-typography

README.md
[![agentmods](https://agentmods.dev/badge/skills/choxos/mathvizagent/math-typography/github.svg)](https://agentmods.dev/skills/choxos/mathvizagent/math-typography)
Your own site
<a href="https://agentmods.dev/skills/choxos/mathvizagent/math-typography"><img src="https://agentmods.dev/badge/skills/choxos/mathvizagent/math-typography/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 math-typography

Your own site · 80×15
<a href="https://agentmods.dev/skills/choxos/mathvizagent/math-typography"><img src="https://agentmods.dev/badge/skills/choxos/mathvizagent/math-typography.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,678 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.00029 $0.02678
Opus 5.5 $0.00012 $0.01071
Sonnet 5.5 $0.00006 $0.00536
Haiku 4.5 $0.00003 $0.00268

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

Security

Grade A, and why

math-typography 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/math-typography/SKILL.md · 403 lines

How it starts

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

Math Typography

Mathematical typography patterns for Manim animations.

MathTex vs Tex

MathTex - Mathematical Expressions

# Single equation (entire string is math mode)
eq = MathTex(r"E = mc^2")

# Multiple parts for animation control
eq = MathTex(r"E", r"=", r"m", r"c^2")
# eq[0] = "E", eq[1] = "=", eq[2] = "m", eq[3] = "c^2"

Tex - Mixed Text and Math

# Text with inline math
label = Tex(r"The equation $E = mc^2$ is famous")

# Multiple parts
label = Tex(r"The value is ", r"$x = 5$")
label[1].set_color(BLUE)  # Color the math part

Semantic Coloring

tex_to_color_map

# Automatic coloring of matched substrings. Manim splits the string at each
# key and compiles the pieces as separate LaTeX, so every key must sit at the
# TOP LEVEL -- never inside a braced group such as \frac{...}{...} (that
# orphans the braces and fails to compile). Color top-level tokens only:
formula = MathTex(
    r"P(A \mid B) = P(B \mid A)\, P(A) / P(B)",
    tex_to_color_map={
        r"A": BLUE,
        r"B": ORANGE,
        r"P": GREEN,
    },
)

⚠️ Coloring inside fractions: a tex_to_color_map key that lands inside \frac{...}{...} (or any {...}) breaks LaTeX compilation. To color variables in a fraction, use the multi-argument form and color submobjects directly (see Manual Coloring below), e.g. MathTex(r"P(A|B)", r"=", r"\frac{P(B|A)P(A)}{P(B)}").set_color_by_tex("frac", GREEN).

Manual Coloring

# Color specific parts
eq = MathTex(r"y", r"=", r"m", r"x", r"+", r"b")
eq[0].set_color(BLUE)    # y
eq[2].set_color(RED)     # m
eq[3].set_color(GREEN)   # x
eq[5].set_color(PURPLE)  # b

Color by Index

# Access characters within a part
eq = MathTex(r"f(x) = x^2")
eq[0][0].set_color(BLUE)     # 'f'
eq[0][2].set_color(GREEN)    # 'x' in f(x)

Split Strategies for Animation

Simple Split

# Each term separate
eq = MathTex(r"a", r"+", r"b", r"=", r"c")

# Animate part by part
self.play(Write(eq[0]))     # a
self.play(Write(eq[1:3]))   # + b
self.play(Write(eq[3:]))    # = c

Read the full file on GitHub · 403 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 · 403 lines · 29 tokens per session scan A fe2616198f8f

Subscribe to this mod's changes

math-typography is a skill published in the GitHub repository choxos/MathVizAgent (1 stars, last pushed 6mo ago), licensed MIT. It adds 29 tokens to every session and 2,678 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

math-typography compared with skills from other repositories

math-typography next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
math-typographychoxos/MathVizAgentSkill16mo agoMITA29Claude 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