# Calculator

> Safely evaluates a mathematical expression

- Skill: `hyw208/calculator` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add hyw208/calculator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hyw208/calculator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: hyw208 (https://skillmd.com/u/hyw208)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/hyw208/calculator

---


# Instructions

Use this skill when the user asks to perform mathematical calculations or evaluate mathematical expressions.

## Command

Run: 
```bash
.github/skills/.venv/bin/python -m scripts.calculator --expression "EXPRESSION"`
```

Replace `EXPRESSION` with the mathematical expression to evaluate (e.g., "2+3*4").

## Output Format

The command returns JSON:
- Success: `{"status": "success", "result": VALUE}`
- Error: `{"status": "error", "message": "ERROR_MESSAGE"}`

Example: For expression "2+3*4", the result will be `{"status": "success", "result": 14}`


