Install
openclaw skills install @danstaal/bc-calcThis skill evaluates arithmetic expressions using the Unix bc calculator.
It accepts full bc syntax (addition, subtraction, multiplication, division, modulus, scale, sqrt, and constants like pi).
Use it when the user asks to "calculate", "compute", "do math", or simply poses a question such as "what is 1+1".
The skill provides precise, arbitrary‑precision calculation.
openclaw skills install @danstaal/bc-calcUse the Unix bc calculator to evaluate arbitrary arithmetic expressions. The skill accepts the expression as a command‑line argument or via standard input.
This skill activates when the user's request involves:
bc expressions (including scale, sqrt, pi, etc.)bc and capture the output.bc error message if the expression is invalid.# 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
The skill can be installed with the ClawHub CLI:
openclaw install bc-calc
Or simply place the bc-calc directory under ~/.openclaw/workspace/skills.
node (>=12)bc command‑line tool (usually pre‑installed on Linux/macOS)# 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.