calculator

star 11

Perform mathematical calculations, unit conversions, and solve math problems

9mtm By 9mtm schedule Updated 2/22/2026

name: calculator description: "Perform mathematical calculations, unit conversions, and solve math problems" metadata: agent-player: emoji: "๐Ÿงฎ" version: "1.0.0" author: "Agent Player Team" category: "utilities" tags: ["math", "calculator", "conversion"] triggers: - calculate - compute - math - convert - "how much is" - "what is" settings: - key: decimal_places type: number label: "Decimal Places" default: 2 validation: { min: 0, max: 10 } - key: show_steps type: boolean label: "Show Calculation Steps" default: false requires: libs: ["mathjs"] apis: ["exchangerate-api.com"]


Calculator Skill

Perform mathematical calculations, conversions, and solve math problems.

Usage

Ask math questions naturally:

Calculate 15% of 200
What is 25 * 4 + 10?
Convert 100 USD to EUR
Square root of 144
How much is 5 miles in kilometers?

Supported Operations

Basic Math

Operation Syntax Example
Addition a + b 2 + 3 โ†’ 5
Subtraction a - b 10 - 5 โ†’ 5
Multiplication a * b 4 * 6 โ†’ 24
Division a / b 20 / 4 โ†’ 5
Power a ^ b 2 ^ 8 โ†’ 256
Modulo a % b 17 % 5 โ†’ 2

Advanced Math

sqrt(144)      # Square root โ†’ 12
pow(2, 10)     # Power โ†’ 1024
log(100)       # Logarithm โ†’ 2
sin(45)        # Sine
cos(90)        # Cosine
tan(30)        # Tangent
pi             # 3.14159...
e              # 2.71828...

Percentages

15% of 200     # โ†’ 30
200 + 15%      # โ†’ 230
200 - 10%      # โ†’ 180

Unit Conversions

Length:

5 miles to km      # โ†’ 8.05 km
10 feet to meters  # โ†’ 3.05 m

Weight:

10 pounds to kg    # โ†’ 4.54 kg
100 grams to oz    # โ†’ 3.53 oz

Temperature:

100 fahrenheit to celsius  # โ†’ 37.78ยฐC
25 celsius to fahrenheit   # โ†’ 77ยฐF

Currency (live rates):

100 USD to EUR    # โ†’ ~92.50 EUR
50 GBP to JPY     # โ†’ ~9,500 JPY

Examples

User: "Calculate 15% of 200"

Response:

๐Ÿงฎ Calculation: 15% of 200

Result: 30

Breakdown:
200 ร— 0.15 = 30

User: "Convert 5 miles to kilometers"

Response:

๐Ÿ“ Unit Conversion

5 miles = 8.05 kilometers

Formula: 1 mile = 1.609344 km

Settings

Setting Type Default Description
decimal_places number 2 Precision (0-10 decimals)
show_steps boolean false Show calculation steps

Security

Uses mathjs library for safe expression evaluation. No eval() or code injection possible.

Install via CLI
npx skills add https://github.com/9mtm/Agent-Player --skill calculator
Repository Details
star Stars 11
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator