cadcraft
БесплатноБез исполняемых скриптовНе проверенHeadless 2D CAD with CADCraft (DXF/DWG, AutoCAD-style commands, layers, text, dimensions, export to PDF/PNG/SVG, DXF<->DWG conversion), provisioned on demand…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
CADCraft — headless 2D CAD
CADCraft is ArtCraft's 2D CAD app (617 commands in 0.7.0, AutoCAD-style ids and aliases). pi-craft provisions the headless
cadcraft-cli on first use (no desktop app). App choice, the loop, hand-off formats and the MCP policy live in craft-studio;
technical drawings go to CADCraft, illustrations to VectorCraft.
What it is for / formats
Create and edit drawings (lines, polylines, circles, arcs, text, dimensions, hatches, blocks, layers, layouts), inspect them,
export. Open/write dxf and dwg; export pdf png svg (also dxf dwg). The native project file is the .dxf (or .dwg).
PDF cannot be opened (unsupported file type pdf) — it is an output only.
CLI dialect
pi-craft cadcraft exec <args…> passes the arguments to cadcraft-cli.
cadcraft-cli commands [FILTER] # JSON array (default!) of ids with aliases, params, label; FILTER is positional; --json is an ERROR
cadcraft-cli run [FILE | --sample | --metric] [--cmd 'id {json}']... [--script TEXT] [--script-file F.scr] [--save OUT.dxf] [--export OUT.(png|svg|pdf)] [FRAMING]
cadcraft-cli convert IN.dxf OUT.(dxf|dwg|svg|png|pdf) [FRAMING]
cadcraft-cli info FILE.dxf # JSON: counts per entity type, layers, extents, view, blocks
cadcraft-cli sample (bracket|floorplan) OUT.(dxf|dwg|svg|png)
cadcraft-cli perf [N | FILE] # benchmark
- There is no
describe: theparamsstring ofcommands <id>is the schema. --cmdis'id {json}'— a space, not=(unlike GridCraft/WordCraft).'id'alone takes no params. Params are point arrays[x,y], e.g.'circle {"center":[50,30],"radius":15}'. Ids and aliases both work (rectang/rec).--script TEXT/--script-file F.scrreplay typed command-line input (LINE, point lines, empty line to end), as in a CAD prompt — the--cmdJSON route is more reliable for agents.- Framing for png/svg/pdf:
--view extents|current,--window x0,y0,x1,y1(drawing units). Default: fit extents, or the current view if the commands changed it. With no FILE,runstarts a blank drawing (--metric= metric template). - png export is fixed 2400×1600; pdf is A4 landscape, 1 page (
--windowchanges the crop, not the page).
State between invocations
None. run builds the drawing in memory; it is written only by --save OUT.dxf (or .dwg), a qsave/saveas {"path":…}
command, or --export. run FILE.dxf opens it but does not write back — --save FILE.dxf to overwrite (a qsave
command also overwrites the opened file). Chain steps through files.
Discovery first
pi-craft cadcraft exec commands rectang | jq '.[] | {id,aliases,params}' # substring filter over id/alias/label
pi-craft cadcraft exec commands layer | jq -r '.[].id' # layer family
pi-craft cadcraft exec info drawing.dxf # what is already in a file
pi-craft cadcraft exec run drawing.dxf --cmd entities # entity list with geometry, handle, layer
Id families: draw (line pline circle arc rectang polygon ellipse spline text mtext hatch), modify (move copy rotate scale mirror offset trim extend fillet erase), layer.*, dimstyle.*/dim*, block/insert, layout.*, zoom.*/view.*,
export plot exportpdf, save qsave saveas.
Traps
commands --json→ "unknown option --json" (JSON is already the default);commandswith no filter prints all 617.--cmd 'id={json}'→ "unknown command" (GridCraft's spelling). Use a space.- A failing/unknown
--cmdaborts with exit 1 and writes nothing (unknown command \nosuch`leaves no--save` file). moveneeds its params (fromis required: "invalid parameters formove", exit 1);erasewith nothing selected returns{"erased":0}with exit 0 — checkinfocounts, don't trust exit codes for edits.- Draw commands answer
{"handle":"100"}(or{"handles":[…]}); handles identify entities for later edits. layer.new {…,"current":true}makes the layer current: entities drawn afterwards land on it. Layercolortakes names (red).- PDF/SVG text is outlined:
--text-containson a CADCraft PDF finds nothing, and the svg has no<text>. Verify the pdf with--pagesand the png with--size; check text in the DXF viarun F --cmd entities. pi-craft verify --frame-diffreported 0.000% between clearly different png renders (layer off, window crop) — do not use it for CAD stills.convertfrom a.pdfis an error;--windowis in drawing units, not pixels.
MCP route (opt-in)
pi-craft cadcraft mcp --register writes a craft-cadcraft entry into .pi/mcp.json (12 tools). It is not confined
(no root flags): it can read/write any path the process can — review before registering. Use it for one long open drawing;
bash for everything here. GUI bridging (--connect) is out of scope.
Recipes
Установить cadcraft в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cadcraft?
Headless 2D CAD with CADCraft (DXF/DWG, AutoCAD-style commands, layers, text, dimensions, export to PDF/PNG/SVG, DXF<->DWG conversion), provisioned on demand by pi-craft. Use for "draw a rectangle and a circle and export a pdf", "convert this dxf to a pdf", "add a layer and a text label to this drawing", "turn this dwg into a dxf".
Как установить скилл cadcraft?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cadcraft запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic