/kernelcad-design-skills:prepare-promptfrom kernelCAD — Parametric CAD & MCP
Turn a vague user ask into a Real Object Brief before writing any geometry. The brief is the contract that all downstream sub-skills work from.
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.
A vague ask — "a wayfarer-style frame", "that bottle", "make the same one" — produces vague geometry. This sub-skill produces a Real Object Brief: a structured, numbered record of everything the reference communicates before any tool call touches the kernel.
The brief is written as a // Real Object Brief block at the top of the
.kcad.ts file, before any param() or geometry. It is the source of truth
for the entire build. Every downstream sub-skill reads from it.
A filled-in // Real Object Brief comment block, plus a list of open
questions if any critical fact (scale, material, hidden side) cannot be inferred.
Required sections, in this order:
// Real Object Brief
// Artifact: <human name> — <one-line description of what it is>.
// Reference: <relative path to the photo>.
// Scale: millimetres. <key dimension 1: name ~N mm>, <key dimension 2: name ~N mm>,
// <overall bounding box estimate>.
// Visible facts (from reference photo):
// - <Numbered or bulleted. Each item is a distinct visual element.>
// - <Separate form (silhouette) from surface (color, texture, gloss).>
// - <Include relative positions: "A is above B", "C spans the full width".>
// Hidden-side inference:
// - <What must exist that the photo does not show: case back, internal walls,
// fastener counterbores, mounting tabs, wire paths.>
// - <Infer from category: a pocket watch has a case-band, a mug has a handle
// undercut, a USB dongle has a PCB pocket.>
// Validation focus:
// - <The 3–5 visual cues you will check against each rendered view.>
// - <Name the view (front, top, right, iso) + what to check in it.>
If the reference photo has a known scale object (a hand, a coin, packaging dimensions), record it:
// Scale: millimetres. Outer frame ~130 mm wide (credit-card width for scale),
// bridge gap ~18 mm, arm length ~135 mm, total body depth ~5 mm.
If no scale cue exists, estimate from category norms (eyewear: 130–140 mm wide; bottle: 70–90 mm diameter × 200–280 mm tall; USB dongle: 20 × 10 × 6 mm). Record the norm and the uncertainty:
// Scale: millimetres. No scale cue in photo; estimated from category norms.
// Assumed 130 mm wide × 48 mm tall × 5 mm deep (typical eyewear silhouette).
Each bullet describes ONE observable thing. Bad examples (do not write these):
"Frame is black and glossy with rounded edges and also has lenses."
Good examples:
"Outer frame: black, high-gloss acetate. Silhouette is rounded-rectangular with a pronounced brow bump at the top." "Lenses: flat, grey-tinted. Set flush with the frame; no raised rim."
Separate form (shape, silhouette, relative position) from surface (color, gloss, texture). The model is built from form facts; material is applied separately.
Every real object has a back. Enumerate what the back of the reference object must contain:
If the back is visible in a second reference image, record what it shows, not what you infer.
Write 3–5 explicit checks. Each check names a view and states what correct looks like:
// Validation focus:
// - Front view: frame outline matches reference silhouette; brow bump above
// lens on both sides; bridge gap centered.
// - Top view: body has real depth (not a flat slab); arms extend laterally.
// - Iso view: gloss material reads as specular; no floating elements.
// - Score gate: silhouette ≥ 0.45, SSIM ≥ 0.30 (task-specific thresholds).
If any of the following cannot be inferred from the reference, list them at the end of the brief before starting geometry. Do not assume — record the uncertainty and pick the most defensible default:
The brief is done when:
Only then proceed to blockout-model/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
/blockout-modelCoarse 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./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.