← Back to Skills Marketplace
wushengbing

Calculator

by wushengbing · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
257
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install wentianxe-calculator
Description
Perform mathematical calculations and unit conversions. Use when the user needs to calculate expressions, convert units (length, mass, temperature, volume, a...
Usage Guidance
This skill is coherent with its description, but the bundled Python evaluator uses compile()/eval with only a name whitelist — that protection is insufficient against certain sandbox-escape expressions (attribute/constructor chains can execute arbitrary code without introducing new names). If you plan to install or run this skill, consider: 1) Only evaluate expressions you trust (do not accept untrusted input). 2) Run the skill in a restricted environment (container, VM) if it will process user-provided expressions. 3) Prefer a patched version that avoids eval (use a safe parser/evaluator like a restricted AST evaluator, asteval, sympy.parsing, or explicit AST whitelisting of node types). 4) If you want the agent to never run this autonomously, disable autonomous invocation for the skill (set disable-model-invocation) or avoid granting it automatic invocation. If you want, I can suggest concrete safe replacements/patterns for expression evaluation or a minimal hardening patch for this script.
Capability Analysis
Type: OpenClaw Skill Name: wentianxe-calculator Version: 1.0.0 The skill provides mathematical calculation and unit conversion functionality but uses the high-risk `eval()` function in `scripts/calculator.py` to process user-supplied expressions. Although the script attempts to sandbox the execution by validating `code.co_names` against a whitelist of allowed math functions and constants and by restricting `__builtins__`, `eval()` is a known vector for Remote Code Execution (RCE) vulnerabilities. No evidence of intentional malice, data exfiltration, or harmful prompt injection was found in `SKILL.md` or the source code.
Capability Assessment
Purpose & Capability
Name, description, SKILL.md usage, and the provided scripts/calculator.py are coherent: the code implements expression evaluation and unit conversions described by the skill.
Instruction Scope
SKILL.md instructs the agent to run scripts/calculator.py with user-supplied expressions. The script evaluates expressions via compile() + eval() with a restricted names dict, but that sandboxing is incomplete: attribute- and object-based sandbox escapes (which do not introduce new names) can be used to execute arbitrary Python code. The instructions therefore enable execution of potentially unsafe input on the host where the skill runs.
Install Mechanism
No install spec; this is instruction-only plus a bundled Python script. Nothing is downloaded or installed automatically, which minimizes install-time risk.
Credentials
The skill requests no environment variables, credentials, or config paths. Those requirements are proportionate to a local calculator utility.
Persistence & Privilege
always is false, no elevated or persistent installation behavior is requested. The skill does not modify other skills or global agent config.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install wentianxe-calculator
  3. After installation, invoke the skill by name or use /wentianxe-calculator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Basic calculator with arithmetic and unit conversions
Metadata
Slug wentianxe-calculator
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Calculator?

Perform mathematical calculations and unit conversions. Use when the user needs to calculate expressions, convert units (length, mass, temperature, volume, a... It is an AI Agent Skill for Claude Code / OpenClaw, with 257 downloads so far.

How do I install Calculator?

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

Is Calculator free?

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

Which platforms does Calculator support?

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

Who created Calculator?

It is built and maintained by wushengbing (@wushengbing); the current version is v1.0.0.

💬 Comments