← Back to Skills Marketplace
zrr000212-netizen

simple-calculator

by Huawei Cloud Developer · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
45
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install simple-calculator
Description
简易命令行计算器,支持加减乘除和幂运算。Use this skill when user needs to do math calculations.
README (SKILL.md)

Simple Calculator

概述

极简命令行计算器,支持基本四则运算和幂运算。

核心命令

python3 scripts/calc.py "3 + 2"
python3 scripts/calc.py "10 / 4"
python3 scripts/calc.py "2 ** 10"

支持运算

运算 符号 示例
+ 5 + 3 → 8
- 10 - 4 → 6
* 3 * 7 → 21
/ 10 / 3 → 3.3333
** 2 ** 8 → 256
取余 % 10 % 3 → 1

验证

python3 scripts/calc.py "1 + 1"
# 输出: 2
Usage Guidance
Safe to install for simple local calculations. Be aware it runs a local Python script and uses eval internally, so avoid feeding it extremely large expressions; a future version should preferably use an AST-based arithmetic evaluator.
Capability Assessment
Purpose & Capability
The stated purpose is simple command-line math, and the artifact contains only a short README-style skill file plus a Python calculator script.
Instruction Scope
Runtime instructions are limited to user-invoked calculator examples; there are no role changes, hidden directives, broad automation, or unrelated agent instructions.
Install Mechanism
The artifact has no package dependencies, install hooks, background workers, or registry-based dependency surface; it is just SKILL.md and scripts/calc.py.
Credentials
The script uses Python eval for arithmetic after a restrictive character allowlist and disabled builtins; this is proportionate for a toy calculator but safer AST-based evaluation would reduce residual risk from expensive expressions.
Persistence & Privilege
No persistence, privilege escalation, credential handling, profile/session access, file mutation, network access, or long-running behavior is present.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install simple-calculator
  3. After installation, invoke the skill by name or use /simple-calculator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
docs: 更新 simple-calculator 文档中的核心命令示例,将计算示例从 "2 + 2" 改为 "3 + 2"
v1.0.2
docs: 更新simple-calculator技能文档中的核心命令示例
v1.0.1
Release 1.0.1
v1.0.0
- Initial release of simple-calculator. - Supports addition, subtraction, multiplication, division, exponentiation, and modulo operations via command line. - Easy command-line usage: evaluate expressions by passing them as arguments. - Outputs calculation results directly to the terminal.
Metadata
Slug simple-calculator
Version 1.0.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is simple-calculator?

简易命令行计算器,支持加减乘除和幂运算。Use this skill when user needs to do math calculations. It is an AI Agent Skill for Claude Code / OpenClaw, with 45 downloads so far.

How do I install simple-calculator?

Run "/install simple-calculator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is simple-calculator free?

Yes, simple-calculator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does simple-calculator support?

simple-calculator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created simple-calculator?

It is built and maintained by Huawei Cloud Developer (@zrr000212-netizen); the current version is v1.0.3.

💬 Comments