Two SVGs, one keychain
A student can design a base and top artwork in a vector editor. The tool gives them height and preserves placement.
Our main build story01 / SEE THE RESULT
Watch what we asked, what AI returned, and why the next request changed.
For this lesson, vibe coding means describing, trying, and revising software with an AI coding assistant. People still decide what to build and how to check it.
Look first: what decisions had to happen before two flat drawings could become this keychain?
“I’ll show the result for a minute, then rewind. My experience helps me notice the decisions hidden inside something that looks simple.”
Ask: which choices came from students, which from a teacher, and which needed a technical check?
Open the real keychain workshop if time allows, then return here. Keep the tool tour to 60–90 seconds.
OUR RECURRING EXAMPLE
Building the software: a person describes a task; AI helps write a candidate; the person tries it, gathers evidence, and asks for a revision. That is the back-and-forth we are studying.
Making an object: a student uploads drawings and chooses settings. The browser runs the code already written to build the model. Those drawing tools do not need an AI call.
The conversation replay and practice reply here are prepared teaching examples. They do not generate a live AI response.
02 / FIND THE NEED
The project grew because students and a teacher kept noticing the next useful thing.
A student can design a base and top artwork in a vector editor. The tool gives them height and preserves placement.
Our main build storyA failed import left an earlier model visible. That made the screen easy to misread.
Our debugging storyStudents needed a path from xTool artwork to an editable CAD sketch, with the right size.
Our evidence storyTry: name a task you find awkward. Say who is doing it, what they want, and where they get stuck.
“Before I ask for a feature, I try to describe the task. ‘A student wants to keep their drawing’s placement’ gives us more to work with than ‘make this better.’”
Ask: what would the student be able to do afterward?
These cases come from the Flexi Forge development conversation and the project’s implementation notes. The small demonstrations in this lesson are labelled reconstructions, rather than screenshots of earlier versions.
Other student needs led to solid separate items, Fall characters, multicolor export, and optional edge finishing. We’ll keep returning to three examples so we can see how the decisions connect.
03 / BORROW EXPERIENCED HABITS
Years of practice become questions you can learn to ask.
Make a choice: which first version lets us learn something useful sooner?
“I can imagine a whole CAD program. But two drawings, two heights, and one export give us a task we can finish and inspect. A small version makes the next decision clearer.”
Ask: what could we leave for later without losing the student’s goal?
A SCOPE DECISION
Choose one to see the tradeoff.
Scope is the work included in this version. A constraint is a rule the solution must respect, such as keeping the keyring hole open.
04 / FOLLOW THE CONVERSATION
Slow down five exchanges from the keychain’s development.
Select a turn. Read the request and AI response, then explain what you would inspect before continuing.
Pause: which of the assistant’s added choices would you inspect first?
Describe the need. Read the result. Try an example. Send a more specific follow-up.
“I’m comparing what we asked for with what the assistant actually did. Sometimes I need to answer a question; sometimes I need to report a failure; sometimes I need to ask for evidence.”
Ask: what fact makes the next request useful? Do not judge it just by how polished it sounds.
Discuss two turns together. Let pairs choose another turn and explain the next move.
A brief describes the person, goal, one success example, constraints, and a check. The first brief can be small. Inspection and conversation reveal which rules need to become more specific.
Example: two SVGs; 2 mm each; preserved placement and hole; report clipped artwork; inspect a 4 mm model. The later multicolor brief adds named parts and filament assignments.
RECORDED DEVELOPMENT · SHORTENED REPLIES
Turn 1 of 5 · A small first version
“user can upload two svgs” · “2mm for each level”
The assistant added separate base and top uploads, a 2 mm default for each, alignment choices, a preview, and a fused STL export. It described preserving holes and trimming unsupported top artwork.
The first result made a useful single-color keychain. It also introduced decisions the short request had left open: drawing coordinates, centering, and clipping.
Try the candidate before adding more. A concrete example reveals whether the assistant’s choices match the student’s task.
Use the 2 mm + 2 mm example. Show the actual total height and keyring hole. Explain what happens if the top extends beyond the base.
This is a shortened account of the recorded exchanges. Observations and sample follow-ups make the reasoning teachable; they are not a verbatim transcript or a claim about private thoughts.
05 / PROTECT WHAT WORKS
“lol dont break our site.”
Actual teacher request before the SVG → DXF addition
The new converter got its own page and code. Existing print modes and hinge mechanics stayed separate.
The DXF must carry the requested millimeter size. A curve-quality choice should not turn a closed outline into an open one.
Save the known good source version before the next change. Keep original student drawings and editable projects too.
Borrow this sentence: “Add ___, while preserving ___. Check it using ___.”
Add the SVG-to-DXF converter on its own page. Keep the existing studio, Fall, and keychain workflows working. Use one known 60 mm drawing to check output scale and closed outlines. Report which files changed and what checks passed.
Why this helps: it tells AI what to change, what to preserve, and what evidence to produce. If it changes unrelated code, ask it to explain that choice before continuing.
“New code can affect something we weren’t trying to change. I name the old behavior I care about, then check it again. That repeat check is called a regression check.”
Ask: if we add a warning, what should still happen with a valid file?
Fresh agents helped review usability and teaching explanations. A different perspective can find missed problems, but it can also be mistaken. Turn its findings into things to inspect or test; agreement alone is not proof.
06 / OPEN THE MACHINE
You can understand one instruction before understanding the whole program.
The SVG reader turns drawings into 2D shapes. The geometry engine gives those shapes thickness. The exporter writes their triangle surfaces into a model file.
Change the two heights. Predict the new total and where the top starts.
2 mm + 2 mm = 4 mm total.
“I’m tracking one value through the program. If the base is 3 mm, the top should start at 3 mm. I can use that relationship to check both the explanation and the model.”
Ask: what would happen if we forgot to move the top upward?
SIDE VIEW · TEACHING DIAGRAM
top.extrude(2)
.translate([0, 0, 2]);extrude gives a flat shape height.
translate moves it: [X, Y, Z]. Here only Z changes.
Teaching shorthand for the separate top used in 3MF. This experiment changes the diagram, not your workshop project.
Point to the code that places the top above the base. Explain it using 2 mm + 2 mm. If I change the base to 3 mm, predict the top’s start and total height. Keep the explanation tied to the actual source.
Then inspect: the top should start at Z = 3 mm and total 5 mm. Compare the explanation with this diagram and the real excerpt below. AI explanations need checking too.
const colorTop = keep(
keep(supported.extrude(topThickness))
.translate([0, 0, baseThickness])
);Reformatted excerpt from layers-geometry.js (new tab). supported is artwork clipped to the base. keep() tracks temporary engine objects for cleanup.
The fused STL uses a tiny internal overlap to join the solids. The two-color 3MF uses parts that meet at the boundary without that overlap.
07 / DEBUG THE EXPERIENCE
A student uploaded separate items in Flexi mode. The import failed, but an earlier leaf stayed on screen.
The student saw a model and reasonably wondered whether it belonged to the uploaded drawing.
Before revealing the fix: what should the preview and Download button do after a failed import?
Clear unrelated old geometry. Explain the failed import. Offer Solid / separate items. Keep export disabled until the current drawing builds.
Ordinary setting edits can retain a preview, but it must be clearly labelled previous and unavailable for export until updated.
“The student’s confusion is evidence about the interface. I need to check the sequence that produced it, then make the screen’s promise match its actual state.”
Ask: how could we distinguish ‘there is a model on screen’ from ‘this model matches my current drawing’?
SCHEMATIC RECONSTRUCTION · NOT AN EARLY SCREENSHOT
Previous leaf example
These separate shapes need Solid / separate items.
No current printable previewBefore: the visible result and failed upload send conflicting messages.
I opened the leaf, stayed in Flexi mode, and uploaded separate shapes. The import failed, but the previous leaf stayed visible. Explain the mode mismatch and make the current file’s status clear. Prevent an unrelated export. Then repeat those steps and test recovery through Solid mode.
Why this helps: AI gets a reproducible sequence, expected behavior, and a check. “Fix the preview” leaves all three unclear.
Steps: open the leaf example; stay in Flexi mode; upload disconnected items.
Expected: explain the mode mismatch and prevent an unrelated export.
Actual: the earlier leaf remains visible.
Check the fix: repeat those steps, switch to Solid, rebuild, and inspect the resulting separate items.
08 / CHECK THE HANDOFF
The SVG → DXF converter needed a drawing that another program could read at the correct size.
An outline on screen could still export with the wrong units, an open boundary, or a broken file structure.
Choose a check: what does it tell us, and what does it leave unanswered?
“The program that creates a file can repeat its own mistake in the preview. I ask a different reader to open the output, and check measurable facts like width and closed contours.”
Ask: what evidence would we still need from the actual Onshape classroom workflow?
SVG → DXF · FIXED TEACHING EXAMPLE
Useful for missing shapes, orientation, and placement. It cannot by itself prove the exported units or CAD file structure.
Recorded limit: independent DXF reopen checks passed. Direct Onshape import remained untested in that review.
Borrow the follow-up: explain this reader error, correct the smallest relevant part, and reopen the exported files again. Keep millimeter scale and closed outlines intact.
09 / MATCH THE CLAIM TO THE CHECK
| Check | What it supports | What it leaves open |
|---|---|---|
| Geometry checks | Layer heights, holes, clipping, and separate color volumes in the tested examples | Every possible student SVG |
| Independent DXF reader | Test exports reopen; units and open/closed paths can be inspected | Direct classroom import into Onshape |
| Creality Print round trip | A test 3MF retains named parts, colors, and filament assignments | Physical CFS operation and print quality |
| Physical print · pending | Fit, material behavior, and print results on the equipment used | This was still pending in the recorded review |
“This check passed for these examples. This other check still needs to happen.”
A completion message helps direct your attention. The check’s output, the file, and the student’s actual experience are evidence to inspect.
STL stores surface triangles without filament colors. Our two-color 3MF keeps Base and Raised top as aligned parts with separate assignments. Creality Print then slices the model using the actual printer and filament profiles.
A color on screen, a color assignment in a file, and a physical spool loaded into CFS are three things to check. The exported 3MF contains no printer-ready toolpaths.
The waffle-edge request led to optional outer and pocket-rim finishes in Solid mode. Large finishes can erase thin walls, so the tool checks and explains those limits. For exact selection of individual edges and a richer CAD history, the SVG → DXF route lets students continue in Onshape.
Borrow the decision: meet the immediate need, state the limits, and offer a useful handoff.
“A limit is useful information. I want students to know how we reached a conclusion, and which experiment would make us more confident.”
Ask: how would you describe the 3MF feature honestly before anyone has printed it?
The source archive’s README and tests document these earlier checks: tests/two-layers.mjs for layer geometry, tests/two-color-export.mjs for the multicolor file, and tests/onshape-dxf.py for independent DXF reading.
This lesson is a reconstruction of the development process, not a new claim that all those checks or physical prints ran today.
10 / KEEP A WAY BACK
A finished object and the instructions that made it are different things to keep.
Student project JSON stores editable drawings and settings. Website source stores the code that builds the tool. Both help future work continue.
Imagine: your next revision breaks the keychain export. What would you want to have saved?
“Before a risky change, I keep a working version and note what passed. When something breaks, that gives me a comparison and a way back.”
Ask: what should a future person know before continuing your work?
TWO KINDS OF CONTINUITY
Original SVGs + project JSON
Keep drawings, size, heights, placement, and colors editable.Source + assets + build instructions + tests
Keep a source version, what changed, what was checked, and known limits.For a new tool, begin with a small runnable example. For an existing tool, give the assistant enough current context to revise the same project.
A version is a saved state of the work. A regression is when a new change breaks something that previously worked. A regression check repeats an earlier check after the change.
11 / YOUR TURN
Practice the whole loop: a brief, an AI proposal, and your response to what is missing.
This is a scripted practice case about the keychain preview. It is not a new report of a bug in the live tool. Your writing stays on this page; copy it before leaving.
Use one observed or reported fact, the behavior you expected, a focused change, and a check. Include what must still work.
“A reply is something to inspect. I want a follow-up that refers to a concrete gap, rather than just ‘try again’ or ‘make it nicer.’”
Ask: what in the reply supports your next request? What evidence would let you finish?
In pairs, one person reads the brief; the other reads the scripted reply. Agree on the gap, then write a follow-up. With a real AI, try the candidate in a separate copy and bring back observations. Students can complete this activity without an AI account.
2 / INSPECT THIS SCRIPTED AI REPLY
“I added an orange ‘Updated’ badge. The old preview still stays on screen after a height edit. I haven’t checked the Download buttons yet.”
Case facts: the preview was built at 2 + 2 mm; the base was then changed to 3 mm; no rebuild has happened.
Choose a next move and discuss the tradeoff. Then write the request in your own words.
The reply says the earlier preview remains and Download is unchecked. After changing the base from 2 to 3 mm, “Updated” could imply the old model is current. Mark it previous and disable STL and 3MF until a successful rebuild. Preserve the SVGs, hole, placement, and colors. Repeat the edit, failed rebuild, and successful rebuild cases; report the export states and the final 5 mm height.
It names the gap, expected behavior, a focused correction, preservation rules, and evidence. Your wording can be different.
Your next request will appear here.
This activity makes no AI call and does not alter a model.
What do we know, what are we guessing, and how could we check?
12 / TAKE THE HABITS WITH YOU
Describe the person and task.
Finish enough to learn from it.
Use one concrete example.
Say what must survive.
Record steps, expected, and actual.
Use measurements and another reader.
Save the recipe and source version.
Name the next useful check.
Exit reflection: describe one AI reply, one gap you noticed, the next request you would send, and the check that would let you continue.
“The point of sharing years of experience is to make the decisions visible. You can practice these moves before you can write or understand every line of code.”
Ask: what did the human contribute, what did the AI contribute, and what remains unverified?
Preparation: open this page, choose Teacher notes, and have one drawing or keychain example ready. No student account or physical printer is needed for this discussion. Optional printing and Onshape checks are separate follow-up activities.
The case studies use the Flexi Forge development conversation and project implementation notes. Actual short request excerpts are labelled. Conversation responses are shortened summaries; sample follow-ups are teaching reconstructions. The student practice reply is scripted. Refined briefs, diagrams, and the old-preview demonstration are teaching reconstructions. Teacher think-aloud lines are suggested classroom narration. Recorded file checks do not imply a completed physical print.
Presentation pacing was inspired by the MPI vibe-coding presentation (new tab): show an example, make the decisions visible, then let learners try. This page uses its own project story and activities.