1. Skills
  2. 3D
  3. Watchable Machine Sim
3D Claude quick start

Watchable Machine Sim

A machine idea in. A working marble machine and its demo clip out.

/fp-watchable-machine-sim

What it does

A marble computer, Rube Goldberg chain or domino run in one HTML file, with real physics that runs the same every time. A demo plays itself with a following camera and labels, and you get the clip with sound.

  • Flip-flops, levers, gates, ramps and dominoes
  • Answer read from the parts, proved by a self-test
  • Self-playing demo recorded as a 9:16 clip

You bring, you get

You bring

What the machine should do and its payoff: count marbles, add two numbers, or turn a tiny push into a giant domino falling. With none, it starts from Marble Counter.

You get

The machine as index.html plus seek.js, playable from any static host, a self-test report, and a 15-20 s demo clip, 9:16 by default, with sound from the physics, mastered.

Perfect for

  • Satisfying loops
  • Marble computers
  • Rube Goldberg chains
  • Domino runs
  • Teaching binary
  • Science channel clips

How it works

  1. GATHERWhat it does and how it ends.
  2. PLANA chain table, labels and shots. Approve it.
  3. BUILDParts on a board, fixed-step physics.
  4. PROVESelf-test reads the parts for every input.
  5. RECORDCapture the demo on a virtual clock.
  6. DELIVERSync sound, master, ship page and clip.

What you need

Runs in Claude Code or a Claude app with local code execution. Needs Node.js 18+, Python 3 with numpy and ffmpeg. three.js and fonts load from a pinned CDN, so the first run needs internet.

Example prompts

BINARY COUNTER

You bring: The idea: marbles counting in binary, and a payoff at 16

Use fp-watchable-machine-sim to build a marble computer that counts to 16 in binary, ending with a big domino, and give me a 9:16 demo clip.

You get: A one-file machine with four brass flip-flops and six growing dominoes, a self-test that proves 1 to 16 read back right, and an 18 s clip with labels and sound.

MARBLE ADDER

You bring: Two numbers to add and how the answer should show

Use fp-watchable-machine-sim to make a marble machine that adds 5 and 6: the switches hold 5, six marbles roll in, and lamps show the answer.

You get: A machine whose rockers start at 5 and count six marbles, an answer read from the rockers (1011 = 11), a self-test that checks the sum, and the demo clip.

CHAIN REACTION FOR A LAUNCH

You bring: Your launch moment and what should fall or ring at the end

Use fp-watchable-machine-sim to build a Rube Goldberg chain: a marble trips a lever, opens a gate, runs a ramp and topples ten dominoes that ring a bell, as a 9:16 reel.

You get: A deterministic chain where each part acts on camera with a short label, the camera following the action, and a clip with clacks, rolls and a bell from the physics.

Not the right fit?

Not for a machine that plays a song (use Collision Music Machine (fp-collision-music-machine)) or a sim with sliders and equations (use Science Sim Lab (fp-science-sim-lab)).

Made with this skill

Pairs well with