MA

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.zip

Installs 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 commands
86 charsno explicit “when” trigger
Beginner

Key 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

You give it
Natural language math request
You get back
Exact CLI command string

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

  1. User says: "integrate sin(x) from 0 to pi"
  2. You run: uv run python scripts/cc_math/math_router.py route "integrate sin(x) from 0 to pi"
  3. Router returns:
    {
      "command": "uv run python scripts/cc_math/sympy_compute.py integrate \"sin(x)\" --var x --lower 0 --upper pi",
      "confidence": 0.95
    }
    
  4. You execute the returned command
  5. 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

CategoryCommands
sympyintegrate, diff, solve, simplify, limit, det, eigenvalues, inv, expand, factor, series, laplace, fourier
pintconvert, check
shapelycreate, measure, pred, op
z3prove, sat, optimize
scratchpadverify, explain
tutorhint, steps, generate
plotplot2d, 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:

  1. Ask user to clarify
  2. 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.

SkillInstallsUpdatedSafetyDifficulty
math-router (this skill)67moReviewBeginner
pdf-processing-pro1710moReviewIntermediate
python-repl64moReviewBeginner
optimizing-gas-fees127dReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

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.

17110

python-repl

gptme

Interactive Python REPL automation with common helpers and best practices

6102

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".

11

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.

01

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.

00

ahc-optuna

toast-uz

AHC のハイパーパラメータ最適化(`eval.py -o`)を安全に回すための skill。

00

Search skills

Search the agent skills registry