/storytold:cadcraftfrom storytold
Creates and edits technical 2D drawings (floor plans, mechanical parts, schematics) with exact dimensions and scale. Supports DXF, DWG, SVG, PDF, PNG. Useful for CAD drafting tasks.
Ships in storytold. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
CADCraft is a free, open-source clean-room take on AutoCAD (storytold Crafting Apps). An agent drives it
through an MCP server (cadcraft-cli mcp) or one-shot CLI commands. It reads DXF (R12–2018), DWG (R13–2018)
and SVG, writes DXF / DWG (versions 2000–2018, DXF also binary), and plots PDF; SVG and PNG are exports.
This skill is tested against CADCraft 0.8.0.
Use it for drawings where exact dimensions and scale matter:
Pick a different Crafting App when:
| The job is… | Use |
|---|---|
| A logo, icon, poster or illustration (looks matter, not measurements) | vectorcraft |
| Marking up or editing pages of an existing PDF | pdfcraft |
| A bill of materials or cost sheet | gridcraft |
| Photo editing | photocraft |
mcp__cadcraft__* are available, use them. This is the preferred way.cadcraft-cli --version. If it's missing, load the storytold-install
skill and run its setup cadcraft. Then ask the user to restart Claude Code.Without a running desktop app the server is headless (in-process session with a CPU renderer). For the
user to watch live, they run cadcraft --control 7979 and the server is
cadcraft-cli mcp --connect 127.0.0.1:7979. Plain --connect exits at startup if the app isn't answering
(cannot connect to 127.0.0.1:7979: connection timed out); add --lazy to start anyway: each call then fails with
CADCraft is not answering at 127.0.0.1:7979 … Open CADCraft with its control port … until the app is up.
--launch (implies lazy) also opens the app, on macOS only; elsewhere calls fail with
CADCraft is not running; start it with \cadcraft --control 7979`. Only the bridged mode adds screenshot, ui_inspectandui_click(15 tools).screenshotsaves the app window to a PNG and returns itspath`
(not an image); read that file to look.
new_drawing {metric: true} = millimetres
(ISO-25 dim style, A-size limits); the default is inches (decimal display). Draw full size (an 8 m wall
is 8000 in a metric drawing); scale happens at annotation (DIMSCALE, text height) and plot time.1:50) plus title-block text. layout.set {name: "Model"|"<layout>"} switches."10A"), a layer, and geometry. Every create command
returns the handle(s); modify commands take handle/handles. Keep the handles.ByLayer). Set the current layer before drawing.command_line {text} types AutoCAD syntax: line 0,0 @100,0 @0,50 c, circle 50,25 10, rectang 0,0 @80,40.
Coordinates: absolute x,y, relative @dx,dy, polar @dist<angle. Spaces act as Enter, and a trailing
space ends an open-ended command.execute {command, params} runs the same command with JSON and no prompts. Best for agents: exact,
returns handles, errors name the missing param. It takes command ids only, not aliases
(rec → unknown command \rec`). Grep ${CLAUDE_SKILL_DIR}/references/commands.md` for ids/params.mcp__cadcraft__<tool>)| Tool | Use it for |
|---|---|
execute {command, params} | Any command with JSON params (line, circle, offset, dimlinear, layer.new, …) |
command_line {text} | Type at the prompt; returns prompt, keywords, running, output (and error) |
script {text} | Several command lines at once (like a .scr file); a blank line = Enter |
inspect_drawing {entities?, limit?} | Counts by type, extents, layers, styles, blocks, layouts, undo history, entities |
query_entities {type?, layer?, window?, crossing?, limit?, offset?} | Entities with handles and geometry, e.g. {type:"Circle"}, {window:[[0,0],[100,100]], crossing:false}. count = all matches; pages of 500 |
render {width?, height?, fit?, path?, window?} | PNG of the active space, fitted to extents (path also writes it). window:[[x0,y0],[x1,y1]] shows just that area (1600 px wide, the window's shape, if no size). Look at it |
find_text {contains?, layer?, window?, limit?, offset?} | TEXT, MTEXT (plain), attributes and multileaders with text, at, height, style, layer, handle. contains ignores case. Finds room names and titles without reading geometry |
new_drawing {metric?} / open {path} / save {path?} | open takes .dxf/.dwg/.svg; save writes .dxf/.dwg by extension, or exports .svg/.png/.pdf |
list_commands {filter?} | The catalog with aliases and params |
cancel | Escape: abort a running prompt |
Resources: cadcraft://drawing (inspect JSON) and cadcraft://commands. There are no prompts. Bad tool
arguments (missing text, wrong type, render {width:10} below the 16 px minimum) are JSON-RPC errors
-32602; a command that fails returns isError.
line {points:[[x,y],…], closed?} · pline {vertices, closed?, width?} (bulge for arcs) ·
rectang {p1, p2, fillet?, chamfer?} · circle {center, radius} · arc {center, radius, start, end} (degrees,
CCW) · polygon {sides, center, radius} · ellipse · spline {fit} · point · table {at, rows, cols, cells}.offset {handle, distance, side:[x,y]} · trim {handle, pick, edges?} · extend ·
fillet {h1, p1, h2, p2, radius} · chamfer {h1, p1, h2, p2, d1, d2} · break {handle, p1, p2} ·
move {handles, delta} · copy {handles, delta, count?} · rotate {handles, base, angle} · mirror · scale ·
arrayrect {handles, rows, cols, rowSpacing, colSpacing} · arraypolar {handles, center, count, rotate?} ·
erase {handles} · join · explode. p1/pick are points on the object, near the end to keep/cut.
Arrays are associative by default (one block reference); associative:false gives loose copies.layer.new {name, color, linetype?, lineweight? (mm), current?} · layer.current {name} ·
layer.set {name, on?, frozen?, locked?, color?, lineweight?} · linetype {load:"*"} for DASHED/CENTER.text {at, text, height, justify?: "MC"|"BL"…, rotation?} · mtext {at, text, height, width} (\P = new
line; also columns, list, align). For TrueType: style {name:"Notes", font:"Arial", current:true}.dimlinear {p1, p2, at} · dimaligned · dimradius {handle, at} · dimdiameter ·
dimangular · dimcontinue {points} / dimbaseline (chain from the last linear dim) · qdim ·
tolerance (GD&T). Size them for the drawing: dimstyle {name:"ISO-25", DIMSCALE: 50, DIMDEC: 0} (any DIM*
variable works; it also resizes the dimensions already drawn). setvar {name:"DIMSCALE", value:50} is only an
override for new dimensions.hatch {handles:[outer, inner], pattern:"ANSI31", scale} or {points:[[x,y]], style:"outer"}; pattern:"SOLID".block {name, base, handles, keep:"delete"} → insert {name, at, rotation?, scale?, attribs?};
attributes via attdef {tag, prompt, default, at, height} inside the block, filled with attribs:{TAG: value}.
block's default keep is "convert" (the originals become an insert).dist {p1, p2}, area {handle} (numeric area, perimeter), list, properties {handles},
massprop, count / countlist (blocks), compare {path} (diff against another drawing), texts (= find_text).new_drawing {metric:true}, set DIMSCALE (= plot scale denominator, e.g. 50) and a TrueType text style.execute and exact coordinates; chain the returned handles into
offset/trim/fillet. Use command_line for quick AutoCAD-style input.inspect_drawing counts and extents, query_entities geometry, find_text labels, then render
and look (render {window} to zoom into a room or detail).save {path:"/abs/x.dxf"} or .dwg; export .pdf (exportpdf or save to .pdf), .svg, .png.new_drawing {metric:true}
execute dimstyle {name:"ISO-25", DIMSCALE:50, DIMDEC:0}
execute style {name:"Notes", font:"Arial", current:true}
execute layer.new {name:"WALLS", color:"7", lineweight:0.5} (+ DIMS blue, TEXT 7, FURN green, HATCH 8)
execute layer.current {name:"WALLS"}
execute rectang {p1:[0,0], p2:[8000,6000]} → {handle:"100"}
execute offset {handle:"100", distance:200, side:[4000,3000]} → {handle:"101"} (inner wall face)
execute line {points:[[5000,200],[5000,5800]]} → {handles:["102"]} (partition)
execute offset {handle:"102", distance:100, side:[5100,3000]} → {handle:"103"}
execute break {handle:"102", p1:[5000,1000], p2:[5000,1900]} → {handles:["104","105"]} (900 door opening;
same for "103")
execute layer.current {name:"HATCH"}
execute hatch {handles:["100","101"], pattern:"ANSI31", scale:40} (walls only)
execute layer.current {name:"FURN"}
execute line {points:[[0,0],[0,900]]} · execute arc {center:[0,0], radius:900, start:0, end:90}
execute block {name:"DOOR900", base:[0,0], handles:[line, arc], keep:"delete"}
execute insert {name:"DOOR900", at:[5100,1000]}
execute circle {center:[2500,3000], radius:600} · rectang chair · arraypolar {handles:[chair], center:[2500,3000], count:4, rotate:true}
execute layer.current {name:"TEXT"} · text {at:[2500,5000], text:"LIVING ROOM", height:250, justify:"MC"}
execute mtext {at:[5400,5500], text:"Floor plan\\Pscale 1:50", height:200, width:2400}
execute layer.current {name:"DIMS"}
execute dimlinear {p1:[0,0], p2:[8000,0], at:[4000,-500]} · dimlinear {p1:[0,0], p2:[0,6000], at:[-500,3000]}
execute dimradius {handle:<table>, at:[3000,2500]}
render {width:1000, height:800} → look
render {window:[[0,0],[5000,3000]]} → one room, 1600×960
find_text {contains:"room"} → [{text:"LIVING ROOM", at:[2500,5000], …}]
save {path:"/abs/plan.dxf"} · save {path:"/abs/plan.dwg"}
execute exportpdf {path:"/abs/plan.pdf", fit:true} (A4 landscape, real text in Arial)
layout.new sizes its viewport for A4 (284×197 mm), so a later pagesetup to A3 leaves it in one corner.
Make the layout without a viewport, set the page, then draw the viewport:
execute layout.new {name:"Sheet", viewport:false}
execute pagesetup {layout:"Sheet", paper:"A3", landscape:true, plotStyleTable:"monochrome.ctb"}
execute layout.set {name:"Sheet"}
execute mview {p1:[15,40], p2:[405,282]} → {viewports:["1182"]} (paper mm)
execute viewport.set {handle:"1182", scale:"1:50", center:[4000,3000]}
execute rectang {p1:[10,10], p2:[410,287]} · line {points:[[10,35],[410,35]]} (border, title strip)
execute text {at:[20,20], text:"Ground floor plan 1:50", height:5}
execute exportpdf {path:"/abs/sheet.pdf", layout:"Sheet"}
execute layout.set {name:"Model"}
execute publish {path:"/abs/set.pdf", layouts:["Model","Sheet"]} → set-Model.pdf, set-Sheet.pdf
Without layouts it publishes Model plus every layout, including the empty Layout1/Layout2.
Also tested: trim (→ {handles}), fillet (→ {arc}), script with pline … c / circle / polar
line 300,0 @50<30, command_line rectang 0,300 @80,40, circle 2p …, offset 5 <pick> <side>,
attribute blocks, open of a DWG and an SVG, import of a DWG into the current drawing, compare, pdfbook.
open returns {index, entities, warnings}: warnings lists what a damaged file lost;
inspect_drawing/info report unread DXF records in skipped. import {path, at?, scale?} merges a
DXF/DWG/SVG into the current drawing.save {path} → .dxf/.dwg by extension (2018 by default). saveas {path, version?: 2000…2018, binary?} for an older version or binary DXF; the format comes from the extension. save {} with no path
fails on a new drawing (drawing has no file name yet; use saveas {path}).save or export {path} to .svg/.png/.pdf exports without renaming the drawing.exportpdf {path, layout?, paper?, landscape?, fit?, scale?, plotArea?, window?} or plot {…}; uses
the layout's page setup. Layers become PDF layers; TrueType text stays real text.
plotStyleTable:"monochrome.ctb" (or grayscale.ctb) prints all colours black/grey.pdfbook {path} finds closed frames of paper height (frameHeight, default 297) drawn in model
space and plots each row of frames as one PDF, one page per frame (ISO A size matched). 1 unit = 1 mm by default
(unit).render use the dark model-space background; SVG and PDF are on white.cadcraft-cli info plan.dwg # JSON: counts, extents, layers, blocks, layouts
cadcraft-cli convert plan.dxf plan.svg # also .png, .pdf, .dxf, .dwg
cadcraft-cli convert plan.dxf room.png --window 0,0,5000,3000 # frame a rectangle (drawing units)
cadcraft-cli run --metric --script 'rectang 0,0 100,50
circle 50,25 10
' --cmd 'dimlinear {"p1":[0,0],"p2":[100,0],"at":[50,-10]}' --save part.dxf --export part.png
cadcraft-cli run plan.dxf --script-file edits.scr --save plan2.dxf
cadcraft-cli sample bracket|floorplan out.dxf # reference drawings to study (.dxf/.dwg/.svg/.png)
cadcraft-cli commands dimlin # catalog as JSON, filtered
Image exports are 2400×1600 and always model space. --view extents|current picks the framing; run --export
uses the current view if the commands zoomed or panned. run exits 1 on the first error
(unknown command \bogus`) and on unknown options (unknown option --bogusflag`).
dimstyle {name:"ISO-25", DIMSCALE:<plot scale>}; it also fixes
dimensions already drawn. setvar DIMSCALE only affects new dimensions, and dimstyle.update does not carry
that override to old ones (they stay invisible).trim and break return new handles and the old one is gone. break,
trim on it fail with no such object, offset with invalid parameters for \offset`: no such object, but erase, move, list, properties quietly do nothing ({erased: 0}, {moved: 0}`). Always continue
with the handles from the latest reply.line/break/trim → {handles:[…]}, most single creates → {handle}, hatch →
both, fillet → {arc}, mview → {viewports:[…]}, layer.* → null. "LAST" is not a handle
("LAST" is not an object handle (a hex string such as "1A2")).style:"outer", or hatch with explicit boundary
handles.command_line leaves open-ended commands running (line …, pline …) unless the text ends with a space
or you send command_line {text:""}. The next line is then fed to the old prompt: circle 10,10 5 becomes
Point or option keyword required. plus an extra line segment. Check running is null.script, a blank line repeats the last command if it already finished (circle x,y r + blank → a new
CIRCLE prompt eats the next line). Only put a blank line after open-ended commands (and to end MTEXT).monochrome.ctb.publish without layouts still prints them.open/save/exportpdf: relative paths resolve against the server's working
directory, not yours.inspect_drawing: expected counts per type, layers, blocks, and sensible extents.query_entities {type:"Dimension"} / {layer:"WALLS"} to confirm geometry and layer assignment;
find_text to confirm labels and titles.render, then look: walls closed, openings where planned, dims readable, nothing hatched by mistake.pdftoppm -png -r 60 plan.pdf page, or
vectorcraft-cli convert plan.svg page.png --artboard 0) and check it; cadcraft-cli info out.dwg confirms
the file reopens.${CLAUDE_SKILL_DIR}/references/commands.md: all 426 commands with aliases and JSON params, grouped by menu. Grep it rather than
reading it whole (e.g. grep -n "^- \dim" ${CLAUDE_SKILL_DIR}/references/commands.md`).mcp.md, control-protocol.md). They
track main and may list features newer than 0.8.0.What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/deckcraftPresentations with DeckCraft (PowerPoint-style): build and edit slide decks — pitch decks, reports, lectures, briefings. Slides from layouts, bullets, pictures, charts, tables, shapes, SmartArt and icons, themes and backgrounds, speaker notes, transitions and animations. Open and save .pptx, export PDF (slides, notes, handouts), PNG and animated GIF./designcraftPage layout and publishing with DesignCraft (InDesign-style): brochures, newsletters, magazines, flyers, booklets, reports, certificates and data-merged cards. Multi-page documents with parent pages, page numbers, text frames, columns, paragraph / character styles, images, tables, text wrap; export print PDF, PNG, IDML, EPUB, HTML./effectcraftnpx claudepluginhub ai-2070/claude-storytold-skills --plugin storytoldOther plugins' skills for the same job