返回 Skill 列表
extension
分类: 效率与办公无需 API Key

Calculator

当用户要求“计算”、“运算”、“做数学题”,或提及“加减乘除”等算术运算时使用此技能。

person作者: cexfreehubclawhub

Calculator Skill

A simple calculator skill that performs basic arithmetic operations.

When This Skill Applies

This skill activates when the user's request involves:

  • Basic arithmetic calculations (addition, subtraction, multiplication, division)
  • Math expressions evaluation
  • Number computation requests

Instructions

When this skill is activated:

  1. Parse the mathematical expression from the user's request
  2. Perform the calculation step by step
  3. Return the result clearly

Supported Operations

| Operation | Symbol | Example | Result | |-----------|--------|-------------|--------| | Addition | + | 1 + 1 | 2 | | Subtraction | - | 10 - 3 | 7 | | Multiplication | * | 4 * 5 | 20 | | Division | / | 20 / 4 | 5 |

Example

User: What is 1 + 1?

Steps:

  1. Parse expression: 1 + 1
  2. Perform addition: 1 + 1 = 2
  3. Return result: 2

Rules

  • Always show the calculation process
  • For division, check for division by zero and warn the user
  • Support chained operations (e.g., 1 + 2 * 3)
  • Follow standard mathematical order of operations (PEMDAS)
  • Return results with appropriate precision (avoid unnecessary decimal places)