К основному содержанию
скилл Claude Code CX Codex Cursor GitHub Copilot

engineering-drawing — скилл для Claude Code: чертежи деталей в PDF

Генерирует чертёж детали в PDF по 3D-модели: создаёт ортогональные виды, проставляет размеры, скрытые линии и рамку ISO. Помогает передать готовую деталь на производство.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add earthtojake/text-to-cad --skill engineering-drawing -a claude-code
Открыть на GitHub

Что делает engineering-drawing

Скилл создаёт технический чертёж формата ISO (A4 или A3) прямо из геометрии детали — файла STEP через cadgen.read_step() или объекта build123d. Проекция строит виды сверху, спереди и справа, а также изометрию, добавляя центровые метки отверстий и скрытые линии. Все размеры считываются напрямую с модели, поэтому при изменении детали они пересчитываются сами.

Для работы утилиты требуется менеджер пакетов uv с Python 3.13 и библиотекой cadgen==0.7.26. Отдельного консольного интерфейса здесь нет: входной точкой служит сам создаваемый Python-скрипт, а итогом становится чистый файл PDF без DXF-развёрток.

Сборка чертежа сразу завершится ошибкой, если вид выходит за границы рамки или заданы некорректные параметры отверстий и допусков. В результирующем PDF нет отметки даты создания, благодаря чему повторный запуск без изменений даёт побайтово идентичный документ.

Какие задачи решает

  • сформировать производственный чертёж детали в PDF по файлу STEP
  • расставить проекционные виды и изометрию на стандартном листе ISO
  • автоматически нанести размеры и выноски отверстий по 3D-геометрии
  • перестроить чертёж и размерные цепочки после изменения модели

Примеры запросов агенту

  • Сделай производственный чертёж в PDF для детали из models/bracket.step
  • Размести на листе A3 три ортогональных вида с изометрией и проставь габаритные размеры
  • Сгенерируй скрипт drawing.py с выносками для всех отверстий и допусками

Как установить engineering-drawing

1Через Skills CLI (Vercel)

npx skills add earthtojake/text-to-cad --skill engineering-drawing -a claude-code

2Вручную: положить файлы

~/.claude/skills/engineering-drawing/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/engineering-drawing/

Из того же набора9

Весь набор →
sdf earthtojake Скилл создаёт и проверяет SDFormat-файлы для моделей и миров, а затем помогает подготовить их к передаче в симулятор. Claude Code CX Codex Cursor +1 10 500установок urdf earthtojake Скилл помогает создавать, проверять и отлаживать описания роботов в формате URDF. Пригодится для работы со звеньями, сочленениями и геометрией. Claude Code CX Codex Cursor +1 10 400установок srdf earthtojake Скилл помогает создавать и проверять SRDF для MoveIt2 поверх URDF. Пригодится для планирования движений, групп и семантики робота. Claude Code CX Codex Cursor +1 10 300установок gcode earthtojake Нарезает модели STL, 3MF и OBJ в G-code через OrcaSlicer. Подходит, когда нужно подготовить файл для печати без подключения к принтеру. Claude Code CX Codex Cursor +1 9 500установок bambu-labs earthtojake Открывает файл в Bambu Connect или Bambu Studio, чтобы вы выбрали принтер и запустили печать. Пригодится, когда модель уже нарезана и лежит на диске. Claude Code CX Codex Cursor +1 9 200установок dxf earthtojake Скилл собирает и проверяет 2D DXF-чертежи из Python-скриптов на build123d: контуры, прокладки, панели, развёртки под лазер. Claude Code CX Codex Cursor +1 9 100установок dfam-check earthtojake Скилл проверяет 3D-сетки на пригодность к 3D-печати по правилам DfAM перед нарезкой в слайсере или отправкой на станок. Claude Code CX Codex Cursor +1 4 100установок dfm earthtojake Проверяет детали на технологичность для гибки листового металла, обработки на ЧПУ и литья пластмасс под давлением. Помогает найти ошибки до отправки на производство. Claude Code CX Codex Cursor +1 2 000установок

Похожие

imagegen-frontend-web nexu-io Скилл задаёт арт-дирекшн для генерации референсов веб-дизайна. Он следит за вёрсткой, запрещая склеивать экран в один длинный макет. Claude Code CX Codex Cursor +1 1 700установок reference-design-contract nexu-io Превращает референсы, скриншоты и расплывчатые пожелания в DESIGN.md и план передачи в разработку. Нужен перед прототипом или редизайном. Claude Code CX Codex Cursor +1 1 700установок drawio jgraph Скилл учит агента рисовать диаграммы draw.io и сохранять их как файлы .drawio, с экспортом в PNG, SVG или PDF. Claude Code CX Codex Cursor +1 3 200установок music-video-subtitle-generator MiniMax-AI Скилл превращает треки и текст в раскадровку музыкального видео с кинетичной типографикой. Пригодится клипмейкерам для генерации промптов к клипам и коротким метрам. Claude Code CX Codex Cursor +1 3 400установок minimalist-product-ad-generator MiniMax-AI Скилл помогает подготовить короткий рекламный ролик товара: от разбора изображений и выбора формата до раскадровки и генерации видео. Пригодится для продвижения товара или запуска новинки. Claude Code CX Codex Cursor +1 3 400установок architecture-diagram Cocoon AI ([email protected]), ported by Hermes Agent Рисует SVG-диаграммы архитектуры систем и облачной инфраструктуры в виде HTML-файла с тёмной темой. Не требует API-ключей и внешних зависимостей — только браузер. Claude Code CX Codex Cursor +1 491установок frontend-design официальный anthropics Скилл задаёт осмысленное визуальное направление для новых интерфейсов и редизайна. Подойдёт, когда стандартный шаблонный UI не устраивает. Claude Code Claude.ai 1 025 790установок grill-me Matt Pocock Скилл проводит жёсткое интервью по плану или дизайну, чтобы найти пробелы и уточнить решения. Подойдёт перед началом разработки. Claude Code 1 424 476установок

Вопросы о engineering-drawing

Как установить engineering-drawing в Claude Code?

Выполните в терминале команду npx skills add earthtojake/text-to-cad --skill engineering-drawing -a claude-code.

Что делает скилл engineering-drawing?

Генерирует чертёжный лист ISO в PDF с проекциями, центровыми линиями, размерными линиями и штампом на основе геометрии STEP или build123d.

Почему скилл создаёт только PDF, а не DXF?

Инструмент предназначен для выпуска конструкторской документации на печать, а не для создания траекторий резки. Для плоских раскроев и контуров резки используется отдельная утилита DXF.

Исходный текст

SKILL.md · MIT
---
name: engineering-drawing
description: Make an engineering drawing of a part as a PDF - orthographic views with hidden lines and centre marks, real dimensions, hole callouts, notes and a title block on ISO sheets, all projected from the part's geometry so the drawing follows the model. Use when the user asks for a drawing, a dimensioned sheet, shop or manufacturing drawings, a print, or "2D views of this part".
license: MIT
---

# Engineering drawing

Provenance: maintained in [earthtojake/text-to-cad](https://github.com/earthtojake/text-to-cad).
Use the installed local skill files as the runtime source of truth.

An engineering drawing is a DOCUMENT derived from a part. `cadgen.eng_drawing`
projects views from the part's geometry, places dimensions between points ON
that geometry, finds centre marks on it, and lays the result out on an ISO
sheet with a frame and a title block. Change the model, rerun the drawing
script, and the views, hidden lines and measured values move with it. Nothing
on the sheet is drawn by hand, and nothing on it is a number you typed unless
you chose to override a value.

**The output is one PDF.** That is what a shop receives and what every
operating system opens. No DXF is written, nothing is paired or linked, and
there is no CLI: the script is the interface. `$dxf` makes cut layouts and flat
patterns, which are toolpaths, not documents; the two are different jobs.

## Setup

Run cadgen through [uv](https://docs.astral.sh/uv/), so this skill's commands share
one installation, and its warm build daemon, with the CAD app's server:

- `cadgen` below means `uvx --no-config --managed-python --python 3.13 --from cadgen==0.7.26 cadgen`
- `python` below means `uvx --no-config --managed-python --python 3.13 --from cadgen==0.7.26 python`

The first run downloads that installation; later runs reuse it.

## Workflow

1. Get the part. `cadgen.read_step(Path(__file__).parent / "../STEP/part.step")`
   reads the artifact a `@step` model wrote (run `python <model>.py` first); a
   live build123d shape works just as well. The drawing documents geometry, it
   does not build it.
2. Write `<name>_drawing.py` beside the model, from
   [the template](references/sheet-api.md#template). Import the model facts the
   dimensions reference (hole pitch, overall size, wall) from the model module
   rather than retyping them, so moving a feature moves its dimension.
3. Place views with `sheet.three_views(part, iso=True)`, which returns FOUR
   views: top, front and right in third angle with room for two rows of
   dimensions, plus an isometric in the free corner. `sheet.three_views(part)`
   returns three. Use `sheet.view(part, name, at=(x, y))` (sheet millimetres
   from the bottom-left corner; A3 is 420 × 297, A4 is 297 × 210) only for a
   custom layout.
4. Dimension what a maker needs, in MODEL coordinates: overall size per view
   (`view.overall()`), feature positions and sizes (`view.dim`, with `tol=`
   or `fit=` where the design requires one), holes as callouts (`view.hole`:
   thru, depth, counterbore, countersink, thread), and notes with leaders
   (`view.note`). Leave `text` unset so the dimension is measured; give a
   value only where the model does not define it. Leave `offset` unset too and
   the dimension takes the next free row outside the view; pass one only to
   place a dimension deliberately, and remember it is measured from the
   dimension's own points, not the view's edge. Keep notes few and short; one
   wider than the sheet's note column is refused, and `notes=` takes a LIST
   (`notes="BREAK EDGES"` is a sequence of eleven characters, so it is refused
   too).
5. Run `python <name>_drawing.py`. It prints the PDF it wrote, and **anything
   it noticed while drawing** — read those first:
   - *"measures blank paper"*: the dimension's model points do not land on the
     view's geometry. Almost always the part was built from a corner and the
     script assumed it was centred. Check the part's bounding box.
   - *"annotation overlaps"*: two callouts print on top of each other, usually
     one view's outermost dimension against the label of the view above it.
     Pass a bigger `three_views(gap=...)` or place one with `offset=`. The text
     is measured as the renderer draws it, glyph by glyph, so this fires on ink
     and not on markup: a chain of toleranced dimensions is silent when the
     values clear each other.

   Steps 3 and 5 stand on their own: a sheet of views with no dimensions on it
   yet is a drawing, and writes its PDF.

   When running unattended, set `MPLCONFIGDIR` to a writable directory so
   matplotlib's font cache does not warn.
6. **Read the PDF** and fix what collides. Check that no dimension text sits on
   a view, that hidden lines appear where features are behind faces, that every
   hole has a centre mark, and that no leader crosses the part. Very small
   dimensions (a few mm) put their value on their own extension line; dimension
   the larger feature instead. Move `at=` or `offset=` and rerun.

## What the sheet contains

- Layers with meaning: `VISIBLE` (heavy outline), `HIDDEN` (dashed), `CENTER`
  (centre marks), `DIM`, `NOTES`, `TITLE`, `SHEET` (frame), each printed at its
  own weight — 0.5 mm down to 0.18 mm, so thick reads against thin on paper.
  An edge is drawn once: a silhouette that the kernel returns as both visible
  and hidden stays on `VISIBLE`. Hidden TANGENT transitions are not drawn at
  all — a fillet running into a face, or the seam where a cylinder closes on
  itself, marks nothing a shop can see, and drawn dashed it reads as a hidden
  edge that is not there (on a bore, as a line down the hole's own axis).
- Dimensions measured from the geometry, with filled arrowheads and witness
  lines, and true-size values at any drawing scale.
- A title block with title, part number, material, author, scale, units,
  projection, revision, `SHEET n OF m` and the drawing function's name;
  numbered notes above it (the general tolerance, when given, is note 1);
  a revision table top-right when `revisions=` is given. Text longer than
  its cell is set smaller, and cut with an ellipsis rather than overrun.
- PDF bytes that are a function of the content: no creation date is stamped, so
  an unchanged drawing rebuilds to an identical file.

## What fails loudly

The script raises rather than writing a wrong or missing document:

- Views that run off the frame, naming a scale that has been laid out and
  verified to fit, or saying that no standard scale does.
- A part argument the vocabulary does not define: an unknown view name, sheet
  size or projection, `orientation=` other than `"h"`/`"v"`, a negative or zero
  diameter, a counterbore that is not a `(diameter, depth)` pair, a `tol` that
  is not a number or a pair, a hole that is both `thru` and given a depth,
  `notes=` or `revisions=` given a bare string, a note wider than the sheet,
  `angle()` legs that are collinear or zero-length, a non-finite `at=` or
  `offset=`.
- A missing renderer. The PDF is the drawing, so no matplotlib is a failure,
  not a skipped half. A failed render leaves no file behind.
- `out=` missing or not naming a `.pdf`, at import time.

## Limits to state in the handoff

- Tolerances come only from `tol=`, `fit=` and `general_tolerance=` that you
  write; get the values from the design requirements or the user, never
  invented. A dimension without one is nominal.
- Views are orthographic projections with hidden lines from the kernel; no
  sections, details, or auxiliary views yet. Say what a view does not show.
- The sheet keeps callouts clear of the views it knows about, and reports
  annotation that still prints over other annotation, but it does not check
  annotation against line work. Read the PDF.

© earthtojake · MIT · earthtojake/text-to-cad

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой