Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

FreeCAD

БесплатноЗапускает вложенные скриптыНе проверен

Create, edit, verify and export parametric FreeCAD models (STEP, STL, 3MF) and DXF drawings from JSON; STL import; mass and stress checks; parts from GitHub.

ninja7vот ninja7v2 373 установки в других каталогах

Об этом скилле

FreeCAD skill

Build parametric CAD models with FreeCAD by sending a JSON request to one command. Every operation creates a native FreeCAD feature (Part::Box, Part::Cut, Part::Fillet, ...), so the model stays editable: change a dimension later and everything downstream updates. After every step the response reports volumes and bounding boxes, and failures name the step, the cause and a fix.

{baseDir} below means the directory that contains this SKILL.md.

Run

Write the request to a file and run:

python3 {baseDir}/scripts/fcskill.py run request.json

On Windows, use python instead of python3. The launcher needs Python 3.12 or newer; if it reports PYTHON_VERSION, run it with a newer interpreter (e.g. python3.12).

The request can also be inline JSON or come from stdin (run -). Use a file for anything non-trivial, because it avoids shell-quoting problems. The working directory is the workspace. Documents and exports are relative to it and cannot leave it.

Other commands:

  • python3 {baseDir}/scripts/fcskill.py library <keywords>: search ready-made parts (see below).
  • python3 {baseDir}/scripts/fcskill.py describe: list every op with its parameters (* = required).
  • python3 {baseDir}/scripts/fcskill.py describe fillet shell: full parameter details for those ops.
  • python3 {baseDir}/scripts/fcskill.py doctor: check the FreeCAD installation.

If doctor says FreeCAD is missing, ask the user to install FreeCAD 1.1+ or to set FCSKILL_FREECAD to its freecadcmd executable. Do not try to model without it.

Request

{
  "doc": "bracket.FCStd",
  "steps": [
    {"op": "box", "name": "Plate", "length": 80, "width": 50, "height": 6},
    {"op": "cylinder", "name": "Hole", "radius": 3.25, "height": 8, "position": [10, 10, -1]},
    {"op": "cut", "name": "Drilled", "base": "Plate", "tool": "Hole"},
    {"op": "fillet", "name": "Bracket", "target": "Drilled", "radius": 5, "edges": "|Z and %LINE",
     "expect": {"bbox_size": [80, 50, 6], "solids": 1}},
    {"op": "export", "filename": "bracket.step"}
  ]
}
  • doc: the .FCStd file (default model.FCStd). It is created if missing and re-opened on later requests.
  • new: true: start from an empty document, replacing the file's content.
  • dry_run: true: run and report without saving or exporting.
  • brief: true: leave volume and bounding box out of the per-step entries. Use it for long requests; results, warnings and errors are reported as usual.
  • All or nothing: if any step fails, nothing is saved or exported and the file on disk is unchanged. Fix the reported step and resend the whole request.
  • Before anything runs, the whole request is validated. Unknown ops or parameters, typos and missing values are all reported at once.

Response

Actual output for the request above (abridged):

{"status": "success", "doc": "bracket.FCStd", "saved": true,
 "steps": [{"index": 0, "op": "box", "object": "Plate", "volume": 24000.0,
            "bbox": {"min": [0,0,0], "max": [80,50,6], "size": [80,50,6]}, "solids": 1},
           {"index": 2, "op": "cut", "object": "Drilled", "volume": 23800.902, "...": "..."},
           {"index": 3, "op": "fillet", "object": "Bracket", "volume": 23672.14, "...": "..."},
           {"index": 4, "op": "export", "data": {"file": "bracket.step"}}],
 "results": [{"name": "Bracket", "type": "Part::Fillet", "role": "result", "inputs": ["Drilled"],
              "volume": 23672.14, "bbox": {"min": [0,0,0], "max": [80,50,6], "size": [80,50,6]}, "solids": 1, "valid": true}],
 "intermediates": ["Plate", "Hole", "Drilled"],
 "exports": [{"file": "bracket.step", "format": "step", "objects": ["Bracket"], "bytes": 13775,
              "verified": {"faces": 11, "bbox_size": [80,50,6], "solids": 1, "volume": 23672.14}}],
 "files_written": ["bracket.FCStd", "bracket.step"]}

When something is wrong, warnings appears, e.g. {"step": 2, "code": "NO_EFFECT", "message": "cut removed no material from 'Plate'; ['Hole'] do not overlap it. ..."}.

  • results are the finished parts: objects that no other feature consumes. Exports default to these.
  • Read warnings. For example, NO_EFFECT means a cut missed the part, and DISJOINT means a fusion produced separate pieces. These are geometry mistakes even though the status is success.
  • OVERLAPPING_RESULTS means two finished parts occupy the same space. Usually one is a leftover helper (a cutter you never used, which then hides the part in renders), or two parts that should touch are sized wrong. Every result is rendered and exported, so delete leftovers before trusting a render.
  • SELF_INTERSECTION means a result passes through itself (e.g. a spring whose wire is thicker than its pitch). Its volume and mass are wrong and other CAD systems may reject it: fix it, don't deliver it.
  • SELF_INTERSECTION_UNCHECKED means that check could not give an answer for a result (the message says why: too many faces, i
Полный SKILL.md на ClawHub

Установить FreeCAD в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл FreeCAD?

Create, edit, verify and export parametric FreeCAD models (STEP, STL, 3MF) and DXF drawings from JSON; STL import; mass and stress checks; parts from GitHub.

Как установить скилл FreeCAD?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл FreeCAD запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить FreeCAD с