Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计提醒

build123d-cad建筑 123D CAD

Agent Skill

build123d-cad 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

13,366

周安装

546

GitHub Stars

1

下载量

4,281
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:build123d-cad(建筑 123D CAD)
来源仓库:https://github.com/wngfra/build123d-cad
安装命令:
openclaw skills install build123d-cad
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install build123d-cad

简介

使用 build123d 库进行参数化 3D CAD 建模。

  • 可从 Python 脚本导出 STEP/STL/SVG 格式。
  • 适合机械零件和外壳结构设计需求。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 需安装 Python 环境和相关依赖库。
  • 几何精度取决于算法实现细节。build123d-cad 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
build123d-cad
description
Parametric 3D CAD via build123d. Generate STEP, STL, SVG from Python scripts. Use when the user asks to design, model, create, or export 3D parts, enclosures, mounts, brackets, or mechanical components.
version
1.0.0
metadata
{"openclaw":{"requires":{"bins":["python3"]},"emoji":"🔧"}}

build123d CAD

Parametric 3D CAD via build123d. This skill provides Python scripts for generating and measuring 3D solids. Run them with the exec tool.

Setup (first time only)

cd {baseDir}
uv venv --python 3.12
uv pip install build123d

Commands

All scripts use the venv Python at {baseDir}/.venv/bin/python. All output JSON to stdout.

Generate — export STEP/STL/SVG

{baseDir}/.venv/bin/python {baseDir}/scripts/cad_generate.py \
  --script 'from build123d import *
with BuildPart() as result:
    Box(100, 60, 40)' \
  --format step \
  --filename my_box

Output: { "success": true, "artifact_path": "...", "format": "step", "file_size_bytes": N, "bounding_box_mm": {...} }

Measure — dimensions, volume, mass

{baseDir}/.venv/bin/python {baseDir}/scripts/cad_measure.py \
  --script 'from build123d import *
with BuildPart() as result:
    Cylinder(10, 50)'

Output: { "success": true, "bounding_box_mm": {...}, "volume_mm3": N, "surface_area_mm2": N, "center_of_mass_mm": {...}, "face_count": N, "edge_count": N }

Section — 2D cross-section SVG

{baseDir}/.venv/bin/python {baseDir}/scripts/cad_section.py \
  --script '...' \
  --plane XY \
  --offset 5.0

Output: { "success": true, "artifact_path": "...", "plane": "XY", "offset_mm": 5.0 }

API Reference — build123d cheatsheet

{baseDir}/.venv/bin/python {baseDir}/scripts/cad_api.py

Output: JSON with primitives, operations, selectors, export functions. Call this first if you need to learn what's available.

Validate — interference, clearance, swept-volume collision

Check an assembly of multiple parts for interference, minimum clearance, and moving-part collisions.

{baseDir}/.venv/bin/python {baseDir}/scripts/cad_validate.py \
  --script '...' \
  --mode full \
  --min-clearance 1.0

Modes: static (Boolean intersection between all pairs), clearance (bounding box gap), sweep (rotate moving parts through angular range, check collisions), full (all three, default).

The script must define parts = {"name": solid, ...} dict. Optionally define sweeps list for moving parts:

from build123d import *

with BuildPart() as enclosure:
    Box(100, 80, 50)
    offset(amount=-3, openings=enclosure.faces().sort_by(Axis.Z)[-1:])

with BuildPart() as pcb:
    with Locations((0, 0, 5)):
        Box(60, 40, 2)

with BuildPart() as servo_arm:
    with Locations((30, 0, 25)):
        Box(5, 20, 3)

parts = {
    "enclosure": enclosure.part,
    "pcb": pcb.part,
    "servo_arm": servo_arm.part,
}

sweeps = [
    {
        "name": "servo_arm",
        "axis_origin": (30, 0, 25),
        "axis_direction": (0, 1, 0),
        "angle_start": -45,
        "angle_end": 45,
        "angle_step": 5,
    },
]

Output: { "verdict": "PASS|WARN|FAIL", "static_interference": {...}, "clearance": {...}, "swept_volume": {...} }

  • PASS — no interference, clearance OK
  • WARN — clearance below threshold but no hard collision
  • FAIL — parts intersect or moving parts collide during sweep

Swept volumes are exported to ~/.openclaw/workspace/cad-output/swept_<name>.step for visualization.

Script Format

All single-part scripts must assign the final solid to result via a BuildPart context:

from build123d import *

with BuildPart() as result:
    Box(100, 60, 40)
    fillet(result.edges().filter_by(Axis.Z), radius=5)
    with Locations((0, 0, 40)):
        CounterBoreHole(radius=5, counter_bore_radius=8, counter_bore_depth=3, depth=40)

For validation scripts, define parts dict (and optionally sweeps list) instead of result.

All dimensions in millimeters. Exported files go to ~/.openclaw/workspace/cad-output/.

Workflow

  1. If unsure about build123d API, run cad_api.py first for the cheatsheet.
  2. Write a parameterized script (no magic numbers).
  3. Run cad_measure.py to verify dimensions before exporting.
  4. For multi-part assemblies: run cad_validate.py --mode full before exporting. Fix any FAIL/WARN before proceeding.
  5. Run cad_generate.py with the desired format (step for CAD, stl for 3D printing).
  6. For clearance visualization, run cad_section.py at relevant planes.
  7. Report artifact paths and validation verdict.

Design Rules

  • Parameterize all dimensions for reusability.
  • Add fillets to stress concentrations (min 1mm for plastic, 0.5mm for metal).
  • Include mounting features (bosses, standoffs, screw posts) where applicable.
  • Specify material and process assumptions in comments.
  • Output both the script and the exported file.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.41%
按下载量换算3,828

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills