calculator

star 6

Skill for mathematical calculations

Kader-AI-hub By Kader-AI-hub schedule Updated 2/19/2026

name: calculator description: Skill for mathematical calculations

Calculator Skill

This skill provides instructions for performing mathematical calculations.

Supported Operations

  • Addition: +
  • Subtraction: -
  • Multiplication: *
  • Division: /
  • Exponentiation: **
  • Modulo: %

Usage

Execute the calculator script with an expression:

python examples/skills/calculator/scripts/calculate.py <expression>

Examples

python examples/skills/calculator/scripts/calculate.py "2 + 2"
# Output: 4

python examples/skills/calculator/scripts/calculate.py "10 * 5"
# Output: 50

python examples/skills/calculator/scripts/calculate.py "(2 + 3) * 4"
# Output: 20

Error Handling

  • Invalid expressions will show an error message
  • Division by zero will show "Error: division by zero"
  • Syntax errors will display a usage message
Install via CLI
npx skills add https://github.com/Kader-AI-hub/kader --skill calculator
Repository Details
star Stars 6
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator
Kader-AI-hub
Kader-AI-hub Explore all skills →