Skip to content
math logo

/math - Unified Math Capabilities

math

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

SKILL.md

Full skill instructions

/​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.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View