# math-tools

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install · ★ 689 repo stars
- Author: ananddtyagi
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ananddtyagi/cc-marketplace/tree/HEAD/plugins/math/skills/SKILL.md
- Updated: 2026-01-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/math-tools

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/skills/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/skills/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/skills/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/skills/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ananddtyagi/cc-marketplace plugins/math/skills
```

2. **Manually: put the files in place**
- File: `.github/skills/skills/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ananddtyagi/cc-marketplace --path plugins/math/skills
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/skills/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ananddtyagi/cc-marketplace/tree/HEAD/plugins/math/skills/SKILL.md

## When to use it
- 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
- Factor `x**3 - 8` using math-tools
- Find the derivative of `sin(x)*exp(x)` with respect to x
- Solve the system: `x + y = 10`, `x - y = 2`

## Similar
- [discover-math](https://affpapa.org/en/nevibecode/skills/discover-math.md) — skill · 146 installs
- [math-teacher](https://affpapa.org/en/nevibecode/skills/math-teacher.md) — skill · 902 installs
- [math-router](https://affpapa.org/en/nevibecode/skills/math-router.md) — skill · 497 installs
- [operator-theory](https://affpapa.org/en/nevibecode/skills/operator-theory.md) — skill · ★ 3951 repo stars
- [Math-MCP](https://affpapa.org/en/nevibecode/mcp/math-mcp.md) — MCP server · 5958 installs
- [Math MCP Learning](https://affpapa.org/en/nevibecode/mcp/clouatre-labs-math-mcp-learning.md) — MCP server · 579 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
