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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install bc-calc - After installation, invoke the skill by name or use
/bc-calc - Provide required inputs per the skill's parameter spec and get structured output
What is Bc Calc?
This skill evaluates arithmetic expressions using the Unix `bc` calculator. It accepts full `bc` syntax (addition, subtraction, multiplication, division, mod... It is an AI Agent Skill for Claude Code / OpenClaw, with 91 downloads so far.
How do I install Bc Calc?
Run "/install bc-calc" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Bc Calc free?
Yes, Bc Calc is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Bc Calc support?
Bc Calc is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Bc Calc?
It is built and maintained by Daniel Staal (@danstaal); the current version is v1.0.0.