Math Utils Native
Performs precise math calculations by executing native OS CLI tools like bc, python3, or PowerShell without relying on AI prediction.
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 178 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
OpenClaw
Suspicious
high confidencePurpose & Capability
Name/description match the implementation: it executes local CLI tools (bc, python3, PowerShell) to compute expressions. No unrelated credentials, binaries, or installs are requested.
Instruction Scope
SKILL.md explicitly instructs executing local CLI commands to evaluate expressions. The shipped main.js directly interpolates the supplied expression into shell commands (execSync with a single command string) without validation or sanitization, creating a command-injection risk. The instructions do not mention input validation, sandboxing, or safety constraints.
Install Mechanism
No install spec (instruction-only + small code file). Nothing is downloaded or installed by the skill, so there is no supply-chain install risk here.
Credentials
The skill requests no environment variables, credentials, or config paths — appropriate and minimal for the stated purpose.
Persistence & Privilege
always is false and the skill does not request any special persistent or cross-skill privileges. It runs on-demand and does not modify other skills or system-wide settings.
What to consider before installing
This skill evaluates math expressions by building shell/PowerShell commands from the input and running them with execSync. That means a malicious or malformed expression can inject arbitrary shell commands on the host (e.g., expressions containing ;, ``, $(), backticks, quotes, or other metacharacters). If you plan to install or run this skill, only do so on an isolated, non-production host or container. Prefer safer alternatives: use a dedicated math parser library (e.g., decimal.js, mathjs) or evaluate expressions in a sandboxed process; if you must keep the current approach, apply strict input validation/whitelisting (allow only digits, whitespace, parentheses, and a limited set of operators) and avoid passing user input into a shell string—use execFile/spawn with arguments or a library that evaluates expressions without invoking a shell. If you need help hardening this skill, ask for specific code changes (e.g., a sanitized evaluator or replacement with a trusted math library).main.js:20
Shell command execution detected (child_process).
Patterns worth reviewing
These patterns may indicate risky behavior. Check the VirusTotal and OpenClaw results above for context-aware analysis before installing.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.1
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
math-utils (Native CLI Edition)
Description
这是一个基于本地操作系统 CLI 工具实现的计算技能。它不依赖大语言模型的预测能力,而是通过调用系统原生的计算器(如 Linux 下的 bc 或 python3)来确保计算的 100% 准确性。
Implementation Logic
- OS Detection: 自动识别 Linux, macOS 或 Windows 操作系统。
- Native Tool Selection:
- Linux/macOS: 优先使用
bc(Arbitrary precision calculator),备选python3。 - Windows: 使用
PowerShell。
- Linux/macOS: 优先使用
- Execution: 生成对应的 CLI 命令并执行。
- Validation: 返回经过系统内核计算的精确结果。
Usage
直接提供数学表达式,技能将通过服务器本地环境完成计算。
Functions
calculate(expression): 输入数学字符串(如 "123.45 * (67 + 8.9)"),返回精确数值。
Files
2 totalSelect a file
Select a file to preview.
Comments
Loading comments…
