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