← Back to Skills Marketplace
92
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install microscopy-scale-bar-adder
Description
Add accurate, publication-ready scale bars to microscopy images given pixel-to-unit calibration data.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install microscopy-scale-bar-adder - After installation, invoke the skill by name or use
/microscopy-scale-bar-adder - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Microscopy Scale Bar Adder?
Add accurate, publication-ready scale bars to microscopy images given pixel-to-unit calibration data. It is an AI Agent Skill for Claude Code / OpenClaw, with 92 downloads so far.
How do I install Microscopy Scale Bar Adder?
Run "/install microscopy-scale-bar-adder" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Microscopy Scale Bar Adder free?
Yes, Microscopy Scale Bar Adder is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Microscopy Scale Bar Adder support?
Microscopy Scale Bar Adder is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Microscopy Scale Bar Adder?
It is built and maintained by AIpoch (@aipoch-ai); the current version is v1.0.0.
More Skills