The 4 rules that make vibe-coded games actually ship

· Prompt Forge Kits

Building a game with an AI coding tool is fast at the start. The trouble comes around prompt 40, when the game is a black screen and the AI keeps "fixing" things that weren't broken. These four rules are the core of the Browser Game Starter Kit, and they're free to use whether or not you buy anything.

1. One prompt = one feature

Never ask for five things at once. A prompt like "add double jump, coins, a shop, and save games" gives the AI too many places to go wrong, and when something breaks you can't tell which part did it. Ask for one feature, small enough that you can check it in under a minute.

2. Test after every change

Play it. Open the browser console (F12) and look for red errors. A bug you catch right after the change that caused it takes one prompt to fix. A bug you find ten prompts later is buried under ten layers of new code.

3. Commit every working step

Git is your save game. Run this once at the start:

git init
git add -A
git commit -m "starter works"

Then, after every step that works:

git add -A
git commit -m "player can double jump"

Now every working version of your game is one command away.

4. Three failed fixes = roll back

When a change breaks something, give the AI three tries: first the exact error and what you did, then more context (file contents, what you expected), then ask it to explain the cause before fixing. Still broken? Roll back to your last commit and ask for a smaller step.

Why three? After three failed fixes the AI is usually patching its own patches. Each attempt adds code, and the bug gets buried deeper. Rolling back costs you two minutes; spiraling costs you an evening.

One more: tell the AI to stay in its lane

If the AI keeps changing code you didn't ask about, paste this:

Stop. Only change what I ask. Do not refactor, rename, or reformat other code. Re-read AGENTS.md and follow the "small steps" rules.

Where the kit fits

The kit bakes these rules into the project: AGENTS.md, CLAUDE.md, and .cursorrules tell your AI tool to work in small steps, every prompt in the playbook ends with a test checkpoint, and FIX-LOOP.md has the debug prompt templates and git commands. You can play the demos built that way, or see what's inside.

Get the free Core Keepers demo

Enter your email and we send you a private link to play the full Core Keepers tower defense demo, plus a short "first game in 30 minutes" teaser guide. After that, two short emails over the next week (a practical tip, then a note about the full kit). Unsubscribe anytime with one click.