← 返回 Skills 市场
aipoch-ai

Microscopy Scale Bar Adder

作者 AIpoch · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
92
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install microscopy-scale-bar-adder
功能描述
Add accurate, publication-ready scale bars to microscopy images given pixel-to-unit calibration data.
安全使用建议
This skill appears to implement the advertised functionality (adding calibrated scale bars) and does not request credentials or external installs, but there are important inconsistencies you should address before using it on real data: - CLI mismatches: SKILL.md uses flags like --image, --scale, --unit and position tokens without hyphens (e.g., 'bottomright'), while the script expects --input, --scale-length, --scale-unit and position values like 'bottom-right'. Update the docs or script so they match. - Path restriction is incomplete: the script's path traversal check only rejects '../' or leading '..'. It does not prevent absolute paths. If you want to restrict files to a workspace, require resolving to an absolute path and verify it is within an explicit workspace root (use os.path.abspath and compare prefixes). Until fixed, avoid passing absolute paths or run the script in a sandbox with only images you trust. - Metadata claim: SKILL.md promises to preserve original metadata, but the script converts images to RGBA and then may convert to RGB for JPEG without explicitly preserving EXIF/TIFF tags. If metadata preservation matters, test and patch to copy metadata when saving. - Font path portability: the script attempts to load /System/Library/Fonts/Helvetica.ttc; this will fail on non-macOS systems (it falls back to a default font, which may affect label appearance). Consider bundling or specifying a portable font path. Recommendations before installing/using: - Run the script in a restricted/sandboxed environment first with sample images. - Fix or reconcile the SKILL.md and the script so parameter names, position tokens, and error messages match. - Strengthen path validation to enforce that resolved absolute paths lie inside an intended workspace directory, and explicitly reject other absolute paths. - If you cannot modify the skill, only run it with controlled input files and do not pass absolute paths. Given these mismatches and the incomplete path protection, treat the skill as suspicious (likely sloppy/buggy rather than malicious). Patching the items above would move it toward benign/coherent.
功能分析
Type: OpenClaw Skill Name: microscopy-scale-bar-adder Version: 1.0.0 The skill provides legitimate microscopy image processing functionality but contains a path traversal vulnerability in `scripts/main.py`. Although `SKILL.md` and the script's error messages claim to enforce path traversal protection and block absolute paths, the `check_path_traversal` function only filters for '..' sequences. This implementation flaw allows the script to access files via absolute paths, contradicting its stated security policy and potentially allowing unauthorized file access if the agent is not properly sandboxed.
能力评估
Purpose & Capability
Name/description (add calibrated scale bars) match the included script's purpose. No unrelated credentials, binaries, or installs are requested. Minor note: SKILL.md examples and parameter names differ from the script's actual CLI flags, which will confuse users or automation that relies on the documentation.
Instruction Scope
SKILL.md instructs the agent to validate paths and only operate within the workspace and claims to reject absolute/outside paths. The script's check_path_traversal only looks for '../' or a leading '..' and does not block absolute paths (e.g., '/etc/passwd' on Unix or 'C:\...') or perform an allowlist based on a workspace root. SKILL.md also claims to preserve image metadata and supports parameter names like --image/--scale/--unit and position tokens like 'bottomright', whereas the script uses --input/--scale-length/--scale-unit and position values with hyphens ('bottom-right'). These mismatches mean following the SKILL.md could fail or cause unintended file access.
Install Mechanism
No install spec and no network downloads; only a bundled Python script using Pillow. This is low-risk from an installation perspective.
Credentials
No environment variables, credentials, or config paths are requested. The script reads only the provided image file and writes an output file — nothing else is accessed.
Persistence & Privilege
Skill is not always-enabled and does not request elevated or persistent privileges. It does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install microscopy-scale-bar-adder
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /microscopy-scale-bar-adder 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial production release — now fully functional and ready for evaluation. - Implements adding accurate, publication-quality scale bars to microscopy images using Pillow. - Supports command-line interface with parameters for calibration, appearance, and output control. - Enforces path traversal protection and robust error handling. - Works with TIFF, PNG, JPG, and BMP images, extracting calibration from metadata or user input. - Fallback and validation behaviors ensure clarity for unsupported or incomplete tasks.
元数据
Slug microscopy-scale-bar-adder
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Microscopy Scale Bar Adder 是什么?

Add accurate, publication-ready scale bars to microscopy images given pixel-to-unit calibration data. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 92 次。

如何安装 Microscopy Scale Bar Adder?

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

Microscopy Scale Bar Adder 是免费的吗?

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

Microscopy Scale Bar Adder 支持哪些平台?

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

谁开发了 Microscopy Scale Bar Adder?

由 AIpoch(@aipoch-ai)开发并维护,当前版本 v1.0.0。

💬 留言讨论