<?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: Sachin Gupta</title>
    <description>The latest articles on DEV Community by Sachin Gupta (@sachin_gupta_7fa2ec5ba28f).</description>
    <link>https://dev.to/sachin_gupta_7fa2ec5ba28f</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3599370%2F90ba7a9f-8a5d-483f-83d9-ec0a2188ec60.png</url>
      <title>DEV Community: Sachin Gupta</title>
      <link>https://dev.to/sachin_gupta_7fa2ec5ba28f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sachin_gupta_7fa2ec5ba28f"/>
    <language>en</language>
    <item>
      <title>HexForge: The Spooky Coding Education Game for the Kiroween</title>
      <dc:creator>Sachin Gupta</dc:creator>
      <pubDate>Tue, 02 Dec 2025 17:21:34 +0000</pubDate>
      <link>https://dev.to/sachin_gupta_7fa2ec5ba28f/hexforge-the-spooky-coding-education-game-for-the-kiroween-1gb6</link>
      <guid>https://dev.to/sachin_gupta_7fa2ec5ba28f/hexforge-the-spooky-coding-education-game-for-the-kiroween-1gb6</guid>
      <description>&lt;h1&gt;
  
  
  🎃 HexForge: Spec-Driven Development with Kiro AI
&lt;/h1&gt;

&lt;p&gt;We just finished submitting &lt;strong&gt;HexForge: The Spooky Coding Education Game&lt;/strong&gt; for the Kiroween Hackathon (Category: Costume Contest - Haunting UI). While the game itself is fun—offering 10 JavaScript challenges in a haunted, animated environment—the real story is how we achieved a &lt;strong&gt;~95% reduction in development time&lt;/strong&gt; by strictly using Kiro’s full suite of AI-powered development tools.&lt;/p&gt;

&lt;p&gt;We didn't just use it for "vibe coding"; we ran a formal &lt;strong&gt;Spec-Driven Development&lt;/strong&gt; (SDD) process from start to finish. Our successful submission showcases how to integrate Kiro's advanced features for a truly structured, high-quality build.&lt;/p&gt;




&lt;h3&gt;
  
  
  HexForge: Game Overview
&lt;/h3&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.amazonaws.com%2Fuploads%2Farticles%2Fz3zijndkoq3m34fo0pny.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.amazonaws.com%2Fuploads%2Farticles%2Fz3zijndkoq3m34fo0pny.JPG" alt="Editor Screen" width="800" height="358"&gt;&lt;/a&gt;&lt;br&gt;
HexForge combines JavaScript learning with a sleek, atmospheric dark theme.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Goal:&lt;/strong&gt; Players solve 10 diverse JavaScript coding challenges (from syntax errors to advanced array methods) inside an integrated &lt;strong&gt;Monaco Editor&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gamification:&lt;/strong&gt; Players earn XP, level up through themed ranks (like 'Cryptogoblin'), customize their Kiro ghost wizard avatar, and climb the leaderboard.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design:&lt;/strong&gt; The UI is dark, atmospheric, and highly animated, leveraging a custom Halloween color palette and &lt;strong&gt;Framer Motion&lt;/strong&gt; for smooth effects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tech Stack:&lt;/strong&gt; React (via Preact), TypeScript (strict mode), Zustand, Tailwind CSS, Framer Motion, and Vitest for testing.&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.amazonaws.com%2Fuploads%2Farticles%2Fhfw27fjnwop145u4b3i3.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.amazonaws.com%2Fuploads%2Farticles%2Fhfw27fjnwop145u4b3i3.JPG" alt="Quest Dashboard" width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Spec-Driven Development: The Blueprint
&lt;/h3&gt;

&lt;p&gt;The most critical step was adopting SDD. We replaced ad-hoc feature requests with a formal specification defined in our &lt;code&gt;.kiro/specs&lt;/code&gt; directory.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirements &amp;amp; Design:&lt;/strong&gt; We wrote &lt;strong&gt;16 EARS-compliant requirements&lt;/strong&gt; and a detailed &lt;strong&gt;design document&lt;/strong&gt; defining the architecture, data models, and &lt;strong&gt;26 correctness properties&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The SDD Advantage:&lt;/strong&gt; Kiro used these formal documents to guide its output for every major component. This front-loaded planning effort saved us from frequent backtracking and eliminated scope creep, ultimately reducing our overall development time by &lt;strong&gt;~40%&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testable Code:&lt;/strong&gt; Kiro directly translated the design document's &lt;strong&gt;correctness properties&lt;/strong&gt; (e.g., &lt;em&gt;Property 1: State persistence round-trip&lt;/em&gt;) into &lt;strong&gt;property-based tests&lt;/strong&gt; using &lt;code&gt;fast-check&lt;/code&gt; and &lt;code&gt;Vitest&lt;/code&gt;. This gave us an unprecedented level of confidence in the code's stability.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Steering Documents: Enforcing Quality &amp;amp; Design
&lt;/h3&gt;

&lt;p&gt;To ensure every generated component was consistent with our design, we created two critical steering files that Kiro consulted before generating any code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;.kiro/steering/ui.md&lt;/code&gt;:&lt;/strong&gt; This file enforced a custom Halloween color palette (Deep Void, Pumpkin Orange, Ectoplasm Purple), smooth &lt;strong&gt;Framer Motion&lt;/strong&gt; animations (min 0.5s duration), and required WCAG AA contrast compliance. This resulted in a &lt;strong&gt;consistent, polished Haunting UI&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;.kiro/steering/code.md&lt;/code&gt;:&lt;/strong&gt; This mandated &lt;strong&gt;functional React components&lt;/strong&gt;, strict &lt;strong&gt;TypeScript&lt;/strong&gt; compliance (zero &lt;code&gt;any&lt;/code&gt; types), and the use of &lt;strong&gt;Zustand&lt;/strong&gt; for state management. This process reduced refactoring by &lt;strong&gt;~60%&lt;/strong&gt; by ensuring high-quality, maintainable code from the start.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Agent Hooks: Automating the Repetitive Workflow
&lt;/h3&gt;

&lt;p&gt;We leveraged an &lt;strong&gt;Agent Hook&lt;/strong&gt; to automate our quest scaffolding process, allowing us to focus on challenge design instead of boilerplate code.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Workflow:&lt;/strong&gt; The hook watches the &lt;code&gt;src/data/quests/*.json&lt;/code&gt; directory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Action:&lt;/strong&gt; When a new quest JSON file is added, the hook &lt;strong&gt;automatically generates the corresponding test file template&lt;/strong&gt;, ensuring every quest has a test scaffold ready to go.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Impact:&lt;/strong&gt; This automation streamlined the content creation pipeline, demonstrating a powerful use of Kiro for continuous workflow integration.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;HexForge is a powerful case study in &lt;strong&gt;AI-augmented, structured development&lt;/strong&gt;. By integrating Kiro’s specs, steering, and hooks, we transformed a complex idea into a high-quality product in a fraction of the time, proving that Kiro is a foundational tool for next-generation developer workflows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project Links:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Demo:&lt;/strong&gt; *&lt;em&gt;&lt;a href="https://youtu.be/Iw3f5RMfQzM" rel="noopener noreferrer"&gt;https://youtu.be/Iw3f5RMfQzM&lt;/a&gt;&lt;/em&gt;*&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/devmanager1981/HexForge" rel="noopener noreferrer"&gt;https://github.com/devmanager1981/HexForge&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>kiro</category>
      <category>hookedonkiro</category>
      <category>kirodotdev</category>
    </item>
  </channel>
</rss>
