← 返回 Skills 市场
ckchzh

Calctool

作者 BytesAgain2 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
310
总下载
0
收藏
1
当前安装
8
版本数
在 OpenClaw 中安装
/install calctool
功能描述
Perform basic, scientific, and financial calculations from the terminal. Use when computing interest, converting units, or solving quick math.
使用说明 (SKILL.md)

CalcTool

Utility toolkit — run, check, convert, analyze, generate, preview, batch, compare, and manage data entries. Each command logs input with timestamps for full traceability and review.

Commands

Command Description
calctool run \x3Cinput> Log a run entry (no args = view recent runs)
calctool check \x3Cinput> Log a check entry (no args = view recent checks)
calctool convert \x3Cinput> Log a convert entry (no args = view recent converts)
calctool analyze \x3Cinput> Log an analyze entry (no args = view recent analyses)
calctool generate \x3Cinput> Log a generate entry (no args = view recent generates)
calctool preview \x3Cinput> Log a preview entry (no args = view recent previews)
calctool batch \x3Cinput> Log a batch entry (no args = view recent batches)
calctool compare \x3Cinput> Log a compare entry (no args = view recent compares)
calctool export \x3Cinput> Log an export entry (no args = view recent exports)
calctool config \x3Cinput> Log a config entry (no args = view recent configs)
calctool status \x3Cinput> Log a status entry (no args = view recent statuses)
calctool report \x3Cinput> Log a report entry (no args = view recent reports)
calctool stats Summary statistics — entry counts per category, total, data size
calctool search \x3Cterm> Search across all log entries
calctool recent Show last 20 history entries
calctool help Show usage info
calctool version Show version string

Note: The export and status commands in the case dispatch also have utility variants (_export \x3Cfmt> and _status) that provide structured export (json/csv/txt) and health check output respectively. However, the primary case match routes to the logging version.

Data Storage

All data is stored locally in ~/.local/share/calctool/. Each command writes to its own .log file (e.g., run.log, check.log, analyze.log). A unified history.log records every action with timestamps. No external services or databases required.

Log format: YYYY-MM-DD HH:MM|\x3Cvalue>

Export formats: JSON, CSV, or plain text (via the _export helper function).

Requirements

  • bash (version 4+ recommended)
  • Standard POSIX utilities: date, wc, du, grep, tail, head, cat
  • No external dependencies, no network access needed
  • Works on Linux, macOS, and WSL

When to Use

  1. Logging calculation results — Record computations, conversions, or analysis results with run, convert, or analyze for future reference
  2. Batch processing and comparison — Log batch operations with batch and side-by-side comparisons with compare
  3. Generating and previewing outputs — Use generate to log generated results and preview to log draft outputs before finalizing
  4. Configuration and status tracking — Record configuration changes with config and system states with status for audit trails
  5. Reporting and data export — Create report entries for periodic summaries and use stats or search to review all logged data

Examples

# Log a calculation run
calctool run "2 * (3 + 4) / 5 = 2.8"

# Log a unit conversion
calctool convert "100 USD to CNY = 725.30"

# Log an analysis result
calctool analyze "Dataset A: mean=45.2, std=12.1, n=500"

# Compare two results
calctool compare "Plan A: $12,000/yr vs Plan B: $10,800/yr — B saves 10%"

# Generate a report entry
calctool report "Q1 2026 summary: 142 entries, 98% accuracy"

# Search for specific entries
calctool search "USD"

# View summary statistics
calctool stats

# View recent activity
calctool recent

# Check health status
calctool status

How It Works

CalcTool stores all data locally in ~/.local/share/calctool/. Each command logs activity with timestamps for full traceability. Use stats to see a summary of entries per category with total counts and data size. Use search to find specific entries across all logs, recent to view the latest activity, or the built-in export helper to back up your data in JSON, CSV, or plain text format.


Powered by BytesAgain | bytesagain.com | [email protected]

安全使用建议
This skill appears to do what it says: local logging and simple exports with no network or credential access. Before installing/running: 1) Inspect the script (scripts/script.sh) yourself — it will write all provided inputs to ~/.local/share/calctool. 2) Avoid logging secrets (passwords, API keys, private data) because entries are stored in plaintext and included in exports. 3) Exports (JSON) do not escape values reliably — review exported files before sharing. 4) Consider setting directory permissions (chmod 700 ~/.local/share/calctool) if you want to restrict access. If you need stronger guarantees (e.g., encryption, sanitized exports, or stricter input validation), request or implement those changes before using the tool for sensitive data.
功能分析
Type: OpenClaw Skill Name: calctool Version: 2.0.1 The CalcTool skill is a local logging utility that records user-provided strings (intended to be calculation results) into categorized log files within ~/.local/share/calctool/. While the documentation's claim of 'performing' calculations is slightly misleading—as the tool merely logs inputs provided by the user or AI rather than executing mathematical logic—the implementation is functionally safe. The script (scripts/script.sh) contains no network activity, no data exfiltration, and no high-risk execution patterns. There are minor logical flaws, such as unreachable code blocks for the export and status functions due to shadowed case statements, but no evidence of malicious intent or exploitable vulnerabilities was found.
能力评估
Purpose & Capability
Name/description (calculator, converters, financial math) align with the provided script and SKILL.md: commands log user inputs and provide simple stats/export/search functionality. No unexpected services or credentials are requested.
Instruction Scope
Instructions and the script limit actions to local logging, search, export, and health/status operations under $HOME/.local/share/calctool. Note: the tool persistently logs whatever user input is given (including potentially sensitive data) and the export/json writer does not escape values, which can produce malformed JSON or embed unescaped data.
Install Mechanism
No install spec is provided and the skill is instruction-only with a single shell script. Nothing is downloaded or installed by the skill itself.
Credentials
No environment variables, credentials, or external config paths are required. The script only uses $HOME and standard POSIX utilities listed in SKILL.md.
Persistence & Privilege
always:false and user-invocable. The script writes only to its own data directory under the user's home and does not modify other skills or system-wide configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install calctool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /calctool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.5
retry-fix-token
v1.0.4
old template -> domain-specific v2.0.0
v1.0.3
Quality upgrade
v1.0.2
Quality upgrade: custom functionality
v1.0.1
De-template, unique content, script cleanup
v1.0.0
Initial release
元数据
Slug calctool
版本 2.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 8
常见问题

Calctool 是什么?

Perform basic, scientific, and financial calculations from the terminal. Use when computing interest, converting units, or solving quick math. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 310 次。

如何安装 Calctool?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install calctool」即可一键安装,无需额外配置。

Calctool 是免费的吗?

是的,Calctool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Calctool 支持哪些平台?

Calctool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Calctool?

由 BytesAgain2(@ckchzh)开发并维护,当前版本 v2.0.1。

💬 留言讨论