elliottshort/mosby/shell-build
Claude Code and agent skill by elliottshort/mosby
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Builds and verifies the P2 shell of a Mosby job - walls split by datum, headers over every opening, jambs, slabs, floors, ceilings, wall caps, gables, roof facets, stairs, thresholds, ROOM empties and diagnostic cameras - by regenerating model.blend headlessly with `mosby build shell` from plan_<level>.json, the height authority, a solved roof spec and a solved stair spec, then running the eight p2_shell audits (mesh_validity, section_vs_source, envelope_closure, coplanar_faces, protrusion, headers_present, stair_routes, diagnostic_cameras) and `mosby audit gate p2_shell`. Use it whenever the task mentions building the shell, walls in Blender, headers, slabs, floors, ceilings, roof, gables, stairs, levels or datums, model.blend, the generator, or the p2_shell gate. It produces reports/p2_shell.json plus a regenerable model.blend with model.manifest.json. Requires the p0_survey and p1_extraction gates to pass first.
Install
npx vskill@latest install elliottshort/mosby/shell-buildSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as elliottshort/mosby/shell-build.
shell-build (P2)
You are turning a verified plan (P1) into a closed, audited building shell in Blender 5.2. The house run reached this point with a generator that built single-level 20 mm plates and no roof, headers, jambs, gables, caps, stairs or thresholds; iterations 17-118 were spent discovering each missing class by eye and patching it in a live scene that could never be regenerated. This skill exists so that pass one produces the whole shell and the audits, not renders, say when it is done.
Long tables (generator contract, roof spec schema, stair constraints, audit reading table, tolerances, camera recipe, house numbers) live in reference.md next to this file. Read it once per job.
0. Preconditions
mosby statusshowsp0_survey: passandp1_extraction: pass, not stale. If not, stop and load thesource-surveyorplan-extractionskill. <!-- FC-G05 -->
Why: the house built trim, gables and cameras on a wall set missing 141 polygons; everything downstream was rebuilt 3 times. <!-- FC-G05 -->
- Hooks already enforce the following, so do not repeat them as advice: every
execute_blender_code(including scripts it runs indirectly) gets a scene-identity preamble and an auto-checkpoint (guard_blender); hand edits ofplan*.json,entities/,reports/*.json,status.jsonare blocked (guard_write);blender --pythonbuilds while a required gate is missing are blocked and PowerShell>log redirection is rewritten (guard_bash); completion or delivery words without a passing gate and 3+ unobserved mutations are blocked at Stop (stop_gate); boolean modifiers andobject.joinonly warn; acts per sub-goal are counted against the cap of 6 (log_acts). <!-- FC-G04 -->
1. Height authority: every vertical number has a source
- Build the level datum table before anything else: per level and per datum zone
floor_top,slab_bottom,slab_top,wall_base,wall_top,ceiling, each withdatum_sourcein {measured (vector datum line on a section or elevation viamosby pdf datums), derived (computed from measured datums, e.g. landing underside), decision:<D-id> (a decisions.md row)}. <!-- FC-C10 --> - A generator default (2.44 m head, 0.61 m sill, 2.7 m ceiling, "typical plate") is not a source.
mosby build shellrefuses any room, opening or wall piece whose height status isdefaultorunresolved; resolve it with a measurement or a decisions.md row and regenerate. <!-- FC-C05 -->
Why: the first house extraction used 2.44/0.61/2.44 for everything and two openings stayed unresolved for 11 iterations. <!-- FC-C05 -->
- Source precedence for heights: wall section (3/4 in) > building section (3/8 in) > elevation dimension string > per-opening tag > plan label > note. Adopt the highest-ranked value, write the conflict row with the adopted default, continue; never wait for the user. <!-- FC-A01 -->
Why: the house stalled ~45 min on precedence and the owner's answer equalled the team's own table. <!-- FC-A01 -->
- Datum zones are polygons in the plan (
floor_regions,ceiling_regions,wall_cap_regions, each withsource), never x-thresholds, room-name tests or literals in scripts. A z literal with 3+ decimals in any script you write for this job is a defect. <!-- FC-C10 -->
Why: garage -0.4572, L2 3.683/3.2258 and ceilings 5.969/6.731 lived in five modules; one datum change meant five edits. <!-- FC-C10 -->
- Record which surface a dimensioned height names:
datum_meaningin {cover_top, underside, fascia_bottom, bearing}. <!-- FC-D08 -->
Why: the 6.604 m awning datum was read as covering underside; it was the fascia bottom. <!-- FC-D08 -->
2. Pre-build specs the generator consumes (write these before mosby build shell)
- Roof spec (
roof_spec.json, section 5): solved planar facets, skin thickness, edge classes, underlaps,decisions[]. The builder clips walls, ceilings and gables to these planes; nothing is clipped before the spec validates. <!-- FC-D08 --> - Stair spec (
stair_spec.json, section 6): flights, landings, rise and going,floor_voids,ceiling_voids,replacement_floors,wall_cap_regions, under-stair ceilings,walk_routes. The shell consumes the stair spec, never the reverse. <!-- FC-C06 --> - Opening records carry
rough_width,clear_width,leaf_count,hinge_end,swing_dir,head_abs,header_required,height_statuswith sources (from the P1openings_completeaudit). Windows carry rough and clear too; the width audit is not door-only. <!-- FC-C03 -->
Why: 32 doors were narrowed ~50.8 mm per side because one width field mixed two concepts; the 24 windows were never measured. <!-- FC-C03 -->
leaf_countcomes from matched swing arcs, leaf polylines or the tag prefix (2-2680); fallback 1 when clear <= 1.10 m, elsepair_ambiguouslisted for a decision; neverwidth > 1.20. <!-- FC-C02 -->
Why: D14 at 1.2192 m was a coin flip in the house builder. <!-- FC-C02 -->
- No two opening closer rectangles on one wall run may intersect, and glazing may not run into a door's rough edge;
mosby build shellrefuses. <!-- FC-C04 -->
Why: W07 (13.49-15.79) spanned D16 (14.98-15.74) until it was narrowed by hand at iter 5. <!-- FC-C04 -->
- Doorless mouths (a room-boundary or virtual-wall segment > 0.60 m not covered by the wall union, under an upper-level wall footprint) get a header record
{polygon, bottom = ceiling at mid, top = upper wall base, source: derived}. <!-- FC-C01 -->
Why: two such mouths showed a 3.048-3.683 m open band and were hand-typed boxes in the house. <!-- FC-C01 -->
- Wall cap regions come from sweeping every walk route and landing as a 0.60 m x 2.10 m envelope against every wall prism; each hit becomes
{polygon buffered 0.05 m and snapped outward to the nearest wall edge, wall_top = landing underside or lowered floor, source}(recipe in reference.md E). <!-- FC-C07 -->
Why: a cap ending at the wall face left a WALL004 sliver at y 13.8399 that hit the body sweep 9 times. <!-- FC-C07 -->
- Voids and replacement floors share one record; a replacement floor overlaps its void edge by >= 0.01 m. Every door's crossing line (wall_thickness + 0.20 m) must be covered by floor + threshold polygons at the door datum. <!-- FC-C11 -->
Why: D08 had a 60.4 mm missing strip at the door plane and the foot ray fell 0.555 m to a garage ceiling. <!-- FC-C11 -->
3. Run the generator
mosby build shellruns headless (blender -b) againstmodel.blendby default (job.jsonblender.target), regenerates the whole shell fromplan_<level>.json+ datum table + roof spec + stair spec + decisions, and writesmodel.manifest.json(generator version, plan/roof/stair/decisions hashes, counts by role). <!-- FC-G15 -->
Why: the shipped house generator was imported by 0 of 316 scripts and no manifest ever existed, so the model could not be regenerated after iter 18. <!-- FC-G15 -->
- To view the result in the user's Blender, reload the saved file with a snippet containing
# mosby: reload, or runmosby blender probeto confirm which instance and file you are looking at. <!-- FC-H01 -->
Why: two Blenders on one port twice produced a fresh default 'Scene' minutes after a build. <!-- FC-H01 -->
- Keep the live viewport in SOLID shading for the rest of the session; material checks go through
mosby render batch. <!-- FC-H03 -->
Why: Material Preview after scripted mesh replacement crashed Blender 5.2 (~11 min downtime plus a re-render). <!-- FC-H03 -->
- Every object the generator emits carries
mosby_role,mosby_level,mosby_id(position hash, not cluster order),mosby_source,mosby_datum_z,mosby_wall_base/mosby_wall_top,mosby_decisions,mosby_proof; walking surfaces carrymosby_walking_surface=Truewithmosby_walking_surface_z. Audits scope by role, never by name prefix alone. <!-- FC-B11 -->
4. What a COMPLETE shell contains (generator contract; full table in reference.md A)
- Walls as prisms from the P1 wall union PLUS every opening span rectangle, split by datum zone and cap region so stacked pieces share one coordinate; each piece records
wall_base/wall_top. Walls run from the floor datum to the underside of the next floor or the roof, never to a "plate height" with plates sitting edge to edge. <!-- FC-D05 -->
Why: independent 80 mm ceiling plates and 125 mm substrates left a 395 mm open cavity and a 35 mm slit under 88 upper walls. <!-- FC-D05 -->
- A HEADER_ solid over EVERY opening and doorless mouth: bottom =
head_abs, top =wall_topof the containing piece, footprint = opening rectangle minus wall union, clipped analytically to the roof. Headers are pass-one objects, never a repair. <!-- FC-C01 -->
Why: all 37 doors showed a dark band from head to wall top for 15 iterations; windows were correct, which hid the pattern. <!-- FC-C01 -->
- JAMB_ liners of thickness (rough - clear)/2 placed OUTSIDE the clear span; the wall is cut with
rough_width; the leaf is clear minus 6 mm. Rejectrough < clear. <!-- FC-C03 --> - SLAB_ per level stopping at the inner wall face (or inset >= 10 mm from the facade) so walls own the facade skin. <!-- FC-D06 -->
Every SLAB_ and exterior SITE_ paving underside sits within 5 mm of the ground plane or graded terrain; where the ground falls away, a foundation prism fills the gap (protrusion reports floating slabs as gap). Why: the house slabs and patio paving floated above a flat ground plane until a site pass at iteration 29. <!-- FC-HM06 -->
- FLOOR_ (finish top) per datum from the merged occupied footprint minus the evaluated wall union, partitioned by floor regions, minus voids, plus THRESH_ strips (
rough_width + 0.11bywall_thickness + 0.20); floors touch wall faces within 2 mm and never buffer into them. <!-- FC-D14 -->
Why: per-room buffer(0.018) floors left 103 perimeter gaps and 13 duplicate tops. <!-- FC-D14 -->
- CEIL_ per datum from the same merged footprint minus wall union, partitioned by
ceiling_regions, minusceiling_voids, clipped where roof underside minus skin <= datum; plates butt exactly, never overlap; thickness >= 40 mm. <!-- FC-D14 -->
Why: 21 ceiling objects duplicated 1.564 m2 and a concave corner needed two correction prisms. <!-- FC-D14 -->
- Wall caps under landings and over lowered passages from
wall_cap_regions(section 2.7). <!-- FC-C07 --> - GABLE_ infill = (wall footprint intersect exterior band), bottom = EVALUATED top of the wall piece below (0.01 mm grid), top = roof underside from the spec. Concealed backing walls behind bays or dormers are added from the elevation line with
concealed=trueand a source (or an open question when no elevation exists). <!-- FC-D07 -->
Why: constant gable bottoms left a seam over the 2.6708 m garage walls and 83 gables overlapped wall bodies by 18-28 mm. <!-- FC-D07 -->
- ROOF_ facets built from the spec planes with skin thickness, plus underlaps, plus
edge_classesstored for P3. <!-- FC-D09 --> - STAIR_ assemblies from the stair spec with treads and landings tagged as walking surfaces and stringers proven below tread undersides (section 6). <!-- FC-C08 -->
- ROOM_ empties (one per room, at the label point, with datum props) as the scene index, in collections
Mosby/<Level>/<Role>. <!-- FC-H12 --> - CAM_ diagnostic cameras: upward views at every ceiling step, stair soffit and slab edge (eye 1.6-2.4 m, target >= 3.3 m, 24-35 mm lens) and low near exterior views at every roof junction and eave from the edge classes (recipe in reference.md H). <!-- FC-D05 -->
Why: 39 eye-level room cameras could not see the 395 mm cavity or the missing 4.64 m fascia; the owner's screenshots did. <!-- FC-D05 -->
5. Roof spec authoring
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/shell-build/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/elliottshort/mosby/shell-build)