/lihfolk:roblox-blender-modelingfrom lihfolk
Guides creation of Roblox-ready Blender models with quality gates for symmetry, budgets, and export. Includes parameterised builders for houses, buildings, and stylized creatures.
Ships in lihfolk. 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; scripts run unread.
Goal: every model ships at top-tier quality, correctly scaled, within budget, and imports cleanly into Roblox Studio. A model that fails the gate or scores below the rubric is not finished.
Sources: references/quality-research.md (sourced, labelled research: Roblox docs, measured Blender 5.2 behaviour, expert practice). Helpers: scripts/lihfolk_bpy.py (tested on Blender 5.2), scripts/lihfolk_curves.py (curves, sweeps, outlines) and scripts/lihfolk_house.py (house and building modules).
In Blender MCP execute_blender_code or a headless script:
import sys; sys.path.append(r"<this skill dir>/scripts")
import importlib, lihfolk_bpy as lf; importlib.reload(lf)
lf.setup_scene() # 1 Blender unit = 1 stud
Headless: blender -b --factory-startup --python my_script.py. Never modify the user's open scene destructively; build in a new collection or a temporary scene and confirm before deleting anything that existed.
scripts/lihfolk_house.pyFor any house, cabin, cottage, shop, tower or hut, build from the parameterised builders instead of starting from scratch (import lihfolk_house as lh). The method, the scale numbers and the style-swap table are in the vault note House Construction Method - Modular Kit Workflow (06 World Building and Art).
lh.Gable(hx, eave_z, pitch) is the one roof-underside function that walls, roof, chimney and icicles all read.lh.log_walls (interlocking round logs, gable logs cut by the roof) or lh.coursed_walls (stone / brick blocks, corner bond, quoins, lintels). Both cut real openings, so interiors work later.lh.opening_footprint and lh.check_wall_layout (frames and shutters must fit between the corners). Then add lh.window, lh.door and lh.steps on a Face.lh.gable_roof (slab or shingle rows, ridge cap, optional snow with a lip) and lh.icicle_row(z_at=roof["snow_under"]). Add lh.chimney, lh.foundation and lh.plank_deck as needed.lh.MeshBuilder. Then run lh.recentre (one shared bottom-centre origin), lh.finish_modules (adds Triangulate for n-gons after the bevel), lh.gate_modules, lh.floating_shells (a whole-house scan; it must report 0), lh.render_preview and lh.export_modules.scripts/lihfolk_creature.pyUse it for any cute, soft, painted creature: a pet, critter, ambient fish or companion. It builds one fused body, a single painted texture, a light bone rig and a looping idle, all from a small JSON spec:
blender -b --factory-startup --python scripts/lihfolk_creature.py -- spec.json <out_dir> [--blend f.blend] [--no-render]
In Python, call lcr.build_creature(spec, out_dir). The method, numbers and mistakes are in the vault note Stylized Creatures - Soft Forms, Painted Gradients and Light Rigs (14 3D Modeling). The demo is LihFolk Asset Pack/Models/Creatures/Puffling/Puffling_spec.json.
Spec. The spec has these keys:
name, tris (whole creature including the eyes), texture (1024) and grid (0.025-stud SDF step).
parts, an ordered list:
loft: stations of [y, half_w, half_h, z] plus caps.cone: a, b and r: [r1, r2].ellipsoid: c and r.fin: root, tip, r: [root, tip], t (half-thickness), normal and bend.Each part also takes a blend k, op: "subtract", tag (fin, lip) and bones (a fin chain). Author parts with x > 0 once; they are mirrored. The creature faces -Y.
eyes: at, dir, r, depth and seat.
rig.spine: the midline polyline, head tip to tail tip, plus body_index and tail_names.
Optional overrides: palette, paint, anim and closeups.
Pipeline. Field (smooth-union SDF) runs surface nets, a voxel remesh and QuadriFlow to the tri budget. It keeps the +X half, projects and relaxes it, then mirrors it. QuadriFlow is retried on new seeds until there are no self-intersections or flipped faces. Eyes are seated lens shells. Normals are weighted. UVs are mirrored and overlapping, giving 2x texel density.
Budget. 2-4k tris (class creature target 5,000), one material, one UV set, a 1024 colour map and a 1024 roughness map. Fin half-thickness must be at least 0.6x the quad edge (about 0.07 studs at 3-4k tris on a 4-stud body), or the fins fold.
Bake. A Cycles EMIT bake of a procedural paint graph:
It writes <Name>_Color.png (sRGB) and <Name>_Roughness.png (non-colour), then a Principled material that uses both.
Rig. The bones are Root (no deform), then Body (root motion), then the Head and Tail* chains, plus 1-2 bone chains per fin (.L = +X). Weights are automatic heat weights; the eyes go on the head bone. Every vertex has at most 4 influences, normalised.
Animation. swim_action is a 2 s loop with a skewed sine tail wave and per-bone phase lag, plus body counter-yaw, bob and roll, and rowing fins. The first frame equals the last, and the loop error is reported.
Gate and export. lf.gate(ob, "creature", symmetric="X", seats=eyes) runs before rigging. The GLB keeps the Armature and the action, and an FBX copy is written too.
Outputs. <Name>_stats.json (tris, bones, influences, texel, gate, loop) and the review renders: hero, turntable, views, close-ups, wireframe, silhouettes, animation strips and onion skins.
Measured results. In the Puffling demo the model passed the blind panel at 8.67. The swim clip did not (5.33): its tail lag is hidden inside the round body. Give the creature a visible tail stalk, or treat the clip as a draft.
lf.render_review(ob, dir) and look at _silhouette.png. If it doesn't read at thumbnail size, fix shapes, not details.
2b. Symmetry and alignment first. If the object is symmetric by design (shields, badges, swords, bottles, doors, most props and creatures), model one half and mirror it. Centre every feature (emblems, gems, handles, guards) on the parent's axis with bounding-box maths, never by eye, and seat it on its surface (no floating, no burying). The gate checks this (symmetric=); a lopsided shield is an automatic fail, however clean its mesh.lf.finish(ob, style="soft") (1-segment bevel + harden normals + weighted normals, the stylized default), "faceted" (deliberate flat low-poly) or "smooth" (organics). More than 2 bevel segments on small props is a mistake (1 seg = 3.7x tris, 2 = 9x on a box, measured).lf.set_origin(ob, "bottom") floor props, "back" wall props, "corner" modular pieces.passed, fails, report = lf.gate(ob, cls, symmetric="X", align=..., seats=...). Any fail = fix and re-run. Never ship a fail. Besides A1-A10 it checks A15 symmetry (lf.symmetry_error; author symmetric shapes as half + lc.mirror_outline), A16 centring/seating (lf.alignment_report, lf.seated, computed on the parts before joining), A17 self-intersecting shells and A18 overlapping cap triangles / flipped faces.lf.render_review(ob, dir, features=[(name, centre, radius), ...]) (adds studio + flat close-ups of each child feature, where small cap artifacts show), LOOK at every image, then have a blind reviewer score V1-V9 (rubric review order: correctness, then artifacts, then style). Accept only >= 14/18 with no zero. Otherwise iterate. Colour stylised kits with lc.paint + lc.vertex_color_material (one white material, vertex colours).lf.export_glb(ob, path) (preferred; modifiers applied, vertex colours kept, 1 unit = 1 stud). FBX only via lf.export_fbx (prevents the 100x scale bug).lf.BUDGETS, target / ceiling)tiny 150/300 · small 600/1,500 · medium 2,000/4,000 · rock 400/1,000 · tree 2,000/5,000 · weapon 2,500/4,000 · module 800/2,000 · building 6,000/10,000 (split into modules above) · creature 5,000/10,742 · hero 10,000/20,000. Hard Roblox limit: 20,000 per mesh. Over target needs a stated reason. These budgets are proposed defaults inside sourced ranges; tune per game.
V1 silhouette reads as solid black at 64 px from every angle · V2 clear big/medium/small hierarchy · V3 confident stylized proportions · V4 consistent bevels catching light · V5 clean shading, no gradients/artifacts on flat faces · V6 2-3 dominant colours with value contrast · V7 geometry only where silhouette/shading needs it (if the wireframe looks solid, too dense) · V8 matches the kit (texel density, bevel size, palette) · V9 Studio-ready (scale, pivot, collision, flags).
Score honestly from the renders. For hero assets, or when your score is borderline (14-15), run a Quick council-method review (Art Director lens) with the four renders as evidence. Kits: review one representative piece, not every piece.
| Style | How |
|---|---|
| Stylized low-poly | Primitives -> exaggerate -> finish("soft") or "faceted"; organics: Decimate Collapse ~0.1-0.15 for rocks/trees; icosphere foliage clusters; vertex colours |
| Untextured stylized | Split by colour region or vertex colour; MeshPart.Color + Material in Studio |
| Palette atlas | One small palette PNG shared by the whole kit; UVs snapped to cells, closest filtering |
| Hand-painted | Clean UVs, bake AO, paint flat colours plus subtle light/shadow; ColorMap only |
| Realistic PBR | High->low bake, OpenGL normal, separate R/M maps, trim sheets for architecture; Future lighting |
| Voxel | MagicaVoxel -> greedy meshing -> vertex colours; never thousands of Parts |
Kits: build modular pieces on a stud grid (multiples of 1, 2 or 4 studs), shared bevel width, shared palette, origin at the grid corner, so they snap in Studio.
export_apply=False (the default) silently drops bevels and weighted normals. lf.export_glb handles this.lf.export_fbx uses FBX_SCALE_UNITS.mesh.use_auto_smooth no longer exists (Blender 4.1+); use shade_auto_smooth / finish("smooth").If the pack is installed (LIHFOLK_ASSETS env var or ~/LihFolk-Assets), check its original LihFolk models and materials before modelling from scratch; pack assets already passed this gate. See <base directory>/../../assets/README.md (resolve to an absolute path).
Whether custom normals survive import, glTF double-sided flag handling, FBX forward axis. See references/quality-research.md section 7.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lihfolk-cy/v2-vault --plugin lihfolk2 plugins ship this exact skill · first indexed Oct 30, 2026
22 skills in this plugin
/council-methodLihFolk Council: blind multi-agent verdict for high-stakes Roblox decisions, ship-readiness, "be objective", "second opinion". Not for routine coding./lihfolkLihFolk Roblox knowledge router (1,300+ notes; "check the vault"). Use before non-trivial Roblox work: Luau, Studio, remotes, data, UI, building, VFX, animation, design, money, performance, security, publishing./lihfolk-assetsFind and import assets from the local LihFolk Asset Pack (models, materials, skies, animations, VFX). Use for "LihFolk asset", "what assets do we have".Other plugins' skills for the same job