Skip to content
Development
Skill

/math-router

Deterministic router for math cognitive stack - maps user intent to exact CLI commands

From plugin
continuous-claude-v3
3.9k156 skills32 agents
Install
$ npx -y skills add parcadei/Continuous-Claude-v3 --skill math-router --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/math-router

Context preview

The summary Claude sees to decide when to auto-load this skill.

Deterministic router for math cognitive stack - maps user intent to exact CLI commands

SKILL.md

math-router.SKILL.md
name: math-router
description: Deterministic router for math cognitive stack - maps user intent to exact CLI commands
triggers: ["math", "calculate", "compute", "solve", "integrate", "derivative", "plot", "convert", "prove"]
priority: high
user-invocable: false

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

| 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: 1. Ask user to clarify 2. Or use individual skills: /sympy-compute, /z3-solve, /pint-compute, etc.

Read more
Ships withcontinuous-claude-v3

A persistent, learning, multi-agent development environment built on Claude Code Continuous Claude transforms Claude Code into a continuously learning system that maintains context across sessions, orchestrates specialized agents, and eliminates wasting

Get the whole plugin

Other skills on continuous-claude-v3.