AugmentClaude

Calculator

Evaluate math expressions and convert between units.

Installation

  1. 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 run claude in any terminal to verify.

    One-time setup
    npm i -g @anthropic-ai/claude-code

    Already have it? Skip ahead.

  2. 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
  3. Restart Claude Code.

    Quit and reopen Claude Code (or any other agent that loads from ~/.claude/skills/). New skills are picked up on startup.

  4. 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

  1. Read this SKILL.md to understand capabilities.
  2. Run scripts/calc.py with the user's expression or conversion.
  3. 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

ProblemFix
Invalid expressionCheck for unsupported operators or variables
Unknown conversionUse supported units: celsius, fahrenheit, miles, km, kg, lbs, meters, feet

Related skills