A central tool that routes complex mathematical tasks to specialized solvers like SymPy or Z3.

Install

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

Installs to .claude/skills/math

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Unified math capabilities - computation, solving, and explanation. I route to the right tool.
93 charsno explicit “when” trigger
Beginner

Key capabilities

  • Solve algebraic equations
  • Compute derivatives and integrals
  • Perform matrix operations
  • Verify logical propositions
  • Convert units

How it works

It routes requests to specialized Python scripts using SymPy for symbolic math, Z3 for constraint solving, or Pint for unit conversion.

Inputs & outputs

You give it
Mathematical expression or natural language query
You get back
Computed result or formal explanation

When to use math

  • Solving algebraic equations
  • Calculating derivatives or integrals
  • Performing matrix operations
  • Verifying logical propositions
  • Converting units

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.

When not to use it

  • Machine-verified formal proofs
  • Category theory proofs

Prerequisites

PythonSymPyZ3Pint

Limitations

  • Limited to supported libraries
  • Requires specific command syntax for complex operations

How it compares

It automates the selection of the correct mathematical engine based on the input query instead of requiring manual tool selection.

Compared to similar skills

math side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
math (this skill)107moReviewBeginner
quant-analyst1032moNo flagsAdvanced
umap-learn62moReviewIntermediate
embedding-strategies82moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

quant-analyst

zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

103355

umap-learn

K-Dense-AI

UMAP dimensionality reduction. Fast nonlinear manifold learning for 2D/3D visualization, clustering preprocessing (HDBSCAN), supervised/parametric UMAP, for high-dimensional data.

6100

embedding-strategies

wshobson

Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.

890

building-automl-pipelines

jeremylongshore

Build automated machine learning pipelines, including feature engineering, model selection, and performance evaluation.

688

model-compare

rawwerks

Compare 3D CAD models using boolean operations (IoU, Dice, precision/recall). Use when evaluating generated models against gold references, diffing CAD revisions, or computing similarity metrics for ML training. Triggers on: model diff, compare models, IoU, intersection over union, model similarity, CAD comparison, STEP diff, 3D evaluation, gold reference, generated model, precision recall 3D.

783

matchms

davila7

Mass spectrometry analysis. Process mzML/MGF/MSP, spectral similarity (cosine, modified cosine), metadata harmonization, compound ID, for metabolomics and MS data processing.

674

Search skills

Search the agent skills registry