Math Router

parcadei/continuous-claude-v3/.claude/skills/math-router

作者 parcadeid07ff4b06b62無授權條款3.9K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 個月前更新

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

僅含說明AI & Agents
AI 產生的概覽

將數學請求路由到數學認知堆疊的精確 CLI 命令。

功能
此技能扮演確定性、以模式為基礎的路由器,將使用者的數學意圖對應到特定的 CLI 命令。它會傳回包含命令與信心值的 JSON 物件,接著由代理執行。它涵蓋 7 個指令碼中的 32 條路由,包括 sympy、pint、shapely、z3、scratchpad、tutor 與 plot 類別。它也支援列出所有路由或依類別篩選。
適用情境
在任何數學請求中優先使用,例如積分、微分、求解、單位轉換、證明或繪圖。其目的是避免閱讀個別技能文件並快速取得精確命令。若路由器傳回空命令,表示意圖未被辨識,應請使用者釐清。
執行需求
它需要 uv 執行環境與 Python,並引用 scripts/cc_math/ 下的指令碼,例如 math_router.py 與 sympy_compute.py。此技能本身不附帶指令碼,僅為指示。

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

bash
# Route any math intent to get the CLI commanduv 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:
    json
    {  "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

bash
# List all available routesuv run python scripts/cc_math/math_router.py list
# List routes by categoryuv 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.

來源與署名

來源:parcadei/continuous-claude-v3位於.claude/skills/math-router提交d07ff4b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

Math Router · .claude/skills/math-router 代理程式技能 | SourceWeft