24
0
Source

Unified math capabilities - computation, solving, and explanation. I route to the right tool.

Install

mkdir -p .claude/skills/math && curl -L -o skill.zip "https://mcp.directory/api/skills/download/1086" && unzip -o skill.zip -d .claude/skills/math && rm skill.zip

Installs to .claude/skills/math

About this skill

/math - Unified Math Capabilities

One entry point for all computation and explanation. I route to the right tool based on your request.

For formal proofs, use /prove instead.


Quick Examples

You SayI Use
"Solve x² - 4 = 0"SymPy solve
"Integrate sin(x) from 0 to π"SymPy integrate
"Eigenvalues of [[1,2],[3,4]]"SymPy eigenvalues
"Is x² + 1 > 0 for all x?"Z3 prove
"Convert 5 miles to km"Pint
"Explain what a functor is"Category theory skill

Computation Scripts

SymPy (Symbolic Math)

uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/sympy_compute.py" <command> <args>
CommandDescriptionExample
solveSolve equationssolve "x**2 - 4" --var x
integrateDefinite/indefinite integralintegrate "sin(x)" --var x --lower 0 --upper pi
diffDerivativediff "x**3" --var x
simplifySimplify expressionsimplify "sin(x)**2 + cos(x)**2"
limitCompute limitlimit "sin(x)/x" --var x --point 0
seriesTaylor expansionseries "exp(x)" --var x --point 0 --n 5
dsolveSolve ODEdsolve "f''(x) + f(x)" --func f --var x
laplaceLaplace transformlaplace "sin(t)" --var t

Matrix Operations:

CommandDescription
detDeterminant
eigenvaluesEigenvalues
eigenvectorsEigenvectors with multiplicities
inverseMatrix inverse
transposeTranspose
rrefRow echelon form
rankMatrix rank
nullspaceNull space basis
linsolveLinear system Ax=b
charpolyCharacteristic polynomial

Number Theory:

CommandDescription
factorFactor polynomial
factorintPrime factorization
isprimePrimality test
gcdGreatest common divisor
lcmLeast common multiple
modinverseModular inverse

Combinatorics:

CommandDescription
binomialC(n,k)
factorialn!
permutationP(n,k)
partitionInteger partitions p(n)
catalanCatalan numbers
bellBell numbers

Z3 (Constraint Solving)

uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/z3_solve.py" <command> <args>
CommandUse Case
satIs this satisfiable?
proveIs this always true?
optimizeFind min/max subject to constraints

Pint (Units)

uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/pint_compute.py" convert <value> <from_unit> <to_unit>

Example: convert 5 miles kilometers


Math Router (Auto-Route)

uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/math_router.py" route "<natural language request>"

Returns the exact command to run. Use when unsure which script.


Topic Skills (For Explanation)

When the request is "explain X" or "what is X", I reference these:

TopicSkill LocationKey Concepts
Abstract Algebramath/abstract-algebra/Groups, rings, fields, homomorphisms
Category Theorymath/category-theory/Functors, natural transformations, limits
Complex Analysismath/complex-analysis/Analytic functions, residues, contour integrals
Functional Analysismath/functional-analysis/Banach spaces, operators, spectra
Linear Algebramath/linear-algebra/Matrices, eigenspaces, decompositions
Mathematical Logicmath/mathematical-logic/Propositional, predicate, proof theory
Measure Theorymath/measure-theory/Lebesgue, σ-algebras, integration
Real Analysismath/real-analysis/Limits, continuity, convergence
Topologymath/topology/Open sets, compactness, connectedness
ODEs/PDEsmath/odes-pdes/Differential equations, boundary problems
Optimizationmath/optimization/Convex, LP, gradient methods
Numerical Methodsmath/numerical-methods/Approximation, error analysis
Graph/Number Theorymath/graph-number-theory/Graphs, primes, modular arithmetic
Information Theorymath/information-theory/Entropy, coding, channels

Routing Logic

I decide based on your request:

"solve/calculate/compute" → SymPy (exact symbolic)
"is X always true?" → Z3 (constraint proving)
"convert units" → Pint
"explain/what is" → Topic skill for context
"prove formally" → Redirect to /prove

Examples

Solve Equation

User: Solve x² - 5x + 6 = 0
Claude: uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/sympy_compute.py" solve "x**2 - 5*x + 6" --var x
Result: x = 2 or x = 3

Compute Eigenvalues

User: Find eigenvalues of [[2, 1], [1, 2]]
Claude: uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/sympy_compute.py" eigenvalues "[[2,1],[1,2]]"
Result: {1: 1, 3: 1}  (eigenvalue 1 with multiplicity 1, eigenvalue 3 with multiplicity 1)

Prove Inequality

User: Is x² + y² ≥ 2xy always true?
Claude: uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/z3_solve.py" prove "x**2 + y**2 >= 2*x*y"
Result: PROVED (equivalent to (x-y)² ≥ 0)

Convert Units

User: How many kilometers in 26.2 miles?
Claude: uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/pint_compute.py" convert 26.2 miles kilometers
Result: 42.16 km

When to Use /prove Instead

Use /prove when you need:

  • Machine-verified formal proof (Lean 4)
  • Category theory proofs (functors, Yoneda, etc.)
  • Publication-quality verification
  • Abstract algebra proofs

/math is for computation. /prove is for verification.

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

241775

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

183405

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

171268

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

196225

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

155191

rust-coding-skill

UtakataKyosui

Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.

157171

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.