/3dcodeverse:3d-lang-cadqueryfrom 3dcodeverse
Assists in writing, refining, and repairing CadQuery static object models using the OCC B-rep kernel. Handles assembly structure, placement constraints, contact checks, and build validation.
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.
You drive a real B-rep kernel: shapes are solids with topology, and the kernel refuses an
operation it cannot make valid. The build owns the export and the cameras: never save,
render or show_object.
resultsrc/model.py is the entry. The build runs it in a subprocess (src/ first on sys.path,
so a helper module beside it imports) and reads the module-level variable result; it
must exist at import time (not under if __name__ == "__main__"). random and numpy are
seeded before the module runs; nothing may depend on time — the build runs twice (measure,
render) and both must match.result = cq.Assembly(name="<ObjectName>") with one
.add(solid, name="<PartName>", color=cq.Color(r, g, b), loc=cq.Location(...)) per plan part.
Part names PascalCase, unique, exactly the plan's (they become the GLB node names); instances
Name_0..Name_N-1. cq.Color takes 0–1 floats. Assemblies nest; a child's loc composes
with its parent's.result = <cq.Workplane> builds one solid exported as the node Object (lint WARN;
the plan's part names are then not in the GLB). A chain ending on a selector exports the
parent solid with a warning; no recoverable solid errors naming the stack types; a bare
cq.Face is "contains no solid".references/interface.md is the interface, executable.3dcode check-contract)loc) or at the origin and place with
loc=cq.Location(cq.Vector(x, y, z)). Export is AS AUTHORED: seat the assembly on the
ground yourself..rotate(p0, p1, deg), cq.Location(v, axis, deg), .revolve(deg),
.twistExtrude(h, deg) take DEGREES; math takes radians. The lint checks three-argument
.rotate(...) (a math.pi expression there is an ERROR).3dcode check-connectivity)detail_budget, sized from parts × instances): < 350 triangles per built object
after tessellation WARN (floor clamped to 1 500–40 000), > 20 000 per built object ERROR
(ceiling clamped to 60 000–600 000); a build over 3 s per built object (≥ 20 s) WARN;
killed at 300 s.cadquery (as cq), math, random, numpy, itertools, functools,
collections, typing, dataclasses, enum, copy, statistics, operator; anything
else WARN "may not exist in the build sandbox".os, sys, pathlib, subprocess, shutil, socket, urllib, requests,
http, ftplib, smtplib, webbrowser, ctypes, pickle, multiprocessing, threading,
importlib, OCP, OCC, ocp_vscode, cq_editor, cq_warehouse, build123d.show_object, show, open(, cq.exporters.*, cq.importers.*, .save() /
.export*() on the assembly, exit / quit.cq.Workplane("XY") normal +Z (up), "XZ" normal −Y (the front elevation), "YZ" normal
+X. .extrude(h) goes along the normal; .hole(d) cuts in −normal..box(x, y, z) is centred unless centered=(…) — centered=False puts the MIN corner at the
origin on all axes. .cylinder(height, radius) takes height first..rotate(), .translate(), .mirror() return NEW objects — assign the result.StdFail_NotDone: BRep_API: command not done and fails the WHOLE build (no GLB); the hint is
radius < 0.45 × the thinnest adjacent wall. A cosmetic fillet in try/except falling back to
the unrounded solid is the one allowed exception. A selector matching nothing raises
ValueError.Workplane("XZ") the axis (0, 1, 0) is plane-local
(world Z). .center() before a revolve moves the profile onto the axis and the kernel
refuses; .moveTo() does not.cq.Solid.makeSphere(r) without angles is a hemisphere (lint WARN);
cq.Workplane("XY").sphere(r) is full. Features under ~0.5 mm come out invalid. .text()
may raise headless (no fonts).write → 3dcode check (the build surfaces the OCC exceptions with the line; then contract and
connectivity) → fix each ERROR → 3dcode check again until no ERROR → 3dcode judge. Detail
the brief asks for is scored; a feature the kernel refused fails the build unless wrapped, and
then it is not there. The round's hand-over, the one look at renders per refine round and the stop rules are the 3dcodeverse skill's ## The loop.
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-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./3d-lang-scene-threejsUse when writing, refining or repairing a scene in three.js (language scene_threejs): the module files and their exact exports (createScene, env heightAt/buildEnv/SUN_AZIMUTH_DEG, zone build, asset build<Name>), the Y-up metre frame, imports and the forbidden list, the harness-owned src/lib toolbox, the thresholds check-placement, scene-views (exposure, camera, motion) and scene-probe measure, naming, and the 3dcode loop.Other plugins' skills for the same job