agentleFS
yesith0106yesith0106/craft3d/skills/wireframe/SKILL.md

wireframe

Skill1 starsChanged 15 days agoMITView on GitHub

Build accurate 3D models in three.js drawn as technical illustrations: clean ink outlines with hidden lines removed, crease lines, section cuts with hatched cut faces, phantom lines for casings, dash-dot centre lines, flow lines coloured by temperature or pressure, and exploded views, on paper, blueprint or print palettes. Engines, turbines, gearboxes, pumps, mechanisms, machines and products at real dimensions, moving by real kinematics when they move, measured and photographed by a headless check loop; exports one offline HTML file. Researches the real object first, hunting for the maker's own CAD (STEP), spec tables and drawings, and builds on the maker's geometry when it is published. Use for \"wireframe\", \"line drawing\", \"line art\", \"technical drawing\", \"technical illustration\", \"cutaway\", \"cross-section\", \"section view\", \"exploded view\", \"blueprint\", \"patent drawing\", \"how it works diagram\", or recreating an object from a photo, spec or idea in that style. For shaded, realistic or worn metal use /3d-model instead.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use make-tweakable and handoff.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bluzirSkill

    make-tweakable

    Add an in-artifact floating Tweaks panel that lets the user adjust colors, fonts, spacing, layout variants live in the preview. Persists via claude-pipe pattern (pending.yaml + apply-tweaks skill).

    Also in 4 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Lines read at the size it will be seen: Read a close-up and the full view.

    line 51
  2. Very specific:

    Every axis has its centre line: Every moving part reads as whole in the section (noCut).

    line 52

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/wireframe: the drawing look

One engine with two looks; this command is the drawn one. The method, the library, the model contract and the proof are shared with /3d-model and live in the engine's METHOD.md. The drawing renderer is lib/ink.js.

First, find the engine and read the method:

ENGINE="$(cd -P "<this skill's base directory>/../.." && pwd)"   # the craft3d folder this skill sits in: the cloned repo, or the installed plugin
[ -f "$ENGINE/METHOD.md" ] || ENGINE="$HOME/.claude/craft3d"       # the skill was installed on its own, without the engine
[ -f "$ENGINE/METHOD.md" ] || git clone --depth 1 https://github.com/yesith0106/craft3d "$ENGINE"   # so fetch the engine, once
cat "$ENGINE/METHOD.md" "$ENGINE/references/drawing.md"

Read both in full before building, then references/recreate.md or references/from-idea.md. For anything real, research comes first (references/research.md): a background research agent hunting for the maker's own CAD, spec table, drawings and measured reviews, started the moment the object is named. A published STEP becomes the geometry, and a section through it (tools/step2mesh.py section) shows how the parts nest before you draw them. For a product, wooting80he is the closest example: it opens as a blueprint with a title block (info.sheet), dimension lines and callouts (annot.js), section A–A and an exploded build, all on the maker's CAD. The closest example is usually turbojet (node "$ENGINE/tools/new.mjs" ./my-model --example turbojet): it opens in the drawing look and shows every feature below. Everything below is what is specific to drawings.

Why the drawing is the harder test

A drawing shows every edge. A blade with too few sections, a casing that is a stack of overlapping boxes, a part that pokes through another: shading hides these, ink does not. So the accuracy rules in METHOD.md matter more here, not less. Build closed solids the way the part is made (turned for anything round, profile/slab for plate, blade for airfoils), never a shell of planes.

Set the look

  • info.look: 'drawing' opens the model drawn; info.palette: 'paper' (warm paper, black ink, blue section, the default), 'blueprint', 'print'. info.wear: false.
  • The viewer's realistic button (or L) still switches to shaded metal, so give parts sensible materials anyway.

The drawing toolkit (lib/ink.js and friends)

WantDo
See insidesection: {normal, from, to, value} on the model: the plane keeps normal·p <= offset; the slider runs from from (no cut) to to. Cut faces are tinted and hatched automatically.
Keep parts whole through the cutobj.userData.noCut = true (shafts, rotors, pistons, rods, valves, fasteners: drawings do not section them)
Phantom casingtransparent materials (opacity < 0.6) draw as thin grey lines behind and in front; or userData.ink = 'ghost'
Colour on the drawinguserData.ink = 'color': drawn with its own material (gas, sparks, heat). inkLine(points, {colors}) for flow lines, ramp(t) for cold-to-hot colour
Flow lines through the cutgive their LineMaterial clippingPlanes = ink.planes and set depthTest = false while the cut is open, so they run over the blades the way a cutaway illustration draws them
Centre linescenterline(A, B) on every axis of rotation (drawn in the drawing look only)
Exploded viewexploder([{obj, dir, dist, at}]), a slider 0..1; outermost parts first, along the direction they really come off
Only in one lookuserData.inkOnly / userData.realOnly (a display stand is realOnly)
Line weightinfo.lines = {sil: 2.2, crease: 1.2, ghost: 1, creaseAngle: 32, hatch: 7} (CSS px, degrees)
Blueprint sheetinfo.palette: 'blueprint' and info.sheet = {marks, title, dwg, rows}: a border, a header line and a title block, drawn by the viewer in the drawing look
Dimensions and calloutsdim(A, B, side, offset), leader(at, to, text), label(text, at) from examples/wooting80he/annot.js (copy it in): extension lines, arrowheads, values, leaders ordered so none cross; tag them inkOnly
The maker's CADtools/step2mesh.py list / section / export, tools/cadpack.mjs, unpackCad() from lib/cad.js: build on the real geometry (references/research.md)

Drawing checklist (with the shared one in METHOD.md)

  • No line noise. Stray lines across a smooth surface mean too few segments or smoothed corners. Use turned/creased so corners are sharp and curves are smooth; raise segment counts on large round parts.
  • Cut faces where the material is. A cut casing shows its wall as a thin hatched band; a solid block shows a filled section. A hatched face where there should be air means a shell that is not closed or faces that point inward (outward() fixes the winding).
  • Lines read at the size it will be seen. Read a close-up and the full view. Tiny parts that turn into scribble at full view are too detailed for it or need thinner lines.
  • Every axis has its centre line. Every moving part reads as whole in the section (noCut).
  • The cut and the explode tell the story. One frame of the section through the working part, one of the exploded view, one close-up.

Review with the same shoot.mjs loop. Add look=drawing to --query, and shoot the section at a few slider values ({"eval": "VIEW.set('section', 0.4)"}) and the exploded view.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.