math-tools — Claude Code skill: exact symbolic computation with SymPy
math-tools — a skill for symbolic mathematics across Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode. Solves algebra, calculus, linear algebra, and number theory problems exactly—no rounding or approximation errors.
no license 1 installs ★ 689 updated 2026-01-18
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a claude-codeWhat math-tools does
Runs python scripts/math_calculator.py <operation> <args> and returns results as JSON with exact symbolic answer, LaTeX form, and numeric approximation. Built on SymPy, Python's symbolic math library. Handles arithmetic (fractions, roots, factorials), algebraic manipulation (simplify, expand, factor, solve), calculus (derivatives, integrals, limits, Taylor series), matrices (determinants, inverses, eigenvalues), number theory (GCD, LCM, factorization, primality), and statistics.
Requires Python 3 and SymPy installed (pip install sympy). Expression syntax is standard: x**2 for powers, sin(x), cos(x), exp(x), log(x), constants like pi and oo for infinity. Complex operations accept JSON input for systems of equations or matrix multiplication.
What it helps with
- solve polynomial or transcendental equations analytically
- compute derivatives, integrals, limits, and Taylor series
- factor polynomials and simplify algebraic expressions
- find eigenvalues, determinants, and matrix inverses
- calculate GCD, LCM, prime factorization
Example prompts for the agent
- Factor
x**3 - 8using math-tools - Find the derivative of
sin(x)*exp(x)with respect to x - Solve the system:
x + y = 10,x - y = 2
How to install math-tools
1Skills CLI (Vercel)
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a claude-code2Manually: put the files in place
~/.claude/skills/skills/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/skills/
1Skills CLI (Vercel)
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a codex2Manually: put the files in place
.agents/skills/skills/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a cursor2Manually: put the files in place
.cursor/skills/skills/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ananddtyagi/cc-marketplace plugins/math/skills2Manually: put the files in place
.github/skills/skills/SKILL.md1Skills CLI (Vercel)
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a gemini-cli2Platform CLI
gemini skills install https://github.com/ananddtyagi/cc-marketplace --path plugins/math/skillsManually: put the files in place
.devin/skills/skills/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about math-tools
How do I install math-tools in Claude Code?
Run npx skills add ananddtyagi/cc-marketplace --skill skills -a claude-code, then locate ~/.claude/skills/skills/SKILL.md and enable the skill. You'll need Python 3 and SymPy: pip install sympy.
How does math-tools differ from a regular calculator?
math-tools performs symbolic mathematics—exact algebraic expressions rather than decimal approximations. It simplifies (x**2 - 1)/(x - 1) to x + 1, computes the integral ∫x² dx as x³/3, and solves cubic equations exactly. A standard calculator only returns numbers.
What operations does math-tools support?
Arithmetic, algebra (simplify, expand, factor, solve equations), calculus (derivatives, integrals, limits, series), linear algebra (matrices, determinants, eigenvalues), number theory (factorization, primes, GCD, LCM), and statistics (mean, variance, standard deviation).