pylabrobot
它能做什么
这个工具可以帮助你使用 PyLabRobot 库创建并检查实验室自动化方案。它能模拟实验室机器人如何处理液体以及与设备的交互,确保整个流程安全可靠。
适用场景
- ✓规划需要机器人精确移液的实验时。
- ✓在实际运行前,模拟并验证实验室自动化方案是否可行。
- ✓当你需要了解如何使用 PyLabRobot 库的功能来控制实验室设备时。
技能链接
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pylabrobot/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“使用模拟机器人,创建一个实验室自动化方案,把 100 微升液体从试管转移到板的一个孔中。”
每周 5 个新技能,1 分钟读完。
工作原理
该工具借助 PyLabRobot 库定义设备、容器(如试管和板)以及要执行的操作。它可以在虚拟环境中模拟这些操作,也可以为真实机器人生成详细指令,并始终把操作人员的安全放在首位。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
PyLabRobot
Use PyLabRobot's hardware-agnostic frontends, resource tree, trackers, and device-specific backends to develop laboratory automation. Default to local manifest validation, bookkeeping, and the software-only chatterbox backend.
Verified snapshot
- PyPI stable:
PyLabRobot==0.2.2, released 2026-07-30. - Upstream requirement: Python >=3.9; runtime checks here used Python 3.13.
- Hosted
/stable/pages mix 0.2.1 API pages with development documentation. GitHub has nov0.2.2tag and its changelog has no 0.2.2 section. Use the released wheel/source distribution for the tested contract, not the URL label. - Released liquid-handler backends include
STARBackend,VantageBackend,EVOBackend,OpentronsOT2Backend, and the software-onlyLiquidHandlerChatterboxBackend. - MicroSpin and
Plate.stacking_z_heightare present in 0.2.2, despite being listed underUnreleasedin the current changelog. Newer development APIs, including thetrack=Hamilton deck keyword, are not this release. - See the release and transport review for source hashes, tested behavior, and the known OT-2 cancellation mismatch.
Non-negotiable hardware boundary
Never connect to, initialize, home, move, heat, shake, spin, pump, open/close, or otherwise command physical equipment automatically. Do not turn a simulation plan into a live backend merely by changing an environment variable, config value, or import.
Before any separately authorized live run, require a trained human to:
- Explicitly confirm the exact backend, device identity, firmware, transport, deck, and protocol revision.
- Reconcile the physical deck against the resource tree, including carriers, adapters, lids, plates, tip racks, waste, labware orientation, barcodes, and every occupied coordinate.
- Verify calibration, teaching, motion envelopes, collision risks, gripper or channel clearances, and all aspiration/dispense coordinates.
- Review source identity and actual fill volume, dead volume, destination capacity, tip type/capacity/filter compatibility, channel mapping, units, heights, rates, liquid class, blowout/mixing, and contamination boundaries.
- Confirm guards, doors, waste capacity, containment, emergency stop readiness, PPE, biosafety/chemical controls, and a safe abort/recovery procedure.
- Approve a slow dry run or nonhazardous commissioning run when anything is new or changed.
Tracker state is bookkeeping, not sensing. It cannot prove that liquid or a tip is physically present. After a backend error, tracker rollback describes software state; it does not reverse a physical aspiration, dispense, or tip movement that partly completed. Preserve the error/channel details and have the operator reconcile tips and source/destination volumes before resuming. Do not blindly retry the failed operation from the pre-error plan. The 0.2.2 liquid-handler implementation commits or rolls back trackers according to reported operation success. The Visualizer renders resource/tracker events; it does not model physics. Chatterbox prints planned operations; it does not prove calibration, reachability, collision freedom, liquid behavior, or device state.
Required intake
Do not guess any of these:
- Exact device model, installed options, firmware, computer/OS, and transport.
- Stable PyLabRobot version and required extras.
- Deck/deck origin, carriers, adapters, resource definitions, dimensions, coordinates, orientations, and motion clearances.
- Plate/tube/reservoir capacities and dead volumes; initial physical volumes.
- Tip model, filter, fitting, capacity, rack state, channel count, and channel mapping.
- Transfer units (
uL,mm,uL/s,s), heights, rates, mixing, air gaps, blowout, liquid properties, and validated vendor liquid class. - Contamination policy, controls, waste handling, operator interventions, acceptance criteria, and recovery procedure.
If information is missing, produce an assumptions/blockers list and an offline draft only.
Reproducible install
For offline API inspection and chatterbox simulation:
uv venv --python 3.13 .venv-pylabrobot
uv pip install --python .venv-pylabrobot/bin/python "PyLabRobot==0.2.2"
On Windows, use .venv-pylabrobot\Scripts\python.exe. Do not install hardware
extras until the user names the device and explicitly approves its transport
…
常见问题
什么是 PyLabRobot?
PyLabRobot 是一个软件库,用于编写实验室机器人程序,实现移液等任务的自动化。
我可以用这个工具控制真实的机器人吗?
该工具首先用于模拟和规划。若要在真实机器人上运行,必须由经过培训的操作人员明确审核并批准所有安全步骤。
我需要提供哪些信息?
你需要提供设备、容器(板、试管)、液体、用量以及期望执行的操作等详细信息。信息越详细,模拟或方案就越准确。
详情
作者的原始描述
Develops and reviews PyLabRobot lab-automation resources, liquid-handling plans, offline simulations, and supported-device integrations. Supports PyLabRobot protocols and API questions; keep physical execution behind an explicit operator safety gate.
热度
- GitHub 星标
- 51k
- 排名
- #3541
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …