This post is written as part of the **Kiroween 2026 Hackathon* (Skeleton Crew track).*

When you join a "build a reusable code skeleton" hackathon track like Kiroween 2026 (Skeleton Crew), it is tempting to make one game, swap the CSS theme, and ship two clones.

We decided to test the opposite extreme: what happens if the skeleton stays 100% genre-pure and UI-free, while the two apps don't even share the same game genre?

The result is Kiroween Flow Defense (Play Live -- No Login):

  • World #1 (apps/crypt-warden): A Gothic graveyard Grid Tower Defense (mode: "grid-flow")
  • World #2 (apps/ddos-bastion): A 3 AM Cloud NOC 2D Side-Scrolling Action Platformer (mode: "side-scroll-2d")

They share zero UI components and zero Canvas rendering code, yet both are validated, simulated, and balanced by one TypeScript kernel (@kiroween/flow-defense-core) and one portable Kiro Power (flow-defense-power).

1. Where Should a Multi-Genre Skeleton Stop?

Early on, we kept three strict rules in .kiro/steering/tech.md and enforced them in CI tests (tests/apps/kernel-purity.test.ts):

  1. Zero DOM / Canvas / Browser globals in core: Nothing in packages/flow-defense-core/src/*.ts can touch window, document, or rendering code.
  2. Zero domain words in core: Words like graveyard, lich, ddos, cdn, tower, or sla are forbidden in the kernel. The kernel only knows Node, Threat, Budget, Integrity, damageTag, weakTag, resistTag, and structured RejectionCodes.
  3. Every core module stays <= 250 lines: Keeping each subsystem small forced clean boundaries between shared combat math (computeActualDamage, getSkillUpgradeCost), grid simulation (simulation.ts), and 2D platformer simulation (action-physics.ts, action-skills.ts).

The payoff: the same elemental counter formula (weak = 1.5x, resist = 0.55x, minus integer armor clamped to >= 1) drives both a Frost Obelisk freezing Mist Wraiths in a cemetery and a WAF Rule Engine beam piercing an SQLi Payload turret in a server corridor.

2. Reversing the Perspective Inside Kiro Specs

Halfway through the project, both apps were grid tower defenses. Using Kiro's native spec workflow (.kiro/specs/ddos-bastion-platformer/), we turned World #2 into a full 2D side-scrolling platformer without throwing away the skeleton:

  • Instead of passive grid towers placed by mouse, CDN, Token Bucket Limiter, WAF, and Elastic Worker Pool became active hero skills on [1]--[4], upgradable mid-run from Lv.1 to Lv.3 with Shift+1--4.
  • The blueprint validator gained side-scroll-2d physics checks verified identically in both TypeScript (action-validator.ts) and our zero-dependency Node MCP Power (power/scripts/validate-action.mjs), with parity enforced by 64+ cross-checks in tests/apps/power-parity.test.ts:
    • Anti-tunneling maxFallSpeed cap (<= (PLAYER_HEIGHT + minPlatformHeight) / 16ms)
    • Reachable pickup budget check (excluding embedded pickups inside solid geometry)
    • Spawn platform support and boss-to-goal progression invariants

3. Turning Kiro Hooks & Power Into Guardrails That Actually Fire

Instead of keeping static prompt notes, we wired three real feedback loops into .kiro/:

  1. Steering (.kiro/steering/): Five scoped rule files (product.md, structure.md, tech.md, plus app-specific crypt-warden.md and ddos-bastion.md) keeping both aesthetics orthogonal -- parchment + spectral green vs CRT phosphor cyber NOC.
  2. Agent Hooks (.kiro/hooks/): Automatically run kernel unit + fast-check property tests (test-core-on-save.json) and dual-mode blueprint balance checks (validate-blueprint-on-save.json).
  3. Custom Kiro Power (power/): Built using only Node.js built-in modules so any developer can import ./power into Kiro IDE cleanly and call validate_world_blueprint, analyze_wave_balance, and inspect_app_contract over stdio MCP.

Even in the live browser apps, clicking Blueprint opens an in-game Blueprint Lab calling the exact same core validators on every keystroke so judges can tune physics, enemy HP, or skill upgrades and hot-reload live.

The whole monorepo is guarded by 442 automated tests (37 core + 405 app, MCP parity, audio-unlock, and HUD regression tests), and Chrome CDP profiling lifted our Canvas2D platformer from ~20 fps to a steady 60 fps by moving CRT scanlines to static CSS and baking offscreen scenery caches.

Try It Live (Zero Login)

  • Unified Portal: https://maydaychen.github.io/kiroween-flow-defense/
  • Crypt Warden (Boss Wave 5 Deep Link): https://maydaychen.github.io/kiroween-flow-defense/crypt-warden/?demo=boss
  • DDoS Bastion (Boss Arena Deep Link): https://maydaychen.github.io/kiroween-flow-defense/ddos-bastion/?demo=boss
  • Source Code (MIT + tracked .kiro/): https://github.com/maydaychen/kiroween-flow-defense