FIELD-TESTED PLAYBOOK

How Engineering Teams Keep Agents From Wrecking Their Repo

Agentic pipelines break for predictable reasons: vague specs, unconstrained architecture, missing visual proof, and colliding parallel runs. Every reliable workflow rests on three pillars: Explicit Specs, Isolated Execution, and Verifiable Evidence.

UNIVERSAL PRINCIPLES

The 8 Production Rules of Agentic Game Dev

Rule 01

Codify Context in AGENTS.md

Document engine version, coordinate scale, build commands, folder boundaries, and past gotchas at the repo root so agents stop guessing.

Rule 02

One Task Doc Per Change

Start every change from a scoped task document with explicit acceptance criteria, target files, and required verification commands—then start a fresh session per feature.

Rule 03

One Git Worktree + Shared Activity Board

Run each agent in its own Git worktree and coordinate builds, machine locks, and server/editor restarts on a shared activity board so parallel agents do not collide.

Rule 04

Cross-Model Review

Have a different model review the diff than the model that implemented it (e.g., flagship model for new features, a separate faster model for reviews and targeted fixes).

Rule 05

Exact Before/After Visual Evidence

Evidence for a visual fix is a rendered capture of the exact reported case, before and after. Automated metrics and generic screenshots can pass while the result is visibly wrong.

Rule 06

Engine-Free Rules + Golden Vectors

Keep rule logic in engine-free code validated by golden test vectors shared between server and client, with zero gameplay logic in Blueprints.

Rule 07

Start From Vertical-Slice Templates

Agents extend working character controllers, camera rigs, and test harnesses far more reliably than inventing architecture from an empty folder.

Rule 08

Actionable Automated Guard Rails

Enforce strict types, linters, and tests whose failure messages specify exactly what broke and how to repair it automatically.

See These Rules Applied Under Production Load

Read how cross-model review, single-worktree isolation, golden test vectors, and before/after GPU captures performed on a real C++ multiplayer codebase in Field Notes from a Real UE 5.8 Project →

COPY-PASTE STARTER TEMPLATES

Drop-In Repo & Task Spec Scaffolding

Commit the root context skeleton to your repository and start every change with a scoped task document and Plan Mode kickoff prompt.

Template 1: Root AGENTS.md / CLAUDE.md Skeleton
# Project Context — <Game Title>
- **Engine & Version:** e.g., UE 5.8.3 / Godot 4.4 / Unity 6000.0 / Three.js
- **Target Platform & Scale:** e.g., 16:9 Desktop, 1 unit = 1 meter, Y-up
- **Core Loop:** 2-sentence description of player verbs and win/loss states.

## Architecture & Directory Map
- `/core/` — Engine-free deterministic rule logic + golden test vectors shared between server and client (MUST pass in seconds without launching the editor).
- `/scripts/assets/` — Version-controlled scripts that generate binary assets + manifests/hashes.
- `/scenes/` — Visual wiring only (ZERO gameplay logic in Blueprints; never hand-edit Unity `.meta` files).
- `/data/` — JSON/CSV balance tables.

## Multi-Agent Coordination Rules
- Use one Git worktree per agent run and clean up build artifacts after completion.
- Check and update the shared activity board before acquiring build locks or restarting servers/editors.
- Route review to a different model than the implementer.

## Verification Protocol (Required Before Reporting Done)
1. Run engine-free rule & golden-vector tests: `<fast CLI test command>`
2. Run build / type-check command (include `Shipping` config on milestone checks): `<build CLI command>`
3. For any visual fix, attach rendered BEFORE and AFTER captures of the exact reported case.
Template 2: Single-Change Task Doc & Plan Mode Kickoff Prompt
Before editing any files, read AGENTS.md and the task document at <path/to/task.md>.
Return:
1. Exact files/scripts you plan to read or modify (in a fresh Git worktree).
2. Any ambiguities in acceptance criteria, edge cases, or network/data schemas (max 3 questions).
3. Your exact verification plan: automated test command, build target, and (if visual) the exact before/after capture case.
Wait for approval before writing code. After implementation, prepare the diff for cross-model review.
ENGINE-SPECIFIC TACTICAL CHECKLISTS

Pre-Flight Checklists by Engine

Check off items as you configure your studio pipeline—progress is saved locally in your browser.

Unity 6+ Checklist

0/4 done

Godot 4.x Checklist

0/3 done

Three.js Checklist

0/3 done

Unreal Engine 5.8 Checklist

0/6 done
Toteutettu Kuura.app Kuurasivu-generaattorin ilmaisversiolla · Luo oma sivusi