/artcraft-skills:solidcraft-cadfrom artcraft-skills
Designs parametric 3D parts in SolidCraft CAD via MCP tools. Covers fully constrained sketches, extrude/revolve/fillet/shell/hole/pattern/mirror, printability rules, and the measure-against-spec verify loop.
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.
SolidCraft is an independent parametric 3D CAD app (sketch, constrain, dimension, features, a
parameters table that rebuilds the model). You drive it through the solidcraft MCP server. This
skill says what to build, in what order, to what quality bar, and how to finish (show, approve,
export). The MCP ships its own command reference; this skill folds in the essentials and tells you
when to read more.
skill_reference {"skill":"solidcraft-modeling"} (default reference.md; SKILL.md has the
build recipe). Also solidcraft-editing, solidcraft-checking (parameter-range walks, STEP
comparison), solidcraft-mechanisms (assemblies, joints).references/recipes.md; traps: references/gotchas.md (in this skill).Tools are deferred: load schemas with ToolSearch (+solidcraft, max_results 30) before calling.
batch, execute, list_commands, describe_command, inspect_design, measure,
body_topology, set_parameter, screenshot, save, open, export, new_design, undo,
redo, running, pending, crash_reports, skill_reference.
list_commands unfiltered (over 100 KB). Filter on a distinctive word ("hole",
"slot", "sketch.constraint", "pattern"). describe_command {id} gives one command's params.inspect_design {"measure":false,"sketches":false}. The
server instructions end with Backend: headless (in-process session, the user sees nothing) or
Backend: connected to the SolidCraft app (the user watches). If the design already has
timeline features, do not new_design/open without asking: both discard unsaved work.batch {commands:[{command, params}]} is all-or-nothing (rolled back on
the first error; reply names failed.index and failed.error). Build a stage per batch:
(1) parameters, sketch, dimensions, finish, first feature; (2) fillets/shell; (3) holes, cuts,
patterns. Put a risky step (booleans between curved faces) in its own batch. Pass
"verbose": false to keep replies small."1 in", "30 deg"); any numeric field may be an
expression naming parameters ("w/2 - wall - 6"). A plain number never follows a parameter.l1, c1, a1, p1, c1.center, l1.start, origin;
rectangle.center makes l1-l6 + p1-p5 (2 construction diagonals). Read created instead of
guessing when unsure.pending: a call whose error starts still running: was not
cancelled. Never resend it. Call pending (waits up to 60 s; done:false means call it
again). running shows what the app is executing/queued, answering at once; use it when a call
timed out or the app feels slow, before re-sending a change. Other calls queue behind a running
one.measure against your numbers proves it.set_parameter to a very different value, expect errors: [], measure
again, then set back.State a short scope + acceptance checklist before mutating. Stop when the checklist passes; don't grow a bracket request into an assembly.
parameters.add {name, expression, unit?, comment?} (unit:"" for counts). Names: wall,
hole_d, board_w, clearance, n_holes. Derived values are expressions of other parameters
(inner_w = board_w + 2*clearance), never retyped numbers. Comment each driving parameter with
its allowed range ("whole number, 2 or more"): SolidCraft enforces no range.sketch.draw.dimensioned (shape + dimensions in one
step; roles: rectangle width/height, circle diameter/radius, line length/angle, slot
length/width, polygon radius). Dimension positions from origin with expression values
so holes follow parameters. Check sketch.solve (under 100 B: dof, status, profile count)."name":"Plate", "name":"MountHoles").
timeline.roll_to and pattern features:[...] pick by name.solid.extrude for cuts that touch curved faces; primitive
(solid.box/solid.cylinder) cuts against curved faces can fail ("planar faces only").+ - * / ^ %, trig, sqrt abs min max floor ceil round mod, pi, units; no if.plane | sketch x | sketch y | normal |
|---|---|---|---|
"XY" | +X | +Y | +Z |
"XZ" | +X | -Z | +Y |
"YZ" | +Y | +Z | +X |
{origin,x_dir,y_dir} | x_dir | y_dir | x_dir x y_dir |
offset:"expr" on sketch.create moves the plane along its normal and follows parameters. Top
face of a part of height h: {plane:"XY", offset:"h"}. A feature at world height z drawn on an XZ
sketch sits at sketch y = -z. A hole sketch must be on the face the hole starts from.
solid.fillet, chamfer, shell: plain numeric [x,y,z] points that
snap to the nearest edge/face (refused if farther than 5% of body size). Compute exact
midpoints from your geometry (vertical corner edge of a centred box: [w/2, d/2, h/2]). One pick
takes the whole tangent chain (a rounded rim needs 1 point). Faces can be named
("F1:+z"). body_topology {body} lists edges/faces with midpoints (25-45 KB, last resort).| Command | Params and notes |
|---|---|
sketch.create | plane, name?, offset? |
sketch.rectangle.two_point / .center | p0,p1 / center,corner |
sketch.circle.center | center, radius (makes c1, c1.center) |
sketch.line | points, closed ; also arcs, slots (sketch.slot.overall/center_to_center p0,p1,width), polygons, sketch.point |
sketch.dimension | entities, value, type? (horizontal/vertical/diameter); ["origin","c1.center"], ["l1"], ["l1","c1"] |
sketch.constraint.* | coincident, horizontal_vertical, tangent, equal, parallel, perpendicular, symmetry (line:"y"), midpoint, concentric, collinear, fix, polygon |
sketch.finish | closes the sketch editing |
solid.extrude | distance; operation new/join/cut/intersect/auto; direction positive/negative/symmetric; through_all; profiles (default: every region; nested region = hole); start_offset; taper |
solid.revolve | axis (sketch line id, x/y, world `X |
solid.box | length,width,height, center or corner, body_name, operation, targets |
solid.cylinder | `radius |
solid.fillet / solid.chamfer | edges:[[x,y,z]], radius / distance |
solid.shell | faces:[[x,y,z]] to remove, thickness. Fillet outside edges first; round the open rim after |
solid.hole | sketch(+points) or position:[x,y,z] (expressions ok) + diameter or clearance:"M3"; type simple/drilled/counterbore (cb_diameter,cb_depth)/countersink (cs_diameter,cs_angle); depth default through; references:[{edge,distance}] ties position to edges |
solid.pattern.rectangular | features:[names], dir1, count1, spacing1 (+dir2,count2,spacing2); expressions/params ok |
solid.pattern.circular | `features, axis ("Z" |
solid.mirror | features:[names] or bodies:[names], plane XY/XZ/YZ or {origin,normal}, combine?; cannot mirror/pattern a pattern/mirror feature |
solid.loft | sections:[{sketch,...}], rails? ; sweep, draft, split, boolean (list_commands filter) |
parameters.add / parameters.change | name, expression, unit, comment; one change: set_parameter; many: one batch of parameters.change (coalesce_parameters:true) |
body.rename | {body, name} |
file.insert_step / file.insert_mesh | insert into the current design (tool open replaces it) |
view.pick | {pixels:[[x,y]]} on a screenshot: body, face, world point |
Worked example (plate with counterbored holes on a parametric pattern) is in the MCP's
reference.md; a compact enclosure recipe is in references/recipes.md.
After each stage:
measure {} (about 0.9 KB per body): compare volume, bounding box, COM, face count with the
numbers you computed. Volumes agree to 0.001-0.01% when right. A hole or cut that leaves volume
unchanged missed. Compare logical faces, not kernel.faces.inspect_design {"measure":false,"sketches":false}: timeline error/warning per feature
(a Boolean retry: warning means check the volume; geometry may be wrong with no error).top
screenshot and compare pixel distances against a known size. measure {items:[...]} gives
distances between faces/edges/centres, circle diameters, wall thickness.screenshot {"source":"model","view":"iso","width":480,"height":320} and look at it; use
top/front for features inside walls. When bridged, without source:"model" you get the
whole app window and view moves the user's camera; leave view out unless asked.set_parameter on a driving parameter to the other end of its range, expect errors: [],
re-measure, then restore.Defaults for FDM (state the assumption, adjust to the user's printer/material):
measure {items:[face,face]}.clearance a parameter and add it to the mating part's pocket, not the nominal size.solid.hole. clearance:"M3" is available.list_commands {filter:"sheet"}).save {path} writes .solidcraft (container); .json path writes plain JSON (git
friendly). Without path it saves to the design's current file.~/.local/share/solidcraft/recovery and a
/tmp/solidcraft-mcp-<pid>-<hash> dir; "allow another folder with --allow-path DIR"). If the
target path is refused: save to the allowed temp dir, then cp it with Bash to the
project/user path. Always report the final absolute path and verify the file exists.export {path, bodies?, format?}): .step/.stp for CAD/CNC, .stl (binary) or
.stla (ASCII), .3mf for printing (3mf-tagged keeps names), .obj, .urdf (assemblies with
joints). The same path restriction applies; the same copy workaround works. Export only after
acceptance unless asked up front; pick units mm; export one body per file for multi-part prints
(bodies:["Base"]).open {path} (.solidcraft, .step/.stp, .3mf/.stl/.obj/.glb/.gltf; up:"y" for Y-up
STEP) replaces the design. Insert into the current one with file.insert_step /
file.insert_mesh.solidcraft-cli run script.json --out part.step, solidcraft-cli snapshot design.solidcraft --out shot.png --view iso, solidcraft-cli script design.solidcraft (design
history as a replayable command script).Every design ends here, after the verify loop. A headless session has no window: the user cannot see the part until you save it and open the real app on it.
<descriptive-name>.solidcraft (e.g. esp32-case.solidcraft). If save refuses the path (see
section 7), save to the allowed temp dir and cp it there. Note the full absolute path and
confirm the file exists.setsid solidcraft /abs/path/part.solidcraft >/dev/null 2>&1 &
(verified: solidcraft [--control PORT] [--sample] [--crash-log] [--safe-mode] [design.solidcraft | part.step] is the desktop app, /usr/bin/solidcraft; desktop id
ai.storyteller.solidcraft.desktop; MIME application/x-solidcraft, extension .solidcraft
(legacy .solvecraft), so setsid xdg-open /abs/path/part.solidcraft >/dev/null 2>&1 & also
works). The app then listens on a local control port (127.0.0.1; set it with --control PORT). The MCP
bridges to the app only if it was running when the MCP server started, or if the session has no
features yet; a headless session that already has work stays headless, so the saved file is
what the user sees. If the server is already Backend: connected to the SolidCraft app, the
user is already watching: save, and don't launch a second copy.set_parameter for dimension changes), rerun the
verify loop for what changed, save again (same path), tell the user to reopen/refresh the file
(close and reopen the app on it if it holds an older copy), and ask again until accepted.references/gotchas.md)list_commands; never body_topology just to check positions (use measure).still running: error was not cancelled: use pending, never resend.rectangle.center corners join 3 lines: sketch.fillet {point} fails; use {a,b,radius} or 3D
solid.fillet.sketch.dimension on a circle already placed at the origin needs no extra coincident constraint
(sketch.constraint.coincident wants a,b; a circle centre created at [0,0] snaps to origin).solid.extrude takes every region by default; select with profiles:[{point:[x,y]}].operation on solid.cylinder/solid.box cuts; cuts that miss report success.save/export are path-restricted; copy from the allowed temp dir.bodies).body_names are silently renamed; read names from created_bodies.new_design and open discard unsaved work; ask when the session has features.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dnviti/artcraft-skills --plugin artcraft-skills16 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./cadcraft-drawingsDraft, dimension, annotate and plot 2D technical drawings in CadCraft (ArtCraft's AutoCAD-class 2D drafting app, driven through the `cadcraft` MCP server, tools mcp__cadcraft__*, or through `cadcraft-cli`). Use whenever the user mentions CadCraft or the cadcraft MCP tools, or asks for a 2D technical drawing: floor plan, site or room layout, elevation or section, mechanical/part drawing with dimensions, schematic or detail sheet, title block, layers, blocks, hatching, dimensions and annotations, plot or print to PDF at a scale (1:50, 1:100), or to open, inspect, fix, convert (DXF to DWG, SVG, PDF, PNG) or measure DXF/DWG files. Covers units and scale planning, layers, geometry, dimension styles, layouts and viewports, the render-and-verify loop, save/export and the mandatory show-and-approve phase. 3D parts (solid modelling, STEP/STL) belong to solidcraft-cad, vector artwork to vectorcraft-illustration, multi-page print layout to designcraft-layout.Other plugins' skills for the same job