kbrianps

Doom Room — Development skill for Claude Code

Development community

Real Doom deathmatch inside a Claude artifact: original engine in WebAssembly, multiplayer over the artifact room capability.

How to install Doom Room

This entry records only its repository, not the path inside it, so there is no exact command to give. Open kbrianps/doom-room and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Doom Room does

Real Doom deathmatch inside a Claude artifact: original engine in WebAssembly, multiplayer over the artifact room capability.

Alternatives in Development

  • Root Cause Tracing — Use when errors occur deep in execution and you need to trace back to find the original trigger 102.5k ★
  • Mempalace Search — Search your memories across the MemPalace using semantic search with wing/room filtering 58.6k ★
  • Kaisa Transformation — Kai'Sa (LoL) Transformation Series — Original Prompts 376 ★

README

Doom Room

Real Doom deathmatch inside a Claude artifact. The original engine, compiled to WebAssembly, runs in every player's browser tab, and the players find each other through the artifact's built-in `room` capability. No game server, no WebSocket, no Emscripten.

![Three players in the same Claude artifact, two of them side by side](docs/claude-duel.gif)

Two browser windows on the same artifact, with a third player in the room. Names float over heads, the scoreboard and the kill feed agree on both sides.

![A ghost marine in FreeDM MAP01, as seen by the other player](docs/ghost.png)

The red marine above is another browser tab. It is drawn by the real Doom renderer, takes real hitscan damage, and dies with the real death animation, but its position comes over the network 30 times a second.

About 1,200 lines in total, and the Doom engine itself only needed a 15-line patch.

How it works

 tab A                                            tab B
┌──────────────────────────┐                     ┌──────────────────────────┐
│ doom.wasm (single player)│                     │ doom.wasm (single player)│
│   you          ghost of B│                     │   you          ghost of A│
│    │              ▲      │                     │    │              ▲      │
│ net_local()  net_ghost_* │                     │ net_local()  net_ghost_* │
│    ▼              │      │   room presence     │    ▼              │      │
│ net.js ───────────┴──────┼──── pose, shots, ───┼─ net.js ──────────┴──────│
│                          │   hits, kills       │                          │
└──────────────────────────┘     (~30 Hz)        └──────────────────────────┘

1. Doom to WebAssembly with just clang

[doomgeneric](https://github.com/ozkl/doomgeneric) reduces a Doom port to five functions: draw a frame, read the clock, read a key, sleep, set the title. `src/dg_web.c` implements them as WebAssembly imports and exports, and stock clang builds the whole engine against the [WAS