Calculator
Evaluate math expressions and convert between units.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/calculator-nvidia/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Evaluate mathematical expressions and unit conversions. Handles arithmetic, percentages, exponents, and common unit conversions (temperature, distance, weight). No external dependencies.
What this skill does
Calculator
Evaluate math expressions and perform unit conversions from the command line.
Purpose
Provide a safe, sandboxed calculator for arithmetic expressions and common
unit conversions without relying on eval() or external services.
Agent Instructions
- Read this SKILL.md to understand capabilities.
- Run
scripts/calc.pywith the user's expression or conversion. - Return the computed result to the user.
Examples
Usage
# Arithmetic expressions
python scripts/calc.py "2 + 3 * 4"
python scripts/calc.py "(100 - 25) / 3"
python scripts/calc.py "2 ** 10"
# Percentage calculations
python scripts/calc.py "15% of 200"
# Unit conversions
python scripts/calc.py "100 celsius to fahrenheit"
python scripts/calc.py "5 miles to km"
python scripts/calc.py "10 kg to lbs"
Output
A single line with the result, e.g.:
Result: 14
For conversions:
100 celsius = 212.0 fahrenheit
Limitations
- No symbolic algebra (no variables, no equations).
- Only supports basic arithmetic operators:
+,-,*,/,**,%, parentheses. - Unit conversions are limited to: celsius/fahrenheit, miles/km, kg/lbs, meters/feet.
Troubleshooting
| Problem | Fix |
|---|---|
Invalid expression | Check for unsupported operators or variables |
Unknown conversion | Use supported units: celsius, fahrenheit, miles, km, kg, lbs, meters, feet |
Related skills
Multi-Agent Communication Protocol
alirezarezvani
Enable C-suite agents to query each other, coordinate analysis, and prevent communication loops.
Resume Interrupted Claude Work
daymade
Recover context from interrupted Claude sessions and continue work without replaying full history.
Solana Blockchain Query
raphaelmansuy
Query wallet balances, token portfolios, transactions, and NFTs on Solana with USD pricing.
InfiniSynapse Data Analysis
xuzhougeng
Run multi-turn AI analysis tasks with database and RAG context.