Calculator
Skill khshanovskyi/custom-agent-skills/api_demo/_skills/calculator
Project to demonstrate custom implementation of agent skills
npx -y skills add khshanovskyi/custom-agent-skills --skill calculatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Performs precise mathematical calculations: arithmetic, exponentiation, square roots, trigonometry, floor division, and modulo. Use when the user asks to calculate, compute, evaluate, or solve any numeric expression or math problem.
SKILL.md
0.9 KB, as published. Nobody here has run it
Calculator (With Script)
Quick Start
python /skills/calculator/scripts/calculate.java "<expression>"
Supported Operations
- Arithmetic:
+,-,*,/ - Power:
**or^(both accepted) - Square root:
sqrt(x) - Floor division:
//, modulo:% - Trig:
sin(x),cos(x),tan(x) - Constants:
pi,e - Grouping:
(2 + 3) * 4
Workflow
- Parse the expression from the user's question
- Run:
python /skills/calculator/scripts/calculate.py "<expression>" - Return the script output as-is
- On error (division by zero, bad syntax), explain what went wrong clearly