Bc Calc
/install bc-calc
bc-calc
Use the Unix bc calculator to evaluate arbitrary arithmetic expressions. The skill accepts the expression as a command‑line argument or via standard input.
When This Skill Applies
This skill activates when the user's request involves:
- Basic or advanced arithmetic calculations (addition, subtraction, multiplication, division, modulus)
- Full
bcexpressions (includingscale,sqrt,pi, etc.) - Any math expression evaluation request
How It Works
- Parse the mathematical expression from the request or stdin.
- Pass the expression to
bcand capture the output. - Return the result, or the
bcerror message if the expression is invalid.
Usage Examples
# As a CLI command with a single expression
bc-calc "12+34*5"
# With piped input and scale
printf "scale=2; 1/3" | bc-calc
Installation
The skill can be installed with the ClawHub CLI:
openclaw install bc-calc
Or simply place the bc-calc directory under ~/.openclaw/workspace/skills.
Dependencies
node(>=12)bccommand‑line tool (usually pre‑installed on Linux/macOS)
Optional Flags
# Show help
bc-calc --help
The help flag displays usage instructions.
NOTE: The math‑library flag -l is now enabled by default, giving access to trigonometric and other advanced functions.
Available functions:
s(x): sine, in radians.c(x): cosine, in radians.a(x): arctangent, in radians.l(x): natural logarithm.e(x): e^x.j(n,x): Bessel function of integer order n for x.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bc-calc - 安装完成后,直接呼叫该 Skill 的名称或使用
/bc-calc触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Bc Calc 是什么?
This skill evaluates arithmetic expressions using the Unix `bc` calculator. It accepts full `bc` syntax (addition, subtraction, multiplication, division, mod... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 91 次。
如何安装 Bc Calc?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bc-calc」即可一键安装,无需额外配置。
Bc Calc 是免费的吗?
是的,Bc Calc 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Bc Calc 支持哪些平台?
Bc Calc 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Bc Calc?
由 Daniel Staal(@danstaal)开发并维护,当前版本 v1.0.0。