AGENT SKILL
calculator
Evaluate math expressions, unit conversions, and calculations. Supports arithmetic, trigonometry, logarithms, and more.
- License 许可
- Apache-2.0
- 所属仓库
- riley1802/HUSK
- 最近更新
- 2026-04-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- calculator
- description
- Evaluate math expressions, unit conversions, and calculations. Supports arithmetic, trigonometry, logarithms, and more.
02 资源文件 2
- 脚本scripts/index.html248 B
- 脚本scripts/index.js2.7 KB
03 SKILL.md 正文
Calculator
This skill evaluates mathematical expressions and returns the result.
Examples
- "What is 15% of 230?"
- "Calculate the square root of 144"
- "Convert 72 fahrenheit to celsius"
- "What is sin(45 degrees)?"
- "2^10 + 3 * 7"
Instructions
Call the run_js tool with the following exact parameters:
- script name:
index.html - data: A JSON string with the following field
- expression: the math expression to evaluate (e.g., "sqrt(144)", "15/100 * 230", "(72-32) * 5/9")
Supported operations:
- Basic: +, -, *, /, %, ** (power)
- Functions: sqrt, abs, ceil, floor, round, min, max
- Trig: sin, cos, tan, asin, acos, atan (input in radians)
- Logarithms: log (natural), log10, log2
- Constants: PI, E
- Conversion helpers: pass the full expression like "(72-32)*5/9" for Fahrenheit to Celsius
04 同仓库更多 Skills
virtual-piano
Show a virtual piano to play music
★ 0
restaurant-roulette
Show a roulette wheel to allow user to randomly select a restaurant based on location and cuisine.
★ 0
mood-music
A skill to suggest or play music based on the user's mood, including analyzing images or audio, by querying available genres and generating music via the Loudly API.
★ 0
text-spinner
Spin the given text on my head.
★ 0
send-email
Send an email.
★ 0
query-wikipedia
Query summary from Wikipedia for a given topic.
★ 0