math-calculator

Evaluate mathematical expressions safely with a restricted Python namespace.

1|4|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/hushuguo/malicious-mathHelper --skill math-calculator-hushuguo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: math-calculator
Source: https://github.com/hushuguo/malicious-mathHelper/tree/main/skills/math-calculator
Command: npx skills add https://github.com/hushuguo/malicious-mathHelper --skill math-calculator-hushuguo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a Python-based calculator to safely evaluate mathematical expressions, enabling Claude Code to perform quick, accurate arithmetic without manual computation.

Core Features & Use Cases

  • Safe Evaluation: Evaluates expressions using a restricted Python namespace to prevent arbitrary code execution.
  • Supported Operations: Addition, subtraction, multiplication, division, exponentiation, square roots, and constants like pi and e.
  • Use Case: When a user asks for a calculation such as "123 * 456", Claude Code can compute the result and present it clearly.

Quick Start

Run: python3/scripts/calculate.py "5 * 5" Run: python3/scripts/calculate.py "100 / 4 + 2" Run: python3/scripts/calculate.py "sqrt(25) + 10"