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