/3dcodeverse:3d-lang-blenderfrom 3dcodeverse
Provides conventions, lint rules, and build pipeline for authoring static 3D objects in Blender bpy. Covers file layout, naming, Z-up metre units, sandboxed imports, export to GLB/STL, and quality checks.
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 own the mesh: every part is authored geometry with the exact name the plan gives it. The build owns the scene setup, the export and the cameras: never save, render or add lights.
src/model.py — the entry: imports each part's builder and calls it ONCE (a builder called
twice builds Name.001).src/parts/<snake>.py — one per plan part (SeatCushion → seat_cushion.py) defining
build_seat_cushion() -> bpy.types.Object: builds the part at its WORLD pose with its exact
name, links it to bpy.context.scene.collection, returns it; instances Leg_0 … Leg_N-1 are
built in that one file and returned as a list. A part file only DEFINES (a module-level call
builds twice: lint WARN); a part file model.py never imports is never built (WARN); a builder
not named build_<snake> is a lint ERROR. src/ is on sys.path
(from parts.seat import build_seat); src/parts/_<name>.py is a shared helper. A single
src/model.py with no src/parts/ is accepted (the lint then expects the part names there).blender -b --factory-startup on an EMPTY scene, takes a census, exports
artifacts/object.glb (Y-up) + object.stl with modifiers applied; errors come back as
src/parts/<file>.py:<line>. random, numpy and mathutils.noise are seeded before your
module runs, so draws repeat from build to build.references/interface.md is the interface, executable.3dcode check-contract)0.45; a measured bbox of 450 × 500 × 900
means the plan was typed in mm). The exporter maps to Y-up itself: do not pre-rotate.bpy.ops.object.origin_set changes what is measured.check-contract, the census)obj.name exactly the plan's PascalCase; a merged
mesh reports every other part missing, a misspelt name is an ERROR. Instances
<Name>_0 … <Name>_N-1; Leg.001 means two objects claimed one name.bpy.ops.object.join inherits the ACTIVE
object's transform (lint WARN without one).bpy.context.scene.collection;
every visible object exports — delete cutters and guides or hide_render /
hide_viewport / hide_set(True) (an unapplied boolean still evaluates with a hidden
cutter). A curve exports only with bevel_depth > 0.check-contract, 3dcode check-connectivity)tol = max(1 cm, 10 % of the planned extent); past tol WARN, past 3 × tol ERROR, with the per-axis delta.
Instances are measured on extents (each copy or their union); a wrong copy count is a WARN.2 mm is interpenetration (WARN), 10 mm with ≥ 2 % of one part's surface inside the other an ERROR (score cap 0.70). Every part must reach the ground-touching component through contacts: a floating part is an ERROR (cap 0.60) whose finding prints the fix. Fix a gap by moving or extending the part, never with connector sticks.
detail_budget, sized from parts × instances): < 350 triangles per built object WARN
(floor clamped to 1 500–40 000 total), > 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.
Per-vertex Python loops over large meshes hit the limit — foreach_set, modifiers, fewer
segments.bpy, bmesh, mathutils, bpy_extras, math, random, numpy,
itertools, functools, collections, typing, dataclasses, colorsys, statistics,
operator, enum, copy, sys, os, __future__, your parts.*. Else WARN; pathlib,
subprocess, urllib, requests, socket, http, shutil, ctypes, pickle ERROR.bpy.ops.render.*, bpy.ops.export_* / import_*, bpy.ops.wm.*,
bpy.ops.image.save, bpy.data.libraries.*, open(, os.system / file-IO os.*,
subprocess.*, shutil.*, network, exec / eval / __import__ / input(). WARN:
cameras, lights, worlds, render settings, scene.camera, scene.world, bpy.ops.view3d.* /
bpy.ops.screen.*, sys.exit.Base Color, Roughness, Metallic, Alpha, Emission Color +
Emission Strength, Specular IOR Level, Transmission Weight, Coat Weight,
Sheen Weight, Subsurface Weight; the pre-4.0 keys (Specular, Transmission,
Emission, Clearcoat, Sheen, Subsurface) raise KeyError (lint ERROR). mat.use_nodes
is deprecated (every material has a tree). Transparency: mat.surface_render_method = 'BLENDED'
(mat.blend_method still exists on 5.2.2 but is legacy).obj.data.materials.append) +
polygon.material_index (every polygon starts on slot 0); the census warns on unused slots
or an index past the last slot — that warning means the assignment did nothing and the part
exports in one colour.bpy.ops.* needs bpy.context.temp_override(object=obj, active_object=obj, selected_objects=[obj]);
the dict-override form was removed in 4.0 (ERROR). bpy.context.object / selected_objects
are unreliable headless — keep your own references.bmesh.ops.create_* centres on the origin and needs no context; bpy.ops.mesh.primitive_*_add
defaults to size=2 — pass size=1 with scale= (else the extents double, WARN), then
transform_apply(location=False, rotation=False, scale=True) with all three keywords (an
omitted keyword defaults to True and bakes the location, WARN). Keep obj.scale at 1 by
export time: nothing resets it, and a scaled object is exported and measured scaled.bm.verts[i] / bm.faces[i] need ensure_lookup_table() after from_mesh or any topology
op (IndexError). create_cube / create_cone return only verts.modifier_apply needs
temp_override and a single-user mesh (obj.data = obj.data.copy() first). Boolean solvers MANIFOLD / EXACT / FLOAT
('FAST' raises); a cutter coplanar with the face it cuts fails silently.use_auto_smooth / auto_smooth_angle (use polygon.use_smooth or
shade_smooth_by_angle), Mesh.calc_normals(), mod["Socket_2"] = v
(getattr(mod.properties.inputs, "Socket_2").value = v). Removed and NOT linted:
calc_normals_split(), edge.crease / edge.bevel_weight (crease_edge /
bevel_weight_edge attributes), scene.node_tree, bgl, gpu.types.GPUShader(...).
BLENDER_EEVEE_NEXT is not an engine id on 5.x (lint WARN; render settings are the build's).blender_glb)When this workspace builds a hero for a scene plan: nothing outside the asset — no ground plane, no environment. A moving part (only when the asset's description names one): keyframe that part's OWN rotation/location with its origin at the pivot (an Empty is not a part); the build runs at the factory 24 fps, so a key on frame f lands at t = f / 24 s — key frame 0 and frame 36 (t = 1.5 s, the scene's second sampled time) with the pose differing ≥ 0.15 rad or ≥ 0.05 m; the GLB carries the action as a clip the scene loops, so end where you start.
write every part file → 3dcode check (build, contract, connectivity, budget) → fix each ERROR at
the file:line or part it names → 3dcode check again until no ERROR → 3dcode judge. No
render-sheet before the first judge: isolate --part X and cross-section answer "is this
part where I think it is" from numbers, faster than a look. A clean simpler object beats a
richer one with a visible defect: clear the ERRORs, then spend on the brief's detail.
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
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-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./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