Claude Code SymPy Skill for Exact Linear Equation Checks
Represent variables, domains, and equations in SymPy. Solve exactly and substitute the result back into the original expression.
中文Install in Claude Code
Use Claude Code with the complete pinned skill and a Python environment containing SymPy.
- Get the complete `cli-tool/components/skills/scientific/sympy` directory from the pinned GitHub checkout.
- Copy it under the target project's `.claude/skills/`. Confirm `.claude/skills/sympy/SKILL.md`, open Claude Code at the project root, and call `/sympy`.
Example task
Solve 3x + 2 = 0, keeping a fraction through the verification. Explain the substitution check.What to check
Expect x = -2/3. Substituting it into the left side simplifies to zero. A decimal approximation can be reported afterward.
Original SKILL.md on GitHub · Updated
Frequently asked question
Why keep fractions in the inputs?
Exact rationals support symbolic simplification and equality checks. Compute a decimal approximation from the exact answer when needed.