/cad-modeling:solidcraft-checkingfrom cad-modeling
Use alongside solidcraft-modeling and solidcraft-editing whenever you build, change or port a SolidCraft design. Checks for errors SolidCraft does not report (parameter ranges, every allowed value, exact STEP comparison), regression tests, designs kept in git, porting from build123d, CadQuery, OpenSCAD or STEP.
Ships in cad-modeling. 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; scripts run unread.
solidcraft-modeling and solidcraft-editing cover the commands, plane axes, ids, edge picks and the MCP workflow: load the one that fits first. This skill adds checks for errors SolidCraft does not report, and the work around a design kept in a repo.
$SKILL below is the folder this file is in (~/.claude/skills/solidcraft-checking for a user install). Checked against SolidCraft 0.21.0. scripts/tests/test_facts.py checks every trap and convention below, and the facts behind the corrections in solidcraft-modeling. After a SolidCraft upgrade, run the tests and fix the text where they fail:
PYTHONDONTWRITEBYTECODE=1 uv run --no-project --with pytest --with build123d pytest -p no:cacheprovider $SKILL/scripts/tests
An MCP batch and a command script ({"commands": [...]}, run by solidcraft-cli run) take the same command list. Build with a script when the design goes into a repo or must be rebuilt later: a script rebuilds the design from scratch on every run. Subagents share the session's one MCP design, so agents that run in parallel use solidcraft-cli only.
In $SKILL/scripts/:
python3 $SKILL/scripts/run.py script.json [--in <design>] [--save <name>.json] runs a script and prints FAIL, a WARN line per feature warning, a SKETCH line per sketch above dof 0 and a BODY line per body, for the end state and for each document.inspect inside the script.scb.py gives a generator a Script with sketch helpers that come out at dof 0 (hexagon, circle, rounded_rectangle, place) and cmd for any other command. It rejects repeated sketch, feature and body names. Import it with sys.path.insert(0, "<$SKILL>/scripts").uv run --no-project --with build123d python $SKILL/scripts/compare_step.py actual.step expected.step gives the exact volume of the difference between two STEP files and where it sits. It and the tests run OpenCASCADE through build123d as a separate tool, the way tools/freecad-oracle runs FreeCAD: SolidCraft does not use, link, vendor or ship any of it.solidcraft-cli snapshot <design or script> --out shot.png --view iso renders a PNG to look at.parameters.favorite). Give each thing the user thinks of (a port, a row of standoffs) its own feature, named after it, so it can be found and changed on its own. Choose the origin so that no sketch dimension reaches 0 for any allowed value (trap 1).run.py lists them.parameters.change commands walks each driving parameter to both ends of its range, one change after another, and back to the default, as edits in the app do: trap 1 fails only on the change after the one that reaches 0. Put a document.inspect {measure: true} after each end of a range and run the walk with run.py walk.json --in <design>. Every state must be clean: no FAIL, no SKETCH, and BODY volumes and centres of mass that match the values you compute for that state. A boolean retry can leave the geometry wrong with only a WARN line, and the volume shows it (trap 4); a mirrored sketch (trap 1) keeps the volume and moves the centre of mass.file.export {path, bodies}) and run compare_step.py. Before porting, in SolidCraft's own chat or any MCP client, call skill_reference {"skill":"solidcraft-checking","file":"reference/porting.md"}. Elsewhere, read $SKILL/reference/porting.md.<name>.json with run.py build.json --save <name>.json: a .json design stays plain JSON when it is saved again, so git diffs stay readable. Saving over a file leaves <name>.json.bak, so ignore *.bak. From then on the design file is the source, and changes go into it with --in <design> --save <design>. Copy $SKILL/templates/test_design.py next to the design, fill in its cases, set its tolerance as its comment says, and run it until it passes. Expected values come from an exact reference when porting, from hand calculation for simple shapes, or from a build the user has reviewed. After a change, update frozen values only where the change is meant to change them.its constraints would conflict (a point placed by dimensions from the origin) or, with no error, moves it: a slot that other constraints also held slides to the origin when the distance reaches 0 and, the solver taking the shortest step that fits, keeps the side it was drawn on when the value comes back. Check every distance expression against the whole allowed range of each parameter in it, counts included; the walk in step 3 catches the failure, and only the volume or the position catches a point that ended up on the other side. For a point on an axis, pass x=None or y=None to place: it aligns the point instead of dimensioning it. For a position that does reach 0, such as the first of a centred row of one, dimension it from a sketch point placed outside the part: a point at x = -100 mm, then the distance 100 mm - (n - 1) / 2 * pitch from it.round(n) wherever the count also positions something.sketch.polygon.circumscribed with a size dimension and one vertical side still has 1 dof: its corners can alternate in and out. sketch.constraint.polygon makes it regular; scb.hexagon adds it.Boolean retry: ... warning means the result may be wrong (see "Boolean warning" in the solidcraft-modeling reference), so check the volume of that state. temporary coincident-face separation comes from faces that coincide. A tapered tool whose start or end lies on a face of a plain block, or a straight cylinder joined onto the floor of a filleted, shelled box, does not log it; a tool displacement warning shows up when a join and a cut share one location, as in a standoff built as a joined cylinder with a cut pilot hole, patterned together. That case reports the warning but its volume agrees with the analytic growth, and a single ring profile removes the warning. Starting cutters about 1 mm past the faces they pierce and sinking joins about 1 mm into the body remain good practice on a single feature. Check the volume of every state either way.solidcraft-modeling reference gives how far measured volumes stray from computed ones. Centre of mass and bounding box come out up to about 5e-5 of the part size off. Set test tolerances as the template says.+ - * / ^ %, sin cos tan asin acos atan atan2 sinh cosh tanh asinh acosh atanh sqrt abs min max floor ceil round mod trunc exp ln log log10 pow sign hypot (log is base 10; the hyperbolic ones take and give unit-less numbers), pi and units; no if and no comparisons. Build steps from floor, mod, min, max and sign, which gives 1 at 0. asin acos atan atan2 return angles, so a unitless parameter cannot hold them.connect defaults to true).body_name is renamed (Body1) without an error, so targets reach only the first body.taper positive widens along the extrude direction, negative narrows it, also with direction: negative.sketch.polygon.circumscribed with 6 sides and angle: 0 puts vertices up and down and flat sides facing ±x.solidcraft-cli run writes nothing and the error names the feature. run --in and snapshot also accept a command script in place of a design.reference/porting.md (opens in a new tab)scripts/compare_step.py (opens in a new tab)scripts/run.py (opens in a new tab)scripts/scb.py (opens in a new tab)scripts/tests/test_compare_step.py (opens in a new tab)scripts/tests/test_facts.py (opens in a new tab)scripts/tests/test_run.py (opens in a new tab)scripts/tests/test_scb.py (opens in a new tab)templates/test_design.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/solidcraft-editingUse when changing, fixing or extending an existing SolidCraft design through its MCP server - a .sc file (or an older .solidcraft one) or the design open in the app. Typical requests: resize it, move a cut, change a hole or standoff, add a fillet or chamfer, make a fixed value parametric, or a feature shows an error after a change or after the app crashed./solidcraft-mechanismsUse when building, driving or animating an assembly or mechanism in SolidCraft through its MCP server - components, grounding, joints and joint origins, rigid groups, motion links, closed loops such as an actuator on a hinged panel or a linkage, contact sets, motion studies, degrees of freedom - or when a drive moves nothing, stops early or a part jumps when it is joined. To model the parts themselves, use solidcraft-modeling.Other plugins' skills for the same job
/solidcraft-modelingnpx claudepluginhub hidontknow/agent-kit --plugin cad-modeling