<?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: jmvbj</title>
    <description>The latest articles on DEV Community by jmvbj (@jmvbj).</description>
    <link>https://dev.to/jmvbj</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%2F4283040%2F94c28150-7725-4772-9063-b49a019cd16d.png</url>
      <title>DEV Community: jmvbj</title>
      <link>https://dev.to/jmvbj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jmvbj"/>
    <language>en</language>
    <item>
      <title>Resurrecting the 1973 SPICE card deck to review PCB changes (built with Kiro)</title>
      <dc:creator>jmvbj</dc:creator>
      <pubDate>Fri, 04 Dec 2026 14:52:39 +0000</pubDate>
      <link>https://dev.to/jmvbj/resurrecting-the-1973-spice-card-deck-to-review-pcb-changes-built-with-kiro-2j3g</link>
      <guid>https://dev.to/jmvbj/resurrecting-the-1973-spice-card-deck-to-review-pcb-changes-built-with-kiro-2j3g</guid>
      <description>&lt;p&gt;&lt;em&gt;I wrote this post for the Kiroween 2026 hackathon (Resurrection category). The project is &lt;a href="https://github.com/jmvbj/spice-rewind" rel="noopener noreferrer"&gt;SPICE Rewind&lt;/a&gt;, and every line of it was built in &lt;a href="https://kiro.dev" rel="noopener noreferrer"&gt;Kiro&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: I could not read my own board changes
&lt;/h2&gt;

&lt;p&gt;I design small PCBs in JLC EDA and KiCad. Before I order a board, I want to know one thing: &lt;strong&gt;what changed in the circuit since the last version?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A plain &lt;code&gt;git diff&lt;/code&gt; of two netlist exports does not answer that. Removing one resistor from my RP2354A + AXP173 board deleted 58 lines. Re-numbering 12 parts, which changes nothing electrically, produced 96 changed lines.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frnn4uk4osgdx4j2ez3e8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frnn4uk4osgdx4j2ez3e8.jpg" alt="A git diff of two netlists: 96 changed lines for a pure re-numbering" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The 1973 idea
&lt;/h2&gt;

&lt;p&gt;In 1973, SPICE described a circuit as a plain-text &lt;strong&gt;card deck&lt;/strong&gt;: one line per part, nodes by name. The same year, UNIX pipes made small tools talk through text. Both were replaced by graphical tools, because text is hard for people to read at scale. Today text is exactly what diff tools and AI reviewers read best.&lt;/p&gt;

&lt;p&gt;So SPICE Rewind turns every netlist into one &lt;strong&gt;canonical SPICE text&lt;/strong&gt;: deterministic, sorted by content, one line per part:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C1 0 +3.3V 0.1uf C0603
R13 +3.3V IO1 4.7k R0603
U4 ... QMC5883L
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On that text it builds the rest, in the UNIX spirit: &lt;code&gt;eda2spice | spicediff | spiceaudit&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Watches folders and keeps every revision.&lt;/strong&gt; The Windows app stores a snapshot each time a netlist changes, and groups versions by project (the main chip).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Diffs by connectivity.&lt;/strong&gt; The removed resistor becomes a single line:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4c9gaxurni3jap1s49hq.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4c9gaxurni3jap1s49hq.jpg" alt="The diff shows one line: R13 removed" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ignores re-numbering.&lt;/strong&gt; A &lt;em&gt;topology&lt;/em&gt; mode matches parts by type, value, footprint and the nets they touch. The re-numbered board reports zero real changes:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqijxu3wytakwdsinln2c.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqijxu3wytakwdsinln2c.jpg" alt="Topology mode: no differences after re-annotation" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Audits with local rules:&lt;/strong&gt; floating pins, decoupling per power net, power-ground shorts, resistor dividers, BOM footprint mismatches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Needs no manual export.&lt;/strong&gt; It drives &lt;code&gt;kicad-cli&lt;/code&gt; and the JLC EDA Pro command line in the background, and finds them on any computer through the installers' registry entries.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F08xuygxy5j8tmulvs7v5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F08xuygxy5j8tmulvs7v5.jpg" alt="A KiCad project backed up automatically" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Packages an AI review pack&lt;/strong&gt;: diff, findings and SPICE text, ready to paste into a chat, as text instead of a screenshot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It ships as a Windows app, a &lt;a href="https://jmvbj.github.io/spice-rewind/" rel="noopener noreferrer"&gt;browser demo&lt;/a&gt;, CLI tools and an MCP server.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Kiro shaped the build
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Specs first, for every feature
&lt;/h3&gt;

&lt;p&gt;The repository has six specs in &lt;code&gt;.kiro/specs/&lt;/code&gt;. The first one, for the engine, has 19 requirements in EARS form ("WHEN … THE system SHALL …"), a design with 10 correctness properties, and a task list. When I later wanted KiCad support, a JLC EDA adapter, a tray icon or a cleanup of old backups, each one got its own spec before any code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F13jjt937f8cn6xf801n3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F13jjt937f8cn6xf801n3.jpg" alt="Six specs in the .kiro folder" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Writing the correctness properties first paid off. "Listing the parts in any order gives byte-identical SPICE" or "renaming every designator consistently gives an empty topology diff" turned almost mechanically into fast-check property tests (&lt;code&gt;test/property/&lt;/code&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  Steering kept the architecture honest
&lt;/h3&gt;

&lt;p&gt;Four steering files in &lt;code&gt;.kiro/steering/&lt;/code&gt; hold the rules that every agent run must follow. The most important one: &lt;code&gt;src/core/&lt;/code&gt; is pure TypeScript with no Node, Electron or DOM imports, and never throws. Because of it, the same engine runs in Electron, in the browser and in the CLI with identical results. Another rule says that external programs only run from two adapter modules, without a shell.&lt;/p&gt;

&lt;h3&gt;
  
  
  A hook and an MCP server
&lt;/h3&gt;

&lt;p&gt;A &lt;code&gt;PostFileSave&lt;/code&gt; hook runs the tools whenever I save a netlist and summarizes the diff and findings. The project also ships its own MCP server, so Kiro can read the real snapshot store:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi5qostanrsnlgbwbe83p.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi5qostanrsnlgbwbe83p.jpg" alt="Real MCP calls: list_projects, get_diff, run_audit" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug that only real hardware tools could show
&lt;/h2&gt;

&lt;p&gt;My favourite moment came the day before submission. While making the demo video, I noticed that a KiCad project stayed in "EXPORTING" forever. Measuring it showed that &lt;strong&gt;&lt;code&gt;kicad-cli&lt;/code&gt; itself creates the project lock file &lt;code&gt;~esp.kicad_pro.lck&lt;/code&gt; while it exports, and deletes it afterwards.&lt;/strong&gt; My watcher took the deletion for "the user closed KiCad" and started the next export, in an endless loop.&lt;/p&gt;

&lt;p&gt;The fix ignores lock events during our own export and for two seconds after it, then re-reads the lock files that really exist. Two regression tests cover it. A packaged build with real &lt;code&gt;kicad-cli&lt;/code&gt; now exports once in 60 seconds instead of every few seconds. No mock would have found this.&lt;/p&gt;

&lt;p&gt;That is also why a GitHub Actions workflow installs KiCad on a fresh Windows VM and tests the real installer on every push:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffiq0qrmcdv1qaak31g68.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffiq0qrmcdv1qaak31g68.jpg" alt="Windows CI: tests, packaged app, fresh KiCad install" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Requirements and properties written first make tests easy to write and features easy to add.&lt;/li&gt;
&lt;li&gt;Steering rules stop an AI agent from drifting across layers.&lt;/li&gt;
&lt;li&gt;Text is a good interface for both people and AI. A 1973 format turned out to be the right shape for a 2026 reviewer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Video (2:36): &lt;a href="https://youtu.be/PgeYR4YH-EY" rel="noopener noreferrer"&gt;https://youtu.be/PgeYR4YH-EY&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Browser demo, nothing uploaded: &lt;a href="https://jmvbj.github.io/spice-rewind/" rel="noopener noreferrer"&gt;https://jmvbj.github.io/spice-rewind/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Windows download: &lt;a href="https://github.com/jmvbj/spice-rewind/releases/latest" rel="noopener noreferrer"&gt;https://github.com/jmvbj/spice-rewind/releases/latest&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source (MIT): &lt;a href="https://github.com/jmvbj/spice-rewind" rel="noopener noreferrer"&gt;https://github.com/jmvbj/spice-rewind&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>kiro</category>
      <category>hackathon</category>
      <category>electronics</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
