---
name: calculator
description: A simple calculator that can add, subtract, multiply, and divide numbers. Use when the user needs to perform basic arithmetic operations.
license: MIT
metadata:
  author: skillLite
  version: "1.0"
---

# Calculator Skill

A simple calculator that performs basic arithmetic operations.

## Usage

Provide an operation and two numbers to get the result.

### Examples

- Add: `{"operation": "add", "a": 5, "b": 3}` → `8`
- Subtract: `{"operation": "subtract", "a": 10, "b": 4}` → `6`
- Multiply: `{"operation": "multiply", "a": 6, "b": 7}` → `42`
- Divide: `{"operation": "divide", "a": 20, "b": 4}` → `5`

## Runtime

```yaml
input_schema:
  type: object
  properties:
    operation:
      type: string
      description: "The operation to perform: add, subtract, multiply, divide"
      enum: [add, subtract, multiply, divide]
    a:
      type: number
      description: First operand
    b:
      type: number
      description: Second operand
  required: [operation, a, b]
```
