/resin-print-prep:chitubox-support-injectionfrom resin-print-prep
Write native, EDITABLE supports (and raft bridges) directly into CHITUBOX project files (.chitubox) by injecting reverse-engineered support records - so externally generated supports behave exactly like Chitubox's own (selectable, movable, deletable, overlap rules respected). Use whenever the user wants to add/import supports into Chitubox from outside, edit .chitubox files programmatically, understand the .chitubox format, or wire a support generator into a Chitubox workflow. Also use when a new Chitubox version needs the format re-verified.
Ships in resin-print-prep. 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.
STL cannot carry support semantics -- anything imported becomes plain model geometry. The only way to hand Chitubox supports it will treat AS supports is to write its own project format. This skill documents that format (reverse-engineered, CHITUBOX Basic 1.3.0) and provides a validated injector.
Read references/chitubox-format.md before touching bytes -- it is
the complete field map, the list of known unknowns, and the validation
history. The injector is ${CLAUDE_PLUGIN_ROOT}/scripts/chitubox_inject.py
(pure Python + numpy; read its docstring for the API and for which
operations are Chitubox-validated vs merely geometry-verified).
Project(path) -- it self-checks record contiguity and
pointer uniqueness, and refuses on drift.clone_support() (validated) for translated
copies; make_bridge() (validated) for raft connections between
feet; from-scratch segment meshes are NOT yet validated -- prefer
cloning until they are.write() to a NEW file (never overwrite the user's project), have
the user open it and verify: loads, correct support count, new
supports selectable/movable/deletable, slices.Never author files from scratch: clone + patch means every byte we do not understand stays exactly as Chitubox wrote it. The pointer graph is small (one index, one pointer to it); everything else is offset-stable under append-and-shift. This is what makes the approach robust despite the format being only partially mapped.
Re-run the specimen ladder from the reference doc: empty project ->
+model -> +1 support -> move that support -> +2nd support (raft appears)
-> magic-support a rotated model. Diff each step. The record magic,
72-byte stride, and index pair are the things to re-locate first; the
Project parser's asserts are designed to fail loudly on drift.
The sibling skill support-placement (currently a design-phase draft) generates support descriptions — island detection, density sampling, routing, raft MST — that this skill injects. Until it ships, use manually specified or cloned support positions.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hughescr/claude-code-config --plugin resin-print-prep4 skills in this plugin
/decimate-for-printReduce a dense mesh (or a whole folder of STLs) to exactly the detail a resin printer can express, using error-bounded selective decimation in Blender via the Blender MCP - protects thin features, verifies against the original surface, then exports. Use whenever a slicer (Chitubox/Lychee) is slow or choking on a huge STL, a mesh has "too many polygons/faces", files are tens of MB, or the user wants meshes "reduced", "simplified", "optimized", or "decimated" for printing - and for batch-processing minis folders. Assumes mesh is otherwise sound; for broken meshes run prep-mini first./prep-miniFull workflow to take a problematic 3D mesh (STL/OBJ/blend) and make it resin-printable in Blender via the Blender MCP - inspect, orient, union shells, repair geometry, scale to tabletop size, error-bounded decimate, and export STL. Use this whenever the user wants to "prep", "fix", "clean up", or "make printable" a mini/model, mentions non-manifold errors, slicer problems, wrong orientation/scale, multi-shell kitbashes, or asks to get a mesh ready for Chitubox/Lychee - even if they only mention one symptom, the full sweep catches the rest./support-placementDRAFT (design phase): compute resin-print supports algorithmically - engineered sizing from cured-resin mechanics instead of fixed palettes, scar-cost-aware placement, articulated/braced routing - emitting natively editable Chitubox supports via the chitubox-support-injection skill. Use when generating supports outside a slicer, when designing/iterating this generator, or when reasoning about support mechanics (peel loads, green-state resin, slenderness/bracing).