← 返回 Skills 市场
zrr000212-netizen

simple-calculator

作者 Huawei Cloud Developer · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
45
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install simple-calculator
功能描述
简易命令行计算器,支持加减乘除和幂运算。Use this skill when user needs to do math calculations.
使用说明 (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
安全使用建议
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install simple-calculator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /simple-calculator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug simple-calculator
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

simple-calculator 是什么?

简易命令行计算器,支持加减乘除和幂运算。Use this skill when user needs to do math calculations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。

如何安装 simple-calculator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install simple-calculator」即可一键安装,无需额外配置。

simple-calculator 是免费的吗?

是的,simple-calculator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

simple-calculator 支持哪些平台?

simple-calculator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 simple-calculator?

由 Huawei Cloud Developer(@zrr000212-netizen)开发并维护,当前版本 v1.0.3。

💬 留言讨论