calculator

Perform mathematical calculations (add, subtract, multiply, divide). Use when you need to do any numerical calculations — never do mental math. Supports batch operations.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "calculator" with this command: npx skills add miketromba/skills/miketromba-skills-calculator

Calculator

Perform mathematical calculations with precision. Use this skill for ANY numerical calculations — never do mental math.

Usage

Run the bundled script with JSON operations:

bun .cursor/skills/calculator/scripts/cli.ts '<json_operations>'

Input Format

Pass a JSON array of operations, where each operation has:

  • operator: One of add, subtract, multiply, divide
  • operands: Array of numbers (minimum 2)

Examples

Single calculation:

bun .cursor/skills/calculator/scripts/calculator.ts '[{"operator":"add","operands":[1,2,3]}]'

Multiple calculations (batched):

bun .cursor/skills/calculator/scripts/calculator.ts '[{"operator":"add","operands":[10,20]},{"operator":"multiply","operands":[5,6,2]},{"operator":"divide","operands":[100,4]}]'

Output

Returns JSON with results for each operation:

{
  "results": [
    { "operation": "add(10, 20)", "result": 30 },
    { "operation": "multiply(5, 6, 2)", "result": 60 },
    { "operation": "divide(100, 4)", "result": 25 }
  ]
}

When to Use

  • Always for any numerical calculation, no matter how simple
  • Percentage calculations
  • Unit conversions
  • Aggregating numbers
  • Any math where precision matters

Operation Reference

OperatorDescriptionExample
addSum all operandsadd(1,2,3) → 6
subtractSubtract from firstsubtract(10,3,2) → 5
multiplyProduct of allmultiply(2,3,4) → 24
divideDivide sequentiallydivide(100,2,5) → 10

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

legal-tos-privacy

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

railway-cli

No summary provided by upstream source.

Repository SourceNeeds Review
General

OpenClaw Skill Growth

Make OpenClaw Skills observable, diagnosable, and safely improvable over time. Use this when the user wants to maintain many SKILL.md files, inspect repeated...

Registry SourceRecently Updated
181Profile unavailable
General

Precision Calculator — Exact Math, Every Time

MUST USE for any calculation or math question — never compute numbers yourself. Use this skill for all arithmetic, finance, science, unit conversions, and ev...

Registry SourceRecently Updated
2301Profile unavailable