/artcraft-skills:cadcraft-drawingsfrom artcraft-skills
Drafts, dimensions, annotates, and plots 2D technical drawings using CadCraft (AutoCAD-class 2D drafting app). Covers floor plans, elevations, mechanical parts, schematics, DXF/DWG conversion, and plotting to PDF at scale.
Ships in artcraft-skills. 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 an open-source 2D/3D CAD drafting app that behaves like AutoCAD: command line with
aliases, layers, linetypes, blocks and attributes, dimension styles, hatches, tables, xrefs,
layouts with viewports, plotting to PDF, DXF and DWG read/write. You drive it with the cadcraft
MCP server (a headless drawing session) or with cadcraft-cli from Bash. This skill says how to
plan a drawing, build it in the right order, verify it, and hand it over.
references/command-catalog.mdreferences/gotchas.mdsolidcraft-cad; this skill is for 2D drafting (plans, sections, details, sheets).MCP tools (deferred: load schemas with ToolSearch, select:mcp__cadcraft__execute,... or +cadcraft):
command_line, script, execute, list_commands, inspect_drawing, query_entities,
render, find_text, new_drawing, open, save, cancel. Resources: cadcraft://drawing,
cadcraft://commands.
execute {command, params} runs any command with JSON params and no prompts: the reliable
way to build geometry. It returns {handle} for what it created (keep handles, they are hex
strings such as "100"; later commands take handle/handles).command_line {text} types one line at the AutoCAD prompt (line 0,0 10,0 10,5 c,
circle 5,2.5 1, zoom e); spaces act as Enter. Good for aliases and quick sequences, but it
leaves a running prompt behind when a line is incomplete: send cancel to reset. script {text}
runs a multi-line .scr-style text.list_commands {filter}: always pass a narrow filter ("dim", "layer", "plot", "hatch").
The catalogue has ~440 commands (150 KB). The params text is the truth for the installed build.
Notation: ? optional, | alternatives, → result.[x,y], angles in degrees (CCW +).
Units are whatever you decide (mm, m, inch): see section 2.undo {count} steps back. {last} handle chaining works only in
cadcraft-cli run --cmd, not through the MCP: read the returned handle instead.unknown command, invalid parameters for ...: ...); fix the params, do not retry unchanged.cadcraft-cli mcp has no automation-root flags: open, save, plot, render {path} work
on any absolute path the user can access (verified under /home and /tmp). Always use absolute
paths. Optional: mcp --connect HOST:PORT bridges to a running app started with
cadcraft --control PORT (then the user watches the live drawing); --lazy waits for the app.
Settings (plotters, autosave) live in CADCRAFT_CONFIG_DIR; leave it alone.
Bash route (no MCP needed), each run is a full pipeline:
cadcraft-cli info /abs/plan.dxf # summary JSON
cadcraft-cli convert /abs/plan.dwg /abs/plan.dxf # OUT extension: dxf dwg dwt svg png pdf
cadcraft-cli run --metric --cmd 'rectang {"p1":[0,0],"p2":[6000,4000]}' \
--cmd 'dimlinear {"p1":[0,0],"p2":[6000,0],"at":[3000,-700]}' --save /abs/out.dxf --export /abs/out.png
cadcraft-cli run /abs/in.dxf --script-file /abs/job.scr --save /abs/out.dxf # --in-place to overwrite the input
--cmd 'id {json}' lines print JSON results; {last} stands for the last returned handle.
cadcraft-cli commands dumps the catalogue; sample writes a sample drawing.
open an existing file, then save to a
new path (plan-v2.dxf) before editing; new work: new_drawing {metric:true}.units), layers (layer.new), text style, dimension style (section 3).Scale the work to the request: a quick "draw a 4x3 m room with door" is a layer set, a polyline, two dimensions and a render, not a full title-blocked sheet.
new_drawing is imperial by default: pass {metric:true} for mm/cm/m work, then
units {lunits:2, luprec:0, insunits:4} (4 = mm, 6 = m, 1 = inches).layer.new {name, color, linetype?, lineweight? (mm), current?}), named by
meaning: WALLS, DOORS, FURN, DIM, TEXT, HATCH, CENTER, HIDDEN, TITLE, DEFPOINTS is
reserved. New objects go on the current layer (layer.current {name}): set it before drawing,
including before hatch, dimlinear and text. Colour/linetype/lineweight ByLayer (the default);
never override per object unless needed. Lineweights: walls/outlines 0.35-0.5, details 0.18-0.25,
dimensions/hatch 0.13-0.18.pline {vertices, closed} / rectang) so they
hatch, offset and measure cleanly; offset {handle, distance, side:[x,y]} (side = a point on
the side to offset to) is the fast way to draw wall thickness; trim/extend/fillet/
chamfer to clean joints; mirror, array*, copy {count} for repetition; block + insert
for repeated symbols (doors, chairs, bolts). Use exact numbers, not eyeballed points; use
osnap-free coordinates computed from the dimensions.dimstyle {name:"ARCH-50", scale:50, textHeight:2.5, arrowSize:2.5, extOffset:1, extExtend:1.5, textGap:1, decimals:0, current:true}.
Annotation text (text {at,text,height} / mtext {at,text,height,width}) is in model units: for
1:50 and 2.5 mm paper text, height = 125; titles 250.dimlinear {p1,p2,at} (at = where the dimension line sits, offset 500-700
units from the object at 1:50), dimaligned, dimradius/dimdiameter {handle|center,point},
dimangular, chains with dimcontinue/dimbaseline, mleader for notes. Dimension a feature once, outside the outline, nothing
dimensioned twice, overall dimensions outermost, never dimension to hidden lines.hatch {points:[[x,y]] | handles, pattern:"ANSI31", scale, angle} with an internal point
of a closed region; scale roughly = drawing scale for hatches meant to read at 1:50 (try 50).mtext, with area
from area {points|handle}.layout.new {name} returns the viewport handle; pagesetup {layout, paper:"A3", landscape:true};
layout.set {name} to switch; viewport.set {handle, scale:"1:50", center:[x,y]} to frame the
model; add a title block (table/lines/text on a TITLE layer in the layout) filled with this
drawing's facts (title, scale, units, sheet, revision, date, author), with no generic template
leftovers ("COMPANY NAME", empty logo boxes, unused fields). On a drawing, clarity is the style:
no decorative frames, fills or extra fonts. plot {path, layout, paper, landscape, fit?, scale?} / exportpdf writes a vector PDF (lineweights on by default). Plot
the model directly with layout:"Model", scale:"1:50", paper, or fit:true.dist {p1,p2}, area {points|handle}, measuregeom, list {handles},
query_entities for counts by type/layer (bills of material: dataextraction).inspect_drawing first (layers, blocks, layouts, styles, extents), find_text
to read notes, audit {fix?} / recover for damaged files, purge to clean unused definitions.
open returns warnings for what the reader could not keep (some DWG proxy objects): report them.| Goal | Commands |
|---|---|
| New/open/save | new_drawing {metric}, open {path}, save {path} (dxf/dwg; svg/png/pdf export), saveas {path,version} |
| Setup | units, limits, layer.new/set/current, style, dimstyle, linetype {load}, ltscale, setvar |
| Draw | line, pline, rectang, circle, arc, ellipse, polygon, spline, xline, donut, point |
| Edit | move, copy, rotate, scale, mirror, offset, trim, extend, fillet, chamfer, stretch, array, join, explode, erase |
| Annotate | text, mtext, dimlinear/aligned/radius/diameter/angular, mleader, table, hatch, revcloud |
| Blocks | block, insert, attdef, attedit, wblock, xattach, purge |
| Sheets | layout.new, pagesetup, viewport.set, mview, plot, exportpdf, publish |
| Query | inspect_drawing, query_entities, find_text, dist, area, list, properties |
After each major stage:
inspect_drawing (counts per type, layers, extents, current layer): extents far from the
expected size mean a unit or typo error (a 6000 mm room with extents of 6 means wrong units).render {path:"/abs/scratch/x.png"} (fits the extents; 1600 px wide) then Read the PNG;
render {window:[[x0,y0],[x1,y1]]} to zoom into a detail. The render is a dark-background
screen view, not a plot: judge geometry, text size, dimension legibility, hatch density, layer
colours. For a sheet: plot {path:x.pdf, layout} then pdftoppm -r 60 -png x.pdf /abs/scratch/x
and look at the PDF page.query_entities {layer, type} / find_text to confirm counts, handles and text content; compare
measured values (dist, area) against the spec numbers, not just by eye.overkill), wrong scale in the viewport.undo, then re-check. audit {fix:true} before final save..dxf or .dwg (ask which the recipient uses; DXF is safest for interchange,
DWG for AutoCAD users). saveas {path, version:2000|2004|2007|2010|2013|2018} for older readers.save {path} (does not rename the drawing, unsaved state stays):
.pdf (vector, fits extents), .svg, .png. For real sheets use plot/exportpdf with
layout, paper, scale; publish {path:"NAME.pdf"} writes one PDF per layout.apartment-plan-A3-v2.dxf); report absolute paths and sizes.close unneeded documents; never delete the user's files.Every task ends here, after the verify loop. The headless session has no window, so the user cannot see the drawing until it is saved and the real app is opened on it.
.dxf (or .dwg if the user works in DWG) in the project directory or
the path the user named, with a descriptive name, never over their original unless they said so.
Also write a PDF plot if a sheet was requested. Note the full absolute paths./usr/bin/cadcraft, cadcraft [FILES]...):
setsid cadcraft /abs/path/drawing.dxf >/dev/null 2>&1 &
(MIME image/vnd.dxf and image/vnd.dwg, so `setsid xdg-open /abs/path/drawing.dxf
/dev/null 2>&1 &
also works.) If the user already runs CadCraft with a bridge (--control), use that session instead of launching another copy. Never runcadcraft` without a file argument and never leave extra instances you started running past the task if the user did not ask for them.
references/gotchas.md){last} works only on the CLI run route; via MCP use the returned handle.command_line can leave a half-finished prompt: use cancel. Prefer execute with JSON.save to .pdf/.svg/.png exports only; it does not make that file the drawing's own file.list_commands {filter} before using a command you have not used here; params are strict.What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/artcraft-routerSelector for the ArtCraft skills: picks which ArtCraft skill(s) to load for a request and loads nothing else itself. Use when a creative request spans several ArtCraft apps (FigCraft, VectorCraft, DesignCraft, DeckCraft, PhotoCraft, LightCraft, FilmCraft, EffectCraft, SoundCraft, WordCraft, GridCraft, PdfCraft, CadCraft, SolidCraft) or when it is unclear which one fits: brand identity, landing page with custom icons, video with narration or animated titles, podcast from a script, magazine with retouched photos, report or deck with data, part plus drawing. Skip it when one skill clearly matches./deckcraft-presentationsBuild and edit slide decks in DeckCraft (ArtCraft's PowerPoint-style presentation app, driven through the `deckcraft` MCP server, tools mcp__deckcraft__*). Use whenever the user mentions DeckCraft or the deckcraft MCP tools, or asks to create, design, restyle or edit a presentation, slide deck, pitch deck, keynote/talk, training or sales deck, or report-as-slides in/with DeckCraft (slides, layouts, themes, text, shapes, charts, tables, images, SmartArt, speaker notes, transitions, animations, .deckcraft/.pptx/.pdf output). Covers the outline, theme and layout choices, build, render-and-verify, save/export and the mandatory show-and-approve workflow. Not for cases where the user explicitly asked for another format or tool (a .pptx made with python-pptx, Google Slides, a Claude Slides artifact, PDF editing in PdfCraft, UI design in FigCraft)./designcraft-layoutLay out magazines, books, brochures, flyers, catalogues, designed annual reports and other multi-page print documents in DesignCraft (ArtCraft's InDesign-class layout app, via the `designcraft` MCP server or `designcraft-cli`). Use whenever the user mentions DesignCraft or the designcraft MCP tools, or asks for page layout or desktop publishing work: a magazine or book layout, spreads with facing pages, parent (master) pages, running heads and page numbers, columns and grids, paragraph/character styles, text flow across threaded frames, image placement, tables, table of contents, footnotes, bleed and crop marks, preflight, print-ready PDF/X, IDML/InDesign import/export, EPUB. Covers setup, parents, styles, content flow, render-and-verify and the mandatory show-and-approve phase. Single-flow documents (letters, reports, contracts) belong to wordcraft-documents, vector artwork and logos to vectorcraft-illustration, editing an existing PDF to pdfcraft-documents, UI design to figcraft-design./effectcraft-motionBuild motion graphics, animated titles, lower thirds, logo stings, kinetic typography, compositing and visual effects in EffectCraft (ArtCraft's After Effects-class compositor, via the `effectcraft` MCP server (mcp__effectcraft__*) or `effectcraft-cli`). Use whenever the user mentions EffectCraft or the effectcraft MCP tools, or asks for an animated composition, motion graphics, animated title/intro/lower third, keyframes, expressions, text animators, shape layers, particles, glow/blur/distortion, green-screen keying, rotoscoping, motion tracking, stabilizing, 3D cameras/lights, Lottie export, or to render a comp to MP4/ProRes/WebM/GIF/PNG sequence (with alpha); also .ecproj files. Covers comp, layers, keyframes, effects, frame-preview verify, render and the mandatory show-and-approve phase. Cutting/assembling footage on a timeline and colour grading belong to filmcraft-video, audio-only work to soundcraft-audio, still images to photocraft-images, static vector artwork to vectorcraft-illustration./figcraft-designDesign UI in FigCraft (ArtCraft's Figma-class design app, driven through the `figcraft` MCP server) and turn FigCraft designs into frontend code. Use whenever the user mentions FigCraft or the figcraft MCP tools, or asks to design a screen, app screen, mobile screen, landing page, dashboard, UI mockup, wireframe, design system, design tokens, color/text styles, variables, Light/Dark themes, components with variants, a clickable prototype or user flow; asks for a distinctive, unique, non-generic or 'not AI-looking' UI, a new product-UI visual direction, several divergent design directions to choose from or an art-director critique; or to implement, build, code up or hand off a FigCraft design (design to code, React, Tailwind, CSS variables, export assets/icons). Covers brief → divergent directions → tokens → anchor component → screens → screenshot-verify → adversarial review → prototype, with distinctive (non-generic) design as the default, and pixel-faithful implementation in the user's stack./filmcraft-videoEdit video, colour-grade and mix sound in FilmCraft (ArtCraft's Premiere Pro-class non-linear editor, via the `filmcraft` MCP server (mcp__filmcraft__*) or `filmcraft-cli`). Use whenever the user mentions FilmCraft or the filmcraft MCP tools, or asks to edit/cut/trim/assemble video clips on a timeline, make a rough cut or highlight reel, add transitions, titles, captions or subtitles, speed up/slow down/reverse clips, colour-correct or grade footage (Lumetri, LUTs, scopes), balance dialogue/music/video audio levels, proxies, transcribe-and-cut, multicam, or export a video (MP4/H.264, ProRes, DNxHR, MXF, GIF, PNG sequence, audio-only) or interchange (EDL, FCP XML, AAF, OTIO); also .fcproj files. Covers ingest, sequence setup, assembly, trim, grade, mix, frame-preview verify, export and the mandatory show-and-approve phase. Animated titles, VFX, keying and motion graphics belong to effectcraft-motion, audio-only work to soundcraft-audio, still images to photocraft-images.npx claudepluginhub dnviti/artcraft-skills --plugin artcraft-skillsOther plugins' skills for the same job