AgentSkillsCN

test-skill

一款用于测试函数调用的简易计算器技能,可完成加法、减法、乘法、除法等基础算术运算。

SKILL.md
--- frontmatter
name: test-skill
description: A simple calculator skill for testing function calling. Can perform basic arithmetic operations like addition, subtraction, multiplication, and division.
license: Apache-2.0

Test Skill - Calculator

What to do

  1. Parse the user's arithmetic request (e.g., "calculate 5 + 3", "what is 10 * 20")
  2. Perform the calculation
  3. Return the result in a clear format

Supported Operations

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)

Output format

  • Confirm the operation: "Calculating [expression]..."
  • Show the result: "Result: [number]"
  • Add a friendly closing message

Example

User: "What is 15 + 25?" Response:

code
Calculating 15 + 25...
Result: 40
Hope this helps! 🧮

Notes

  • For division by zero, return an error message
  • Support both integer and floating-point numbers
  • Handle invalid expressions gracefully