跳到正文
cccskills
免费在 GitHub 公开

math

Handle equations, calculus, matrices, unit conversions, and mathematical explanations through one entry point. The skill selects a suitable calculation tool or topic guide, including symbolic math tools that work directly with expressions.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Unified math capabilities - computation, solving, and explanation. I route to the right tool.

查看安装方法

适用场景

  • Solve equations and calculate integrals
  • Find matrix eigenvalues
  • Convert between units
  • Understand mathematical concepts

包含的文件(1)

  • SKILL.md6.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

/math - Unified Math Capabilities

One entry point for all computation and explanation. I route to the right tool based on your request.

For formal proofs, use /prove instead.


Quick Examples

You SayI Use
"Solve x² - 4 = 0"SymPy solve
"Integrate sin(x) from 0 to π"SymPy integrate
"Eigenvalues of [[1,2],[3,4]]"SymPy eigenvalues
"Is x² + 1 > 0 for all x?"Z3 prove
"Convert 5 miles to km"Pint
"Explain what a functor is"Category theory skill

Computation Scripts

SymPy (Symbolic Math)

uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/sympy_compute.py" <command> <args>
CommandDescriptionExample
solveSolve equationssolve "x**2 - 4" --var x
integrateDefinite/indefinite integralintegrate "sin(x)" --var x --lower 0 --upper pi
diffDerivativediff "x**3" --var x
simplifySimplify expressionsimplify "sin(x)**2 + cos(x)**2"
limitCompute limitlimit "sin(x)/x" --var x --point 0
seriesTaylor expansionseries "exp(x)" --var x --point 0 --n 5
dsolveSolve ODEdsolve "f''(x) + f(x)" --func f --var x
laplaceLaplace transformlaplace "sin(t)" --var t

Matrix Operations:

CommandDescription
detDeterminant
eigenvaluesEigenvalues
eigenvectorsEigenvectors with multiplicities
inverseMatrix inverse
transposeTranspose
rrefRow echelon form
rankMatrix rank
nullspaceNull space basis
linsolveLinear system Ax=b
charpolyCharacteristic polynomial

Number Theory:

CommandDescription
factorFactor polynomial
factorintPrime factorization
isprimePrimality test
gcdGreatest common divisor
lcmLeast common multiple
modinverseModular inverse

Combinatorics:

CommandDescription
binomialC(n,k)
factorialn!
permutationP(n,k)
partitionInteger partitions p(n)
catalanCatalan numbers
bellBell numbers

Z3 (Constraint Solving)

uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/z3_solve.py" <command> <args>
CommandUse Case
satIs this satisfiable?
proveIs this always true?
optimizeFind min/max subject to constraints

Pint (Units)

uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/pint_compute.py" convert <value> <from_unit> <to_unit>

Example: convert 5 miles kilometers


Math Router (Auto-Route)

uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/math_router.py" route "<natural language request>"

Returns the exact command to run. Use when unsure which script.


Topic Skills (For Explanation)

When the request is "explain X" or "what is X", I reference these:

TopicSkill LocationKey Concepts
Abstract Algebramath/abstract-algebra/Groups, rings, fields, homomorphisms
Category Theorymath/category-theory/Functors, natural transformations, limits
Complex Analysismath/complex-analysis/Analytic functions, residues, contour integrals
Functional Analysismath/functional-analysis/Banach spaces, operators, spectra
Linear Algebramath/linear-algebra/Matrices, eigenspaces, decompositions
Mathematical Logicmath/mathematical-logic/Propositional, predicate, proof theory
Measure Theorymath/measure-theory/Lebesgue, σ-algebras, integration
Real Analysismath/real-analysis/Limits, continuity, convergence
Topologymath/topology/Open sets, compactness, connectedness
ODEs/PDEsmath/odes-pdes/Differential equations, boundary problems
Optimizationmath/optimization/Convex, LP, gradient methods
Numerical Methodsmath/numerical-methods/Approximation, error analysis
Graph/Number Theorymath/graph-number-theory/Graphs, primes, modular arithmetic
Information Theorymath/information-theory/Entropy, coding, channels

Routing Logic

I decide based on your request:

"solve/calculate/compute" → SymPy (exact symbolic)
"is X always true?" → Z3 (constraint proving)
"convert units" → Pint
"explain/what is" → Topic skill for context
"prove formally" → Redirect to /prove

Examples

Solve Equation

User: Solve x² - 5x + 6 = 0
Claude: uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/sympy_compute.py" solve "x**2 - 5*x + 6" --var x
Result: x = 2 or x = 3

Compute Eigenvalues

User: Find eigenvalues of [[2, 1], [1, 2]]
Claude: uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/sympy_compute.py" eigenvalues "[[2,1],[1,2]]"
Result: {1: 1, 3: 1}  (eigenvalue 1 with multiplicity 1, eigenvalue 3 with multiplicity 1)

Prove Inequality

User: Is x² + y² ≥ 2xy always true?
Claude: uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/z3_solve.py" prove "x**2 + y**2 >= 2*x*y"
Result: PROVED (equivalent to (x-y)² ≥ 0)

Convert Units

User: How many kilometers in 26.2 miles?
Claude: uv run python "$CLAUDE_PROJECT_DIR/.claude/scripts/cc_math/pint_compute.py" convert 26.2 miles kilometers
Result: 42.16 km

When to Use /prove Instead

Use /prove when you need:

  • Machine-verified formal proof (Lean 4)
  • Category theory proofs (functors, Yoneda, etc.)
  • Publication-quality verification
  • Abstract algebra proofs

/math is for computation. /prove is for verification.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Coordinate background agents through saved files, keeping lengthy work transcripts out of the main conversation. It defines how to pass results between agents, monitor progress, and verify completed work with tests.

中文简介正在准备中。当前显示英语简介。

  • Keeping long agent transcripts out of the main conversation
  • Passing research and plans between agents through files
  • Checking for stalled background agents
parcadei/Continuous-Claude-v339462026年1月27日 更新

Delegate implementation, file reading, and testing to separate agents, then bring concise summaries back to the main conversation. The rules explain when delegation helps and when a small edit is better handled directly.

中文简介正在准备中。当前显示英语简介。

  • Implementing a feature across multiple files
  • Completing a specific phase of an implementation plan
  • Delegating feature development and testing
parcadei/Continuous-Claude-v339462026年1月27日 更新

Organize implementation work across research, planning, validation, implementation, and review agents. Each stage passes files to the next, while implementation starts with failing tests and the main conversation coordinates the workflow.

中文简介正在准备中。当前显示英语简介。

  • Dividing implementation work among specialized agents
  • Checking a plan against research before implementation
  • Writing failing tests before implementing changes
parcadei/Continuous-Claude-v339462026年1月27日 更新

Connect Agentica SDK agents to Claude Code CLI through a proxy, an intermediary server. Use setup and debugging guidance to address file permissions, streamed responses, result formatting, and agents reporting success without performing the requested operations.

中文简介正在准备中。当前显示英语简介。

  • Connecting Agentica agents to Claude Code tools
  • Investigating file write and edit permission errors
  • Debugging streaming and REPL response formats
parcadei/Continuous-Claude-v339462026年1月27日 更新

Consult Agentica APIs when building workflows where multiple AI agents cooperate. This reference covers eleven coordination patterns, agent tracking, shared state, handoffs, and ways to combine results, with pointers to detailed API specifications.

中文简介正在准备中。当前显示英语简介。

  • Choose a coordination pattern for multiple agents
  • Check pattern constructors and methods
  • Implement custom coordination patterns
parcadei/Continuous-Claude-v339462026年1月27日 更新

Write clearer instructions for Agentica and REPL agents by specifying roles, file operations, and output formats. Includes templates for dividing research, coordinating specialists, reviewing solutions, and passing results between agents through files.

中文简介正在准备中。当前显示英语简介。

  • Clarifying instructions for reading and editing files
  • Dividing research among multiple agents
  • Passing findings and plans between agents
parcadei/Continuous-Claude-v339462026年1月27日 更新

查看 parcadei 的全部技能

报告此技能的问题