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.
Source: parcadei/Continuous-Claude-v3 → .claude/skills/math-router/SKILL.md
1---2name: math-router3description: Deterministic router for math cognitive stack - maps user intent to exact CLI commands4---5
6
7# Math Router
8
9**ALWAYS use this router first for math requests.**
10
11Instead of reading individual skill documentation, call the router to get the exact command:
12
13## Usage
14
15```bash
16# Route any math intent to get the CLI command
17uv run python scripts/cc_math/math_router.py route "<user's math request>"
18```
19
20## Example Workflow
21
221. User says: "integrate sin(x) from 0 to pi"
232. You run: `uv run python scripts/cc_math/math_router.py route "integrate sin(x) from 0 to pi"`
243. Router returns:
25 ```json
26 {
27 "command": "uv run python scripts/cc_math/sympy_compute.py integrate \"sin(x)\" --var x --lower 0 --upper pi",
28 "confidence": 0.95
29 }
30 ```
314. You execute the returned command
325. Return result to user
33
34## Why Use The Router
35
36- **Faster**: No need to read skill docs
37- **Deterministic**: Pattern-based, not LLM inference
38- **Accurate**: Extracts arguments correctly
39- **Complete**: Covers 32 routes across 7 scripts
40
41## Available Routes
42
43| Category | Commands |
44|----------|----------|
45| sympy | integrate, diff, solve, simplify, limit, det, eigenvalues, inv, expand, factor, series, laplace, fourier |
46| pint | convert, check |
47| shapely | create, measure, pred, op |
48| z3 | prove, sat, optimize |
49| scratchpad | verify, explain |
50| tutor | hint, steps, generate |
51| plot | plot2d, plot3d, latex |
52
53## List All Commands
54
55```bash
56# List all available routes
57uv run python scripts/cc_math/math_router.py list
58
59# List routes by category
60uv run python scripts/cc_math/math_router.py list --category sympy
61```
62
63## Fallback
64
65If the router returns `{"command": null}`, the intent wasn't recognized. Then:
661. Ask user to clarify
672. Or use individual skills: /sympy-compute, /z3-solve, /pint-compute, etc.
68
69---
70
71**Source:** [`parcadei/Continuous-Claude-v3`](https://github.com/parcadei/Continuous-Claude-v3) → `.claude/skills/math-router/SKILL.md`