/3dcodeverse:c3d-cadquery-formsfrom 3dcodeverse
Provides CadQuery kernel-native form makers, probed rules that determine build success, optional practices, and traps caught by lint/runtime wrappers. For building planned forms in src/model.py.
Ships in 3dcodeverse. 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.
Evidence warning, read it once: we have no graded CadQuery runs. The API rules below are verified against the installed kernel; nothing here is ranked by measured defect frequency.
The plan names language-neutral forms; the kernel has a native maker for most of them. These are options under their real API names, not a mapping to follow.
| form | a native option |
|---|---|
| slab / block / panel | .box(x, y, z), centered=(True, True, False) to stand on zero |
| shaft / disc / cylinder | .circle(r).extrude(h); .cylinder(h, r) takes height FIRST |
| revolved profile — vase, finial, baluster, dome, barrel | closed half-profile on "XZ" (.polyline/.spline + .close()) then .revolve(360, (0,0,0), (0,1,0)); keep the profile at radius >= 0 |
| ring / band / torus | .moveTo(R, 0).circle(r).revolve(angle, ...) — see kernel rule 1 |
| extruded outline with softened edges | outline .polyline().close().extrude(t), then `.edges(" |
| tube swept along a path | .circle(r).sweep(path); the profile plane must be perpendicular to the path start |
| tapered solid — horn, spout, mast | .circle(r1).workplane(offset=h).circle(r2).loft(), or .extrude(h, taper=deg) |
| lofted transition between sections | .loft() between profiles with matching vertex counts (circle to circle, rect to rect) |
| shell with wall thickness | .faces(">Z").shell(-t) from ONE open face; the kernel refuses it on a lofted round body — subtract a shrunken inner loft instead |
| carved cavity / slot / bore | .cut(cutter), .hole(d), .cutBlind(-depth), .slot2D(length, width) |
| faceted solid — die, gem | .polygon(n, d).extrude(h), facets via taper= or a loft between polygons |
| repeated feature — grid, ring of N, point list | .rarray(dx, dy, nx, ny), .polarArray(radius, start, angle, count) or .pushPoints([...]) before the feature |
| mirror pair | .mirror("XZ") on the piece, then place both in the Assembly |
| where a feature goes | string selectors `" |
| embossed label | .text(txt, size, depth) — may raise headless (no fonts), so try/except it |
.center() before a revolve is fatal; use .moveTo(). Workplane("XZ").center(R, 0) .circle(r).revolve(360, ...) raises StdFail_NotDone: BRep_API: command not done. The
identical chain with .moveTo(R, 0) builds a valid torus. .center() moves the
workplane origin, so the profile ends up sitting on the axis. Passing an explicit axis
does not rescue it — both forms fail.isValid() == True; the same pair with 0.5 mm
of overlap gives 1 solid. .isValid() will not catch this and neither will a render —
3dcode check-connectivity reports the second solid as a stray island. len(wp.solids().vals())
after a union or a cut catches it before a build; a through cut that splits a part also
leaves 2 valid solids.3dcode check-contract. Touching parts: a gap ≤ 2 mm is contact, overlap
2 mm is WARN, > 10 mm is ERROR (
3dcode check-connectivity; the table is inc3d-part-contact).
.shell() keeps a solid
watertight, hand-assembled faces do not.Fillets the kernel accepts. Refusal is not monotone in the radius: on a 3 mm shelled
wall a rim fillet passed at 1.4 mm, failed at 1.5 mm, passed again at 2.0 mm and failed at
3.0 mm, so "try a slightly bigger radius" is not a strategy. A conservative budget (the
hint the runtime prints after a refusal says 0.45 x the thinnest adjacent wall), few edges
per .fillet() call, and try/except around fillets that are only cosmetic is the strong
option. Whether a fillet goes before or after a boolean that touches its edge is not a rule
either way — only the build result counts. Where .fillet() is refused on a thin wall, a
.cut() with a rounded tool softens the same edge. (The claim that the limit is half the
shortest adjacent edge is false here: a 10 mm radius on a 10 mm vertical edge builds.)
Mating faces. A mating coordinate computed from the plan numbers of the face it meets lands inside the gate's contact band (flush counts) without nudging. A cutter that overshoots the face it exits avoids coplanar-face boolean failures; the coplanar case passed in this probe, so the overshoot is a habit, not a measured need.
Selectors after booleans. Edge indices reshuffle after a boolean; re-select by geometry
(">Z", BoxSelector) rather than by a cached index, and print len(wp.edges(sel).vals())
when a selector might match nothing — an empty selection raises ValueError.
Measure before you render. Print per part what the gates read — BoundingBox() extents
and zmin, len(solids().vals()), Volume(), isValid() — then the track loop: 3dcode build
-> 3dcode check-contract -> 3dcode check-connectivity -> 3dcode render-views. Volume() catches
hollow-when-it-should-be-solid, the solid count catches a split, zmin catches a floater,
all before a render is spent.
result — ERROR from lint:cadquery. It must not live under
if __name__ == "__main__":, and sys.exit() before it is set is its own error.result that is not a cq.Assembly — the whole model exports as ONE node called
Object, so the contract gate reports every plan part missing. Use
result.add(solid, name="PascalName", color=cq.Color(r, g, b)) per plan part; an .add()
without name= gets a uuid node name and has the same effect..faces(">Z") leaves Face objects on the stack.
The wrapper recovers the parent solid and warns; end the chain on the solid..rotate(p0, p1, angle), cq.Location(v, axis, deg),
.revolve(deg) and twistExtrude(h, deg) all take degrees. A math.pi expression in that
slot is a lint ERROR. Also cq.Solid.makeSphere(r) without angle arguments builds a
hemisphere (measured: z extent half of x and y); use cq.Workplane("XY").sphere(r).More probe results and the failing/passing chains: references/kernel-probes.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gaoypeng/3dcodeverse --plugin 3dcodeverse29 skills in this plugin
/3dcodeverseUse for ANY request to make, measure, judge or improve a 3D thing in code: a model, object or prop, a mechanism or robot with joints, a scene or environment, a shader or OpenGL effect — in Blender bpy, CadQuery, Three.js, URDF, GLSL or moderngl. This is 3D coding with the 3dcodeverse plugin: raw executable 3D code that the 3dcode instruments build, measure, render, gate and score. First step, all in ONE read: this file, skills/3d-lang-<language, hyphenated>/SKILL.md and skills/3dcodeverse/references/plan-<static|articulated|scene|graphics>.md (urdf_blender: also skills/3d-lang-blender/SKILL.md and plan-static.md, which it builds on); no c3d-* skill until a 3dcode finding or score item names its topic./3d-lang-blenderUse when writing, refining or repairing a static_object in Blender bpy (language blender): the files and builder names the lint expects, the Z-up metre frame, naming, the sandbox (allowed imports, forbidden bpy calls), the exact thresholds check-contract / check-connectivity / detail_budget measure, what the GLB exporter keeps, the Blender 5.2.2 API traps, and the 3dcode loop that ships it./3d-lang-cadqueryUse when writing, refining or repairing a static_object in CadQuery (language cadquery): the module-level `result` assembly the wrapper reads, named parts and instances, the Z-up metre frame, the lint's import and call lists, the thresholds check-contract / check-connectivity / detail_budget measure, the OCC kernel facts that fail a build, and the 3dcode loop./3d-lang-glsl-shaderUse when writing, refining or repairing a graphics-track fragment shader (language glsl_shader): the files (one include file per layer, pasted above shader.frag), the uniform block the build prepends (never redeclare it), the two entry points, the gl-frames gate thresholds (NaN, black/blown, static, flicker, low detail) with their score caps, the lint's GLSL 330 rules, the feedback buffer, the judge's named defects, and the 3dcode loop./3d-lang-opengl-pythonUse when writing, refining or repairing a graphics-track moderngl program (language opengl_python): the two entry points setup/render and their exact signatures, the sampled-time trap (render is called at t = 0, 1, 2.5, 4, 6 s, in any order), the final pass into the supplied fbo, the AST lint's import allow-list and forbidden calls, the moderngl facts that decide whether the build runs, the gl-frames gate caps, and the 3dcode loop./3d-lang-scene-blenderUse when writing, refining or repairing a scene in Blender bpy (language scene_blender): the module files and their exact functions (env height_at/build_env, zone build, asset build_<snake>), the ctx every builder receives, the Z-up frame and the Y-up plan conversion, allowed imports and the lint's forbidden table, Blender 5.2 API facts, what Cycles does with what you build, motion as keyframes/drivers, the placement and frame gate thresholds, and the 3dcode loop.Other plugins' skills for the same job