Token导航 LogoToken导航

Agent Skill · 开发

microscopy-scale-bar-adder(显微镜比例尺加法器)

microscopy-scale-bar-adder 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

microscopy-scale-bar-adder 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为权限未标注;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 9,479。

总安装 2,681周安装 114GitHub Stars 公开资料未说明下载 939核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:microscopy-scale-bar-adder(显微镜比例尺加法器)
来源仓库:https://github.com/aipoch-ai/microscopy-scale-bar-adder
安装命令:
openclaw skills install microscopy-scale-bar-adder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install microscopy-scale-bar-adder

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

microscopy-scale-bar-adder 用于在显微镜图像中添加准确的比例尺,适用于图像处理和出版级图像制作。它适合在 OpenClaw 中让 Agent 分析图片、整理视觉素材或辅助图像流程。

可通过 openclaw skills install microscopy-scale-bar-adder 安装使用。建议确认权限范围和文件读写操作,避免误处理敏感图像数据。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install microscopy-scale-bar-adder;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    权限没有明确标注,第一次使用时只给一个无关紧要的任务,观察它到底读了哪些文件和网络。

常见问题

6 条

microscopy-scale-bar-adder 怎么安装?

在终端执行 openclaw skills install microscopy-scale-bar-adder。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

microscopy-scale-bar-adder 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

microscopy-scale-bar-adder 需要什么权限?

权限级别没有明确标注。第一次使用时建议只给无关紧要的任务,观察它实际读写了哪些内容。

microscopy-scale-bar-adder 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

microscopy-scale-bar-adder 用的人多吗?

公开数据是累计安装 2,681 次,近一周安装 114 次,下载 939 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

microscopy-scale-bar-adder 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
microscopy-scale-bar-adder

显微镜比例尺加法器 · 本页

2,681—权限未标注MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
microscopy-scale-bar-adder
description
Add accurate, publication-ready scale bars to microscopy images given pixel-to-unit calibration data.
license
MIT
skill-author
AIPOCH

Microscopy Scale Bar Adder

Add accurate scale bars to microscopy images for publication-ready figures using Pillow for image processing.

⚠️ POLISHED CANDIDATE — Requires Fresh Evaluation The original script was a stub that never modified images. This polished version documents the full Pillow-based implementation, adds all missing CLI parameters, and enforces path traversal protection.

When to Use

  • Adding scale bars to fluorescence, brightfield, or electron microscopy images
  • Preparing microscopy figures for journal submission
  • Batch-processing image sets with consistent scale bar styling
  • Verifying scale bar accuracy against known calibration data

Workflow

  1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
  2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
  3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
  4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
  5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.

Usage

# Add a 50 µm scale bar to a TIFF image
python scripts/main.py --image image.tif --scale 50 --unit um

# Specify output path and bar position
python scripts/main.py --image image.tif --scale 10 --unit um --output annotated.tif --position bottomright

# Custom bar and label colors
python scripts/main.py --image image.tif --scale 100 --unit nm --bar-color white --label-color white --bar-thickness 4

Parameters

ParameterTypeRequiredDefaultDescription
--imagepathYes-Input image file path
--scalefloatYes-Scale bar length in physical units
--unitstrNoumUnit: um, nm, mm
--pixels-per-unitfloatNofrom TIFF metadataCalibration override (pixels per unit)
--outputpathNo<input>_scalebar.<ext>Output file path
--positionstrNobottomrightBar position: bottomright, bottomleft, topright, topleft
--bar-colorstrNowhiteScale bar fill color
--label-colorstrNowhiteLabel text color
--bar-thicknessintNo3Bar height in pixels

Implementation Notes (for script developer)

The script must implement using PIL.Image, PIL.ImageDraw, PIL.ImageFont:

  1. Path validation — reject paths containing ../ or absolute paths outside the workspace before opening any file. Print Error: Path traversal detected: {path} to stderr and exit with code 1.
  2. Image open — PIL.Image.open(args.image). Raise FileNotFoundError if missing.
  3. Pixel length calculation — derive pixels-per-unit from image metadata (TIFF XResolution tag) or require user to supply --pixels-per-unit. Scale bar pixel length = scale * pixels_per_unit.
  4. Draw scale bar — use PIL.ImageDraw.Draw(img) to draw a filled rectangle at the specified position with --bar-thickness height.
  5. Draw label — use PIL.ImageFont to render "{scale} {unit}" above or below the bar.
  6. Save output — img.save(output_path). Print the output path to stdout.

Features

  • Automatic scale bar pixel length calculation from calibration metadata or user-supplied --pixels-per-unit
  • Support for common microscopy formats: TIFF, PNG, JPG, BMP
  • Configurable bar size, color, and label style (--bar-color, --label-color, --bar-thickness)
  • Configurable position: bottomright, bottomleft, topright, topleft
  • Preserves original image resolution and metadata
  • Path traversal protection (rejects ../ paths and absolute paths outside workspace)

Quick Check

python -m py_compile scripts/main.py
python scripts/main.py --help

Input Validation

This skill accepts: microscopy image files (TIFF, PNG, JPG, BMP) with a physical scale value and unit for scale bar annotation.

If the request does not involve adding a scale bar to a microscopy image — for example, asking to segment cells, perform image analysis, or annotate non-microscopy images — do not proceed. Instead respond:

"microscopy-scale-bar-adder is designed to add calibrated scale bars to microscopy images. Your request appears to be outside this scope. Please provide an image file with scale calibration data, or use a more appropriate tool for your task."

Error Handling

  • If --image or --scale is missing, state exactly which fields are missing and request only those.
  • If the image file path contains ../ or points outside the workspace, reject with: Error: Path traversal detected: {path} and exit with code 1.
  • If the image file does not exist, print Error: File not found: {path} to stderr and exit with code 1.
  • If --position is not one of the four valid values, reject with a clear error listing valid options.
  • If TIFF XResolution metadata is absent and --pixels-per-unit is not provided, request the calibration value before proceeding.
  • If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
  • If scripts/main.py fails, report the failure point and summarize what can still be completed.
  • Do not fabricate scale values or calibration data.

Fallback Template

When execution fails or inputs are incomplete, respond with this structure:

FALLBACK REPORT
───────────────────────────────────────
Objective      : [restate the goal]
Blocked by     : [exact missing input or error]
Partial result : [what can be completed without the missing input]
Next step      : [minimum action needed to unblock]
───────────────────────────────────────

Response Template

  1. Objective
  2. Inputs Received
  3. Assumptions
  4. Workflow
  5. Deliverable
  6. Risks and Limits
  7. Next Checks

Prerequisites

Requires Pillow: pip install Pillow

平台分布

OpenClaw

97.57%
按下载量换算916

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

权限未标注

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills