mcpbeat Sign in

Calculator Agent Skill

Evaluate mathematical expressions and unit conversions. Handles arithmetic, percentages, exponents, and common unit conversions (temperature, distance, weight). No external dependencies.

2k tokens
context cost
the whole folder, loaded on every use
3
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
162
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/NVIDIA/SkillEvaluator --skill calculator

What comes with it

4 557 bytes besides the instruction
evals/evals.json
scripts/calc.py

The instruction itself

8 sections, as written by the author

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.py with 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 |

How to use it

Copy the folder

Take nvidia/calculator from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.