math-router
A router that bridges natural language math queries to exact terminal commands, ensuring accurate computation without manual doc lookups.
Install
mkdir -p .claude/skills/math-router && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1683" && unzip -o skill.zip -d .claude/skills/math-router && rm skill.zipInstalls to .claude/skills/math-router
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.
Deterministic router for math cognitive stack - maps user intent to exact CLI commandsKey capabilities
- →Route math requests to specific CLI commands
- →Support 32 routes across seven math libraries
- →Extract arguments from natural language queries
- →Provide deterministic command mapping
How it works
The router parses user intent and maps it to a predefined CLI script using pattern matching rather than LLM inference.
Inputs & outputs
When to use math-router
- →Calculate symbolic derivatives or integrals
- →Convert physical units with precision
- →Solve linear equations and matrix operations
- →Verify logic or satisfy constraints using z3
About this skill
Math Router
ALWAYS use this router first for math requests.
Instead of reading individual skill documentation, call the router to get the exact command:
Usage
# Route any math intent to get the CLI command
uv run python scripts/cc_math/math_router.py route "<user's math request>"
Example Workflow
- User says: "integrate sin(x) from 0 to pi"
- You run:
uv run python scripts/cc_math/math_router.py route "integrate sin(x) from 0 to pi" - Router returns:
{ "command": "uv run python scripts/cc_math/sympy_compute.py integrate \"sin(x)\" --var x --lower 0 --upper pi", "confidence": 0.95 } - You execute the returned command
- Return result to user
Why Use The Router
- Faster: No need to read skill docs
- Deterministic: Pattern-based, not LLM inference
- Accurate: Extracts arguments correctly
- Complete: Covers 32 routes across 7 scripts
Available Routes
| Category | Commands |
|---|---|
| sympy | integrate, diff, solve, simplify, limit, det, eigenvalues, inv, expand, factor, series, laplace, fourier |
| pint | convert, check |
| shapely | create, measure, pred, op |
| z3 | prove, sat, optimize |
| scratchpad | verify, explain |
| tutor | hint, steps, generate |
| plot | plot2d, plot3d, latex |
List All Commands
# List all available routes
uv run python scripts/cc_math/math_router.py list
# List routes by category
uv run python scripts/cc_math/math_router.py list --category sympy
Fallback
If the router returns {"command": null}, the intent wasn't recognized. Then:
- Ask user to clarify
- Or use individual skills: /sympy-compute, /z3-solve, /pint-compute, etc.
When not to use it
- →When the intent is not a recognized math operation
Limitations
- →Returns null command if intent is not recognized
How it compares
It provides a deterministic routing layer to exact CLI commands instead of relying on general-purpose LLM math capabilities.
Compared to similar skills
math-router side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| math-router (this skill) | 6 | 7mo | Review | Beginner |
| pdf-processing-pro | 17 | 10mo | Review | Intermediate |
| python-repl | 6 | 4mo | Review | Beginner |
| optimizing-gas-fees | 1 | 27d | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by parcadei
View all by parcadei →You might also like
pdf-processing-pro
davila7
Production-ready PDF processing with forms, tables, OCR, validation, and batch operations. Use when working with complex PDF workflows in production environments, processing large volumes of PDFs, or requiring robust error handling and validation.
python-repl
gptme
Interactive Python REPL automation with common helpers and best practices
optimizing-gas-fees
jeremylongshore
Optimize blockchain gas costs by analyzing prices, patterns, and timing. Use when checking gas prices, estimating costs, or finding optimal windows. Trigger with phrases like "gas prices", "optimize gas", "transaction cost", "when to transact".
tooluniverse-sdk
mims-harvard
Build AI scientist systems using ToolUniverse Python SDK for scientific research. Use when users need to access 1000++ scientific tools through Python code, create scientific workflows, perform drug discovery, protein analysis, genomics analysis, literature research, or any computational biology task. Triggers include requests to use scientific tools programmatically, build research pipelines, analyze biological data, search literature, predict drug properties, or create AI-powered scientific workflows.
airflow
ComeOnOliver
Apache Airflow lets you define workflows as Directed Acyclic Graphs (DAGs) in Python. Each DAG consists of tasks connected by dependencies, scheduled and monitored via a web UI.
ahc-optuna
toast-uz
AHC のハイパーパラメータ最適化(`eval.py -o`)を安全に回すための skill。