calculator

star 0

Perform mathematical calculations and expressions. Use when: user needs to calculate numbers, percentages, or evaluate math expressions. Supports basic arithmetic, advanced functions, and variable storage.

education-01 By education-01 schedule Updated 3/5/2026

name: calculator description: "Perform mathematical calculations and expressions. Use when: user needs to calculate numbers, percentages, or evaluate math expressions. Supports basic arithmetic, advanced functions, and variable storage." metadata: { "openclaw": { "emoji": "๐Ÿงฎ" } }

Calculator Skill

Perform mathematical calculations with Python expressions.

When to Use

โœ… USE this skill when:

  • "Calculate 15% of 200"
  • "What's 2 + 3 * 4?"
  • "Compute sqrt(144)"
  • "Convert 100 USD to EUR"
  • Any math expression evaluation

When NOT to Use

โŒ DON'T use this skill when:

  • Complex data analysis โ†’ use pandas/numpy directly
  • Graphing/plotting โ†’ use matplotlib
  • Symbolic math โ†’ use Wolfram Alpha
  • Statistical analysis โ†’ use scipy

Commands

Basic Calculation

python3 -c "print(2 + 3 * 4)"
# Output: 14

Percentage

python3 -c "print(200 * 0.15)"
# Output: 30.0

Advanced Functions

# Square root
python3 -c "import math; print(math.sqrt(144))"

# Power
python3 -c "print(2 ** 10)"

# Trigonometry
python3 -c "import math; print(math.sin(math.pi/2))"

With Variables

python3 -c "
x = 10
y = 20
print(f'Sum: {x + y}')
print(f'Product: {x * y}')
"

Available Functions

  • abs(x) โ€” Absolute value
  • round(x, n) โ€” Round to n decimals
  • pow(x, y) โ€” x to the power of y
  • min(a, b, ...) โ€” Minimum value
  • max(a, b, ...) โ€” Maximum value
  • sum([...]) โ€” Sum of values

Math Module

python3 -c "import math; print(dir(math))"
  • math.sqrt(x) โ€” Square root
  • math.sin/cos/tan(x) โ€” Trigonometry
  • math.log(x), math.log10(x) โ€” Logarithms
  • math.floor(x), math.ceil(x) โ€” Rounding
  • math.pi, math.e โ€” Constants

Quick Responses

"Calculate 15% of 200"

python3 -c "print(f'15% of 200 = {200 * 0.15}')"

"What's 2^10?"

python3 -c "print(f'2^10 = {2 ** 10}')"

"Square root of 144"

python3 -c "import math; print(f'โˆš144 = {math.sqrt(144)}')"
Install via CLI
npx skills add https://github.com/education-01/skillhub --skill calculator
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator
education-01
education-01 Explore all skills →