<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: aditwisteria</title>
    <description>The latest articles on DEV Community by aditwisteria (@aditwisteria).</description>
    <link>https://dev.to/aditwisteria</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4258788%2Fe5bc909a-6b84-431a-914c-eead5a8955ab.png</url>
      <title>DEV Community: aditwisteria</title>
      <link>https://dev.to/aditwisteria</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aditwisteria"/>
    <language>en</language>
    <item>
      <title>Spec-Driven Frankenstein: How Kiro Stitched a Game Out of Five Browser APIs</title>
      <dc:creator>aditwisteria</dc:creator>
      <pubDate>Sun, 22 Nov 2026 13:18:24 +0000</pubDate>
      <link>https://dev.to/aditwisteria/spec-driven-frankenstein-how-kiro-stitched-a-game-out-of-five-browser-apis-3ia5</link>
      <guid>https://dev.to/aditwisteria/spec-driven-frankenstein-how-kiro-stitched-a-game-out-of-five-browser-apis-3ia5</guid>
      <description>&lt;p&gt;&lt;em&gt;This post was written as part of the Kiroween 2026 hackathon, about FRANKEN-LAB, my entry in the Frankenstein category.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The category is a design brief
&lt;/h2&gt;

&lt;p&gt;Frankenstein's monster is the original chimera: one creature stitched from parts that were never meant to work together. The Frankenstein category of Kiroween asks for the same thing in software — a chimera of technologies that seemingly don't belong in the same body.&lt;/p&gt;

&lt;p&gt;So I built a game that is &lt;em&gt;about&lt;/em&gt; stitching while &lt;em&gt;being&lt;/em&gt; stitched. In FRANKEN-LAB, you assemble a monster from five donors — Vampire, Robot, Werewolf, Ghost, Human — picking a head, torso, arms, and legs. That's 625 possible monsters, and every one of the 20 parts grants a real, named ability: Vampire head gives Lifesteal Bite, Robot arms give Ranged Zap, Ghost legs give Phase Dash. Then you charge a lightning coil and wake your monster by shouting "IT'S ALIVE!" into the microphone. Then it defends your lab against escalating waves of villagers with torches and pitchforks.&lt;/p&gt;

&lt;p&gt;Under the hood, the app itself is the second monster: Canvas 2D rendering, procedural Web Audio synthesis, speech recognition, speech synthesis, and localStorage — five browser technologies that rarely share a body, sewn into one game with zero external assets. There are no image files. There are no audio files. Everything is generated in the browser at runtime.&lt;/p&gt;

&lt;p&gt;Play it here: &lt;a href="https://aditwisteria.github.io/franken-lab/" rel="noopener noreferrer"&gt;https://aditwisteria.github.io/franken-lab/&lt;/a&gt;&lt;br&gt;
Code: &lt;a href="https://github.com/aditwisteria/franken-lab" rel="noopener noreferrer"&gt;https://github.com/aditwisteria/franken-lab&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing the spec before the monster
&lt;/h2&gt;

&lt;p&gt;The part of this project I'm proudest of happened before a single line of game code existed: the &lt;code&gt;/.kiro&lt;/code&gt; folder.&lt;/p&gt;

&lt;p&gt;I treated the steering documents as a constitution. &lt;code&gt;product.md&lt;/code&gt; and &lt;code&gt;tech.md&lt;/code&gt; set the rules Kiro would work under for the entire build:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero friction.&lt;/strong&gt; Playable in under two seconds, no installs, no accounts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Voice is an enhancement, never a gate.&lt;/strong&gt; Every voice action must have a keyboard, mouse, or touch twin with an identical effect. This had to be a steering rule, not a hope — because judges may test without a microphone, and headless browsers have no speech backend at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero external assets.&lt;/strong&gt; All art in Canvas 2D, all sound synthesized with Web Audio.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A deterministic core.&lt;/strong&gt; A seeded RNG (mulberry32, overridable via &lt;code&gt;?seed=&lt;/code&gt;), so the same seed plus the same inputs produces the same run — which is what makes a game like this testable headlessly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On top of the steering docs sat a full spec: requirements R1–R6, an architecture document (one GameState store, a phase state machine, per-module responsibilities), and a task list broken into six phases — scaffolding, stitching, sound and voice, arena, journal and polish, verification and submission.&lt;/p&gt;

&lt;h2&gt;
  
  
  Driving Kiro CLI phase by phase
&lt;/h2&gt;

&lt;p&gt;All of the game code was written by Kiro CLI, working non-interactively, in 16 sessions across the build. Each session got one scoped task cluster and pointers to the spec and steering files. Nothing was hand-written and later attributed to Kiro; when a fix was needed, Kiro made it.&lt;/p&gt;

&lt;p&gt;After each phase, an independent verification pass ran before the next phase was allowed to start: the production build, the automated test suite, and scripted headless-Chromium playtests of the real game loop — real clicks, held keys, ability inputs. Kiro wrote the monster; the gates decided whether the monster lived.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test the spec wrote for us
&lt;/h2&gt;

&lt;p&gt;My favorite moment of the whole build: the requirements said that &lt;em&gt;every donor combination must yield a valid monster with four working abilities and legal stats&lt;/em&gt;. That one sentence became an exhaustive property-based test that enumerates all 625 builds and proves each one. It's part of a suite that ended at 3,219 passing tests.&lt;/p&gt;

&lt;p&gt;That's the thing spec-driven development changes. The leverage isn't in clever prompts. It's in writing requirements precise enough to generate tests from.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bugs only a player can find
&lt;/h2&gt;

&lt;p&gt;The property tests proved all 625 builds valid — but they never clicked anything. The first headless playtest with real mouse input found the STITCH screen's donor cards completely unclickable: the picker panel had inherited &lt;code&gt;pointer-events: none&lt;/code&gt; from an overlay ancestor. Unit tests don't click. A scripted browser does.&lt;/p&gt;

&lt;p&gt;The ZAP screen taught a second lesson: its charge bar initially overlapped the monster's legs, and my first suggested fix (&lt;code&gt;padding-top: 55%&lt;/code&gt;) silently resolved against the container's &lt;em&gt;width&lt;/em&gt; and shoved the controls off-screen. CSS percentages are physics, and physics doesn't care about your intentions. Both bugs were fixed the same way: capture the evidence (a click-failure trace, screenshots), feed it back to Kiro, and let Kiro make the repair against the spec.&lt;/p&gt;

&lt;h2&gt;
  
  
  Publishing through a keyhole
&lt;/h2&gt;

&lt;p&gt;Even shipping had a Frankenstein quality. The GitHub App integration I publish through can't create repositories and rejects git-tree and workflow-file writes. So the repo was created in a browser, and all 29 source files were published one by one through the Contents API, with blob SHAs verified byte-identical against the local repo. GitHub Pages is served from a &lt;code&gt;gh-pages&lt;/code&gt; branch carrying the built site. Unglamorous, verifiable, done.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do again — and the seam that holds it together
&lt;/h2&gt;

&lt;p&gt;Three lessons generalize beyond this game:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Spec first.&lt;/strong&gt; The spec is not documentation for after; it's the input that makes everything else — code, tests, verification — possible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify like an adversary.&lt;/strong&gt; Play the game programmatically. The bugs that matter live at the seams between systems, and seams only show themselves in motion.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep every organ swappable.&lt;/strong&gt; Voice input and keyboard input in FRANKEN-LAB both emit the same &lt;code&gt;CommandEvent&lt;/code&gt; shape, which is why the monster accepts orders from a microphone, a keyboard, or a touchscreen without caring which. In a chimera architecture, the seams &lt;em&gt;are&lt;/em&gt; the design.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Kiro changed how I approach development in a specific way: my job moved up a level. I wrote the rules, checked the work, and played the game like an enemy. Kiro wrote the monster.&lt;/p&gt;

&lt;p&gt;It's alive. Go stitch one of your own: &lt;a href="https://aditwisteria.github.io/franken-lab/" rel="noopener noreferrer"&gt;https://aditwisteria.github.io/franken-lab/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built for Kiroween 2026 (Frankenstein category). Devpost: &lt;a href="https://devpost.com/software/franken-lab" rel="noopener noreferrer"&gt;https://devpost.com/software/franken-lab&lt;/a&gt; · Demo video: &lt;a href="https://youtu.be/WWMBGe-oMGk" rel="noopener noreferrer"&gt;https://youtu.be/WWMBGe-oMGk&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>gamedev</category>
      <category>hackathon</category>
      <category>kiro</category>
    </item>
  </channel>
</rss>
