/kernelcad-design-skills:blockout-modelfrom kernelCAD — Parametric CAD & MCP
Coarse parametric blockout of the primary masses before committing to detail. Establishes the bounding envelope, canonical-view alignment, and reference-image plane, then confirms the blockout is plausible before detail work begins.
Ships in kernelCAD — Parametric CAD & MCP. 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.
None: SKILL.md is the whole skill.
The blockout pass produces a coarse, parametric approximation of the object's primary masses. It is not a finished model — it is a testable hypothesis: "does this bounding envelope match the reference silhouette in all canonical views?" Only after the blockout is plausible does detail work begin.
// Real Object Brief from prepare-prompt/SKILL.md.Map each dimension in the brief's Scale section to a param(). Use the brief's
estimated value as the default:
const frameW = param('frameWidth', 130, { min: 100, max: 160, description: 'outer frame width mm' });
const frameH = param('frameHeight', 48, { min: 30, max: 70 });
const bodyD = param('bodyDepth', 5, { min: 2, max: 12 });
const bridgeW = param('bridgeWidth', 18, { min: 10, max: 30 });
All key dimensions must be params, not magic numbers. The blockout must be adjustable after the first canonical-view check without touching geometry code.
Pick the view plane that shows the most information. For most flat products, the front view is the XZ plane:
referenceImage('./reference.jpg', {
plane: 'xz',
anchor: 'origin',
scale: 'fit-bbox',
opacity: 0.35,
});
The reference image does not affect the score (it is hidden during scoring). It is for visual alignment during authoring.
One box() or extrudeRoundedRect() per major component. No holes, no
features, no material yet. Translate each into position. For symmetric objects,
build one half only and call .mirror() after the blockout check:
// primary lens+frame slab
const frameBody = extrudeRoundedRect(frameW, frameH, bodyD, 4)
.translate(-frameW / 2, 0, -frameH / 2);
// arm stubs — one side, to be mirrored
const armStub = box(50, armW, armT)
.translate(frameW / 2, 0, -armT / 2);
const full = frameBody.union(armStub.mirror('YZ'));
return full;
kernelcad render build.kcad.ts --width 1920 --height 1080 -o /tmp/blockout.png
Read the PNG back. Check against the brief's Validation focus:
| Check | Pass criterion |
|---|---|
| Front silhouette | Outer outline matches the reference image overlay within ~10% |
| Top depth | Body depth reads as non-trivial (not a slab) |
| Iso plausibility | Primary masses are in roughly the right relative positions |
If any check fails: adjust the relevant param() default and re-render. Do NOT
add detail yet — fix the envelope first.
kernelcad evaluate build.kcad.ts
The blockout must be diagnostic-free before proceeding. Zero features failing, zero errors. Warnings are acceptable if they identify deferred features.
The blockout is done when:
kernelcad evaluate exits clean.kernelcad interference reports zero pairs.Only then proceed to use-the-available-kernel/SKILL.md to plan the detail pass,
then image-replicator/SKILL.md to iterate.
param(). Magic numbers make the blockout rigid.Two paths after the blockout passes:
image-replicator/SKILL.md
for the render→score→iterate loop.kernelcad-trace-from-image/SKILL.md FIRST to extract normalized waypoints
from the photo, then image-replicator/SKILL.md.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub w1ne/kernelcad-skills --plugin kernelcad-design-skills28 skills in this plugin
/image-replicatorThe render→score→iterate loop for reference-photo reconstruction. How to invoke kernelcad render, run scoreAgainstReference, interpret per-gate numbers, and decide which gate to chase next./kernelcadkernelCAD entry decision tree — what skill to load when, universal conventions that apply everywhere. Load this FIRST; it points at the right specialty skill for your task./kernelcad-assembliesMulti-part assemblies — assembly(), parts, connectors, 7 mate types, fixed and revolute joints, .model()/.solvedModel(). Use for any model with two or more mechanical parts that need joint metadata./kernelcad-authoringkernelCAD model authoring API — primitives, transforms, booleans, sketches, path-builder, sketch-text, return-single-shape rule, conventions, CLI commands, and verification gates. Load this when writing or modifying .kcad.ts geometry./kernelcad-drawingsExport 2D engineering-drawing sheets (SVG, or a printable PDF on a standard sheet) from any model or assembly — third-angle front/top/left + isometric views with hidden-line removal, overall dimensions, and a title block. Use when the deliverable is a human-readable fabrication or review drawing./kernelcad-feaAnswer "will this part hold this load?" with solver evidence — declare a linear-static structural study with shape.feaStudy({ material, fixed, loads, minSafetyFactor? }), then run it with run_fea for peak von Mises stress, peak displacement, minimum safety factor against yield, named hot-spot regions, mesh-trust flags and stress-heatmap PNGs. A declared minSafetyFactor turns the study into a gate that fails evaluate_script. Use when sizing a bracket, mount, tab, clevis or any load-bearing part, when a load-capacity check reported beam-not-applicable, or before committing to a wall thickness or material grade.