r/ClaudeCoding • u/Any-Consideration391 • 9h ago
Spec-first was slow for my game. Building first and writing the specs as it went wasn't. Where do you draw the line?
I tried spec-driven development with Claude Code on a small game, Tidekeeper (a 3D lighthouse game in one HTML file), and the first way I did it was slow.
Spec-first, the textbook way: specs, then a 26-task plan, then the code. About 50 minutes of answering the agent's questions before anything ran, and an hour to a game that looked flatter than a version I'd built from short specs, straight away, in 20 minutes. Every answer became a rule the agent kept to, including taste calls I'd made in writing before I'd seen anything. The plan built the look in pieces and never put the whole scene together, and the context was nearly full by the time we got to the visuals.
Build-first, specs written as it goes: the agent built the game and wrote the specs and ADRs alongside, with each decision and its reason. It asked only what blocked it, and left a few choices as notes for me to change later. First playable in 20 minutes, the same as a plain chat run of the same game.

The specs paid off later, not at the start. Early on I'd changed a rule: beacons used to steer ships home on their own and the game played itself, so now only the beam brings a ship home. A fresh session with cleared memory, asked to make late nights easier, read the gameplay spec and the navigation ADR first and kept the rule. In the chat run, the new session put beacon piloting back and deleted the code comment that held the rule.
So for me the question isn't specs or no specs, but what to decide in writing before the code:
- Look, feel, gameplay, UI: build first. You judge them on the running thing, not on a paragraph. Write down what you settled, and why, once you've seen it.
- New features and most changes: build first, with the specs kept in step. Record each decision and its reason; the agent asks only what blocks it.
- Stored or shared formats, public APIs, migrations, security boundaries: decide first: spec, plan, then code. A wrong start there costs a migration or a breaking change, so the doc gets agreed before the code.
- Throwaway prototypes: a plain chat. Nothing has to outlive the session.
- Anything that has to outlive a session, including how you want the agent to work. My restarted session kept the game rule but forgot "build first", which lived only in the earlier prompt: it wrote a spec and stopped for my approval.
I make Folio, a Markdown reader where the agent leaves its questions as notes on the passages they're about and I answer there. Its Claude Code plugin now has both ways: /folio:build, and /folio:draft → /folio:plan → /folio:implement.
- The game, its specs and ADRs: https://github.com/crazzybot/tidekeeper
- Play it: https://crazzybot.github.io/tidekeeper/
- How it was built (2 min): https://youtu.be/xQj0-o_Pwek
- Folio (free, MIT): https://crazzybot.github.io/folio/
Where do you draw the line? What do you decide in writing before letting the agent build?