This skill generates parametric 3D printable woodworking jigs in CadQuery, optimized for the Elegoo Neptune 4 Pro and metric units.
npx playbooks add skill ihistand/claude-skills --skill stl-generator
Design jigs and replacement parts as parametric build123d scripts and export STLs that print right the
first time. The deliverable is the STL: the printer matters only for whether the part
fits the bed and which clearances hold, and both are parameters.
The scripts live in ${CLAUDE_SKILL_DIR}/scripts/ (this skill's folder). Run them
with uv, which needs no setup and works on any Python version:
uv run --with build123d python ${CLAUDE_SKILL_DIR}/scripts/spacing_block.py 10
Without uv: create a venv and pip install build123d, then run with that venv's
python. Write the STLs into the user's working directory (or where they ask), never
into the skill's own folder.
All of them take --bed XxYxZ for a printer other than the default, -o for the output
name, and --help for every option and its default. The examples below shorten the
command to python scripts/...; run them the uv way shown above. Each script is
tested and ends in the print-readiness check, so its output needs no extra measuring.
scripts/circle_cutting_jig.py: a router trammel for discs and rings.
python scripts/circle_cutting_jig.py 300 250 --mount <BC>:<N> # ring: 300 OD, 250 ID
python scripts/circle_cutting_jig.py 200 --bit 12.7 # disc only, 1/2" bit
A plate screws to the router; an arm carries one pivot hole per cut, placed for the
bit (outer edge at D/2 + bit/2, inner edge at D/2 - bit/2), so the circle comes out at
the size asked for. Before running it, ask the user for two things you cannot assume:
the bit's cutting diameter, and the router sub-base screw pattern (bolt-circle
diameter <BC> and screw count <N>, measured on their router). If they cannot say
yet, generate it anyway with the 1/4" default bit and no --mount, and tell them both
assumptions: a plate without screw holes can be drilled using the router's own
sub-base as a template.
For a ring, the outer edge is cut first and the inner edge last: the inner cut
frees the center disc that holds the pivot pin, so nothing can pivot after it. Tell
the user so, and to fix the blank to a sacrificial board so neither piece shifts once
cut free. The script prints the cut order too.
scripts/angle_wedge.py: holds work at an exact angle.
python scripts/angle_wedge.py 15
python scripts/angle_wedge.py 22.5 --depth 80 --width 40
Prints on its side so the slope is traced in XY, not stair-stepped by layers. Height
follows from the angle, never the reverse, so the angle is exact; if a steep angle
makes it too tall for the bed, the check refuses it and you should lower --depth.
scripts/spacing_block.py: setup and spacing blocks, single or matched sets.
python scripts/spacing_block.py 10
python scripts/spacing_block.py --set 5,10,15,20
Measuring faces stay flat (engraved label, side scallops, one chamfered corner as an
orientation mark). Every block in a set rests on the bed. Heights that are not a
multiple of the 0.2 mm layer height get a warning, because they cannot print exactly.
scripts/threaded_globe.py: a replacement threaded light globe (a hollow sphere
on a threaded collar that screws into the fixture, like a porch-light "fitter" globe).
python scripts/threaded_globe.py --inches --diameter 5.700 --height 6.2 \
--crest 3.235 --root 3.110 --pitch 0.232 --collar 0.713 --thread-length 0.700 \
--bore 2.825
python scripts/threaded_globe.py <same measurements> --collar-test # print this first
Every dimension comes from the user's calipers (see "Replacement parts" below). The
thread is rounded like glass threads, and --clearance (default 0.2 mm) takes a
little off its diameters so the print screws in. By default the globe splits at
the equator into two halves that join with a glued half-lap, each printed rim-down
so its supports stand inside where they barely show; a hollow sphere cannot print
whole without supports scarring its outside (--one-piece does it anyway).
Always suggest --collar-test first: about a seventh of the plastic, and it proves the
thread fits before committing to the full globe. Printed shades need an LED bulb; PETG softens near 80 C.
For an outdoor fixture, ASA stands up to sun better than PETG. --step adds a STEP file.
The original is the specification, so the measurements decide whether the part
fits. Ask for caliper numbers; never estimate dimensions from a photo, which has no
scale. Ask specifically for:
(the root, measured on the part itself, not taken from the mating part), the pitch
measured across several crests and divided by the number of gaps, the ridge shape
(rounded or sharp), and the hand (does it screw in clockwise?).
Sanity-check the numbers before modeling: a pitch longer than the threaded length,
a root bigger than the crest, or parts that do not add up to the overall height are
measuring slips. Ask about them rather than modeling them; the scripts refuse
those cases. An earlier model of this same globe, built without these checks,
took the root from the fixture's socket and got a thread 0.45 mm deep, where the
glass's own groove measured 1.6 mm.
Read references/build123d_patterns.md and references/printer_specs.md before
writing code; they hold the clearances, minimum sizes, and the build123d idioms that
keep a part on the bed. Then:
export_checked from scripts/printcheck.py, not a bareexport_stl. Copy printcheck.py next to the custom script so the two travel
together, rather than importing it from the skill's folder. It refuses an invalid
shape, a solid that would print in mid-air, or a part too big for the bed at any
rotation, and rotates the part when only a diagonal fits. It also warns about
surfaces sloping past 45 degrees, which need supports. If it refuses, change the design (split a long jig into stages that register
on each other, or shrink it); never hand over an STL it rejected.
with is_inside, heights with bounding_box(), angles from a face's normal. An
earlier version of this skill shipped scripts that ran cleanly and built a trammel
with no pivot hole and a 45 degree wedge that measured 26.6; only measuring catches that.
measuring surface. Engrave labels (never emboss) and put them on faces that do not
touch the work.
short vertical toe; it does not change the slope's angle.
and angles drawn in the XY plane are as accurate as the printer gets. Orient the
part so the dimension that matters is in XY.
0.5 mm. Drill guides: the bit plus 0.1 to 0.2 mm, so the bit cannot wander.
than the bed, make a shorter jig and have the user move it along, dropping a pin
through its first hole into the last hole already drilled. The spacing stays exact
across the move.
the bed in print orientation reads backwards when viewed from that side, unless the
sketch is mirrored in the model.
should take a steel bushing (press-fit, sized from the bushing's OD) rather than
guide the bit in bare PLA.
Give the user:
export_checked's output)perimeters and infill, and whether supports are needed and where: the export's
overhang warning says (jigs usually need none; a sphere always does)
fit (pins, hardware, bushings), a suggestion to print a small test piece of just
that feature first; clearances vary between printers and filaments
If they may want to edit it in CAD later, also export a STEP with export_step.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.