Agent skill
calculator
Simple calculator for basic arithmetic operations (addition, subtraction, multiplication, division). Use when performing calculations, converting units, or working with numbers.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/calculator-skill
SKILL.md
Calculator
Overview
Perform basic arithmetic calculations with step-by-step computation display.
Quick Start
Basic Operations
Addition:
result = 15 + 27
# Result: 42
Subtraction:
result = 100 - 42
# Result: 58
Multiplication:
result = 6 * 7
# Result: 42
Division:
result = 84 / 2
# Result: 42.0
Supported Operations
| Operation | Symbol | Example | Result |
|---|---|---|---|
| Addition | + | 10 + 5 | 15 |
| Subtraction | - | 10 - 5 | 5 |
| Multiplication | * | 10 * 5 | 50 |
| Division | / | 10 / 5 | 2.0 |
| Modulo | % | 10 % 3 | 1 |
| Exponent | ** | 2 ** 8 | 256 |
Complex Expressions
Calculate multi-step expressions:
# Order of operations (PEMDAS)
result = (10 + 5) * 2 ** 3 / 4
# Step 1: Parentheses: 10 + 5 = 15
# Step 2: Exponent: 2 ** 3 = 8
# Step 3: Multiplication: 15 * 8 = 120
# Step 4: Division: 120 / 4 = 30.0
# Result: 30.0
Unit Conversions
Temperature
# Celsius to Fahrenheit
celsius = 25
fahrenheit = (celsius * 9/5) + 32
# Result: 77.0°F
# Fahrenheit to Celsius
fahrenheit = 77
celsius = (fahrenheit - 32) * 5/9
# Result: 25.0°C
Length
# Meters to feet
meters = 10
feet = meters * 3.28084
# Result: 32.8084 feet
# Miles to kilometers
miles = 5
kilometers = miles * 1.60934
# Result: 8.0467 km
Tips
- Use parentheses to control order of operations
- Division by zero returns error
- Use
//for integer division - Use
%for remainder (modulo)
Version: 1.0 Last Updated: October 25, 2025 Example Type: Minimal skill (SKILL.md only)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?