/3dcodeverse:3d-lang-urdf-blenderfrom 3dcodeverse
Models articulated objects (robots, mechanisms) using Blender bpy for meshes and native URDF for joints. Enforces frame conventions, FK consistency checks, joint sweeps, and clearance thresholds.
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 model a MECHANISM, judged while it moves. Links are bpy objects named exactly as the URDF links; joints are native URDF: the origin in the PARENT link frame, the axis in the joint frame that origin sets up. The build owns the export and the pose sweep.
src/model.py pure bpy (3d-lang-blender's sandbox and lint apply): per link, the object named exactly as the
link plus anything parented under it, built in WORLD coordinates at the REST pose (= q = 0).
src/robot.urdf links + joints; every link has ONE <visual> and ONE identical <collision>,
geometry <mesh filename="meshes/<link>.glb"/>, origin = −(link frame).
The build runs model.py headless; takes the object named <link> plus everything parented
under it as that link's mesh (the wrapper joins them); exports artifacts/meshes/<link>.glb
with WORLD coordinates baked in; lints the URDF; checks that FK at q = 0 puts every mesh back
where you authored it within 1 mm (else the build FAILS as FkInconsistent and prints the
corrected <origin>); fails on a rest-pose penetration deeper than 5 mm (RestPenetration);
sweeps every joint (3dcode joint-sweep); renders q = 0 plus every joint at both limits for the
judge; builds object.glb with one node per link. A link no object matches fails the build
(with a did-you-mean for a case / snake_case mismatch); a visible mesh no link claims fails it
too (parent it under a link's object or add a <link>). <collision> missing or different from <visual> is a WARN: the VISUAL mesh is collided.
references/interface.md is one hinge, end to end.
3dcode check-contract
compares every link's bbox with the plan's: max(10 mm, 10 % of the planned extent) per axis).rest says otherwise). The judge sees q = 0 and both limits of every joint.rpy="0 0 0": link frames are then world-aligned and the arithmetic
below is subtraction. A rotated origin is accepted (lint INFO) but the visual/collision
origin must then be the full inverse of the link's FK transform — the FK check prints it.<joint><origin xyz> = pivot_child − frame_parent (a child of the root: just its pivot; a
handle on a door: pivot_handle − pivot_door).<visual> AND <collision> <origin xyz> = −pivot_link (root: 0 0 0), because the mesh
holds world coordinates and the link frame sits at the pivot. The build verifies this
numerically and prints the numbers when it is wrong.<axis xyz> is a unit vector in the JOINT frame (world-aligned with rpy="0 0 0"): the world
direction of the hinge line or slide (non-unit: normalised, WARN; missing: 1 0 0, WARN).
Sign: positive q must move the child the way the plan's motion word says — the
motion_direction gate moves the joint positively and checks the child's centroid
displacement within 60° of that word. Wrong way: negate the axis; never swap lower/upper
(q = 0 must stay the authored rest pose).-3.14 / 3.14 placeholders: the sweep poses both ends, and a hinge that can swing through
its own housing is a modelling error it will find. revolute / prismatic need
<limit lower upper effort velocity/> with
lower ≤ 0 ≤ upper (lower = plan.lower − rest, upper = plan.upper − rest); a missing
<limit> is a load ERROR. continuous: <limit effort velocity/> only. fixed: no
<limit>, no <axis>. Lint WARNs: lower == upper, a revolute range > 2π (use
continuous), a <limit> without effort/velocity.meshes/<link>.glb stem, case-sensitive, a plain
identifier (Door.001 means two objects shared a name); world is reserved (ERROR); name the
part, not its state (door, not door_open: WARN). snake_case of the plan parts
(PascalCase accepted). Copies of a plan part are separate links <part>_1..n with their own
joints <joint>_1..n. Joint names: the plan's, unique.3dcode joint-sweep)continuous: 0, ±π/2, π); 8 seeded random full-body combinations when more than one joint
moves. <mimic> followers follow their driver.fixed joints are one rigid group. A non-watertight link
gets an estimated depth ([approx: non-watertight mesh]).fixed child within 2 mm of its parent (ERROR beyond); a hinged /
sliding child's mesh within 10 mm (WARN beyond, ERROR beyond 30 mm; a prismatic child already
inside its parent's bbox is exempt).3dcode check-connectivity reports a fragment inside a link smaller than 5 % of its largest
extent as a stray island.model.py: the blender skill's lint, plus exit() / quit() ERROR, input() ERROR,
time.sleep / while True WARN; every link name must appear as a string literal in model.py
(WARN otherwise). URDF: no <gazebo>, <transmission>, <sensor>, xacro, package://,
mesh scale (WARN), inline primitives (ERROR: visual geometry must be a <mesh>). Inertials
optional. <mimic joint="..." multiplier="..." offset="..."/> IS honoured — one per follower
of a one-input mechanism (a coupling naming no joint, itself, a fixed joint, or closing a loop
is a lint ERROR). No triangle-budget gate; the build is killed at 300 s.
write → 3dcode check (lint, FK at q = 0, rest penetration, the joint sweep, connectivity,
contract) → fix each ERROR → 3dcode check again until no ERROR → 3dcode judge. A sweep ERROR
blocks the round whatever the geometry looks like; 3dcode joint-sweep --joints J alone re-tests
one joint after its fix. 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
urdf, blender, articulated-objects, robot-modeling, 3d-printing
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