跳到正文
Skillpedia
图片与图标51k · #3483

lab-hardware-cad

它能做什么

这个 AI 技能可以用代码为实验室的实体零件设计图纸,比如支架或转接器。它会确保零件能和现有设备正确配合,并把设计导出为可用于制造的文件格式。

适用场景

  • ✓当你需要为实验设计一个定制的实体零件时。
  • ✓当你需要设计一个能与特定实验室设备配合的支架时。
  • ✓用于制作模具或实验材料的转接器时。

技能链接

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/lab-hardware-cad/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/lab-hardware-cad/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“帮我设计一个支架,用来放置 15ml 试管,并且能装进标准的微孔板里。”

每周 5 个新技能,1 分钟读完。

工作原理

这个技能会用 Python 这种专门的代码来定义零件的尺寸。在生成最终用于制造的文件之前,它会先对照实验室设备的标准检查这些尺寸,确保零件能完美契合。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Lab Hardware CAD

Design physical research hardware as parametric Python source, export STEP as the authoritative artifact, and verify the result both numerically and visually before anything is fabricated.

The hard part of lab hardware is almost never the geometry. It is that the part must mate with equipment whose dimensions are fixed by a published standard or a vendor drawing. A holder that is 0.5 mm too wide does not fit the plate reader; a channel with the wrong aspect ratio collapses during bonding; a mount whose bolt pattern is 25.4 mm instead of 25.0 mm will not reach the optical table. This skill exists to keep those numbers correct and checked.

When to use

Use for any request to design, model, or fabricate a physical part for a lab: chip, mold, mount, adapter, holder, rack, bracket, enclosure, jig, fixture, arena, or maze. Also use to inspect or modify an existing STEP file.

Do not use for finite-element analysis, computational fluid dynamics, molecular structure, or scientific plotting. Those are different skills.

Setup

uv venv --python 3.12 .venv-labcad
uv pip install --python .venv-labcad/bin/python "build123d==0.13.0" "matplotlib>=3.8"

build123d 0.13.0 requires Python >=3.11,<3.15 and pulls in the OpenCascade kernel through cadquery-ocp-novtk. The wheel is large; install once per project and reuse it.

All bundled scripts take --help. check.py standards runs without build123d installed.

Model files are executed, not parsed. gen.py, check.py, and snapshot.py import a *_model.py and call its build(), which runs arbitrary Python in the current environment. That is inherent to parametric CAD — the source is the design. Only run model files authored in this session or supplied by the user from a trusted location. If a model came from the internet, a shared drive, or an untrusted colleague, read it before running it and say that you did.

Required workflow

Follow these steps in order. Steps 5 and 6 are not optional, and step 6 is not waived by step 5 passing.

1. Route to a device family

Read the request, classify it, and load exactly one family reference. Do not load all four — they are long, and mixing conventions between families is a common source of error.

If the part is Load
A chip, mold, channel network, flow cell, gasket, or anything with fluid ports references/microfluidics.md
A mount, post, breadboard adapter, cage-system part, filter or sample holder in a beam path references/optomechanics.md
An adapter, insert, rack, or holder for plates, cuvettes, tubes, slides, or dishes references/labware-adapters.md
An arena, maze, head-fixation part, spout, tether, or extrusion-mounted enclosure for animal work references/behavior-rigs.md

If the part genuinely spans two families — a microfluidic chip that bolts to an optical table — load the family that owns the critical interface, then read only the interface section of the second. State in your response which family you routed to.

2. Establish the interface dimensions before any geometry

Every part has at least one mating interface. Before writing code, write down for each interface:

  • the source of the dimension: a published standard, a vendor drawing, or a user measurement;
  • the nominal value and tolerance;
  • the clearance or interference you intend, and why.

Look the number up in assets/standards.json or the family reference. Never write an interface dimension from memory. If the number is not in the standards file or the reference, ask the user for the vendor drawing or the measurement rather than guessing. A guessed interface dimension is the single most expensive failure mode in this skill.

A pocket receiving an external component is sized against that component's maximum material envelope — nominal plus its plus-tolerance — and only then given clearance. A shaft entering a hole instead uses the hole's minimum diameter; envelope does not model that case.

python scripts/check.py standards --list
python scripts/check.py standards --show slas-microplate-footprint

The bundled standard IDs (exact strings; do not guess variants): slas-microplate-footprint, slas-microplate-height, slas-microplate-flange, slas-well-positions-96, slas-well-positions-384, slas-well-positions-1536, cuvette-standard-10mm,

…

常见问题

“参数化”是什么意思?

意思是零件的尺寸可以通过代码中的变量轻松修改,不用从头开始,就能快速得到不同版本的设计。

它支持导出哪些文件格式?

支持 STEP(精度高)、STL(用于 3D 打印)和 DXF(用于激光切割或机械加工)等格式。

可以用来设计任何类型的零件吗?

它最适合需要与标准化设备配合的实验室实体零件。像流体模拟或分子结构这类复杂分析,它并不适用。

详情

作者的原始描述

Designs custom laboratory hardware as parametric build123d models and exports fabrication artifacts as STEP, STL, and DXF files - microfluidic chips and molds, optomechanical mounts and breadboard adapters, cuvette and microplate holders, tube racks, animal-behavior rigs, and 3D-printed instrument fixtures. Use when a research task needs a physical part that must mate with standardized labware, an

repo: K-Dense-AI/scientific-agent-skills

热度

GitHub 星标
51k
排名
#3483
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能