Codex AI Game Studio

Tutorial workbook: what to say to Codex

These tutorials are designed to be pasted into a **new Codex task** after the plugin is enabled. Replace text in [brackets]; attach references only when you have permission to use them.

Every tutorial follows the same contract:

  1. Codex inspects the active project and relevant machine capabilities read-only.
  2. It asks only questions whose answers materially change the workflow, rights, cost, or output.
  3. It proposes one compatible route, plus alternatives only when a constraint blocks the preferred route.
  4. It discloses files, processes, downloads, licenses, credentials-by-variable-name, permissions, and rollback.
  5. Nothing mutating happens until you confirm the transaction digest.
  6. Generated output stays beside the original until visual/technical evidence and human approval permit replacement.

1. Start a new game

What to say

$ai-game-studio:start I want to make [one-sentence game idea] for [platform]
with [session length or scope]. Treat this as a new project. Help me choose the
smallest stack that can prove the core loop in [time budget]. Inspect my OS,
installed tools, GPU, disk, and existing Codex integrations read-only. Propose
one vertical-slice plan with licenses, downloads, permissions, quality gates,
and rollback. Wait for my confirmation before creating files or installing anything.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

2. Adopt an existing game repository

What to say

$ai-game-studio:start Adopt this existing game without rewriting its architecture.
Read its AGENTS.md, documentation, engine metadata, tests, asset conventions,
budgets, and current Git state. Identify the most valuable reversible milestone,
show every proposed file change and external dependency, and wait for my approval.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

3. Prompt to a playable prototype

What to say

$ai-game-studio:prompt-to-game Build a playable prototype from this idea:
[idea]. The player must be able to [core verb], understand success/failure,
restart, and finish a two-minute run. Use placeholder or rights-cleared assets.
Set measurable feel, frame-time, input, and playability gates. Plan first and
wait for the digest confirmation.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

4. Unity workflow

What to say

$ai-game-studio:engine-automation Inspect this Unity project and installed Unity
editors. Detect existing MCP servers and packages. Propose exactly one compatible
Unity integration, preferring the pinned CoplayDev adapter, with its source pin,
license, command, package/editor changes, network/process permissions, health
check, uninstall, and rollback. Do not install, launch Unity, or edit the project
until I confirm the transaction digest.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

5. Godot workflow

What to say

$ai-game-studio:engine-automation Inspect this Godot project, project.godot,
addons, language mix, and installed editor versions. Prefer the pinned Coding-Solo
Godot adapter and native GDScript when consistent with the repository. Propose one
MCP, its permissions and health test, then wait for confirmation before setup or
editor control.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

6. Unreal Engine workflow

What to say

$ai-game-studio:engine-automation Inspect this Unreal project, engine association,
plugins, modules, Blueprint/C++ split, and existing remote-control or MCP tooling.
Propose one pinned IvanMurzak Unreal adapter or explain why the GenOrca alternative
is safer here. Include build cost, editor permissions, ports, health checks, and
rollback. Wait before installation, compilation, or editor launch.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

7. Browser game workflow

What to say

$ai-game-studio:prototype Use this repository's current browser stack to build
[prototype]. Preserve its package manager and code style. Add keyboard and pointer
controls, deterministic restart, responsive layout, a browser smoke test, and
screenshot regression evidence. Propose dependencies and file changes before writing.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

8. 2D sprites, animation sheets, and tiles

What to say

$ai-game-studio:sprite-generate From these rights-cleared references, create a
[dimensions] [palette/style] character with [directions] and [animations/frames].
Keep a transparent background, consistent pivots and baselines, edge padding,
palette, proportions, light direction, and silhouette. Generate a contact sheet
and in-engine loop preview. Do not replace any source sprite until I approve the
before/after evidence.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

9. Image/text-to-3D asset and PBR materials

What to say

$ai-game-studio:asset-3d-generate Reconstruct [asset] from these licensed views
for [engine/platform]. Target [triangle budget], real-world scale, clean normals,
non-overlapping UVs, [texture size], PBR channels, collision, and [LOD count].
Use my available GPU only if the model and licenses fit. Produce turntable and
wireframe evidence and wait before replacing any production asset.

$ai-game-studio:material-texture-generate Create a tileable [material] set with
base color, normal, roughness, metallic, ambient occlusion, and height channels.
State color space and packing, prove seams at multiple scales, and record licenses
and prompts.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

10. Rigging, retargeting, and animation

What to say

$ai-game-studio:rig-animation Rig this rights-cleared character for [engine],
retarget [motion source], and export [animations]. Preserve the source mesh.
Validate hierarchy, bind pose, deformation weights, root motion, foot contacts,
hand/face requirements, scale, loop continuity, and engine import. Create slow-
motion and contact overlays before asking me to approve production replacement.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

11. Generated environments and procedural levels

What to say

$ai-game-studio:world-generate Build a deterministic [genre] level from this
brief: [brief]. Start with a greybox. Enforce [dimensions/budgets], spawn-to-goal
reachability, navigation, encounter pacing, sight lines, collision, lighting,
and seeded regeneration. Prove playability before proposing an art pass.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

12. NPC dialogue, quests, voices, music, and sound

What to say

$ai-game-studio:npc-audio-generate Design an NPC encounter for [context]. Create
the dialogue state graph, quest states, failure/recovery paths, placeholder voice,
music, ambience, and SFX plan. Use no real person's identity or voice without
documented consent. Separate local and hosted options, list all licenses/costs,
and validate loudness, peaks, loop seams, subtitles, and in-game triggers.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

13. Visual QA, playtesting, performance, and quality enhancement

What to say

$ai-game-studio:visual-qa Capture representative views and gameplay states for
this build. Compare them with [references or prior baseline], separate camera,
lighting, geometry, material, animation, UI, and post-process differences, and
report severity with evidence. Also run interaction smoke tests and collect frame
time, memory, draw calls, and asset-budget results. Do not modify the build.

$ai-game-studio:quality-enhance Using the accepted QA report, preserve all source
assets and create reversible candidates only for [approved defect IDs]. Produce
before/after images or animation previews, rerun every affected gate, and wait
for human approval before replacement.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

14. Migrate a Claude game-studio project

What to say

$ai-game-studio-automation:migrate-claude Inspect this Claude-oriented project
read-only. Map CLAUDE.md, scoped instructions, agents, commands, skills, hooks,
tool declarations, model names, memory fields, and shell assumptions to supported
Codex forms. Show every destination, replacement, not-applicable item, test, and
rollback in one transaction. Do not remove Claude files or write Codex files
until I confirm the digest.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

15. Reference image to procedural Three.js code

Install the optional Apache-2.0 pack first:

codex plugin add ai-game-studio-img2threejs@frabcd-ai-game-studio

What to say

Use $ai-game-studio-img2threejs:img2threejs with this reference image.
Validate the reference, ask for my intended game use and quality target, and
write a quality contract before code. Reconstruct it as procedural Three.js in
ordered passes, review deterministic multi-view captures at every gate, state
what still differs, and keep generated work in my approved project directory.
Never claim unseen geometry or an approximation is exact.

What Codex inspects

What it asks

What it proposes

What it may change after confirmation

Expected artifacts and rollback

See the complete img2threejs pack guide.

16. Choose the native Windows or macOS edition

What to say

On Windows:

Use $ai-game-studio-windows:setup-windows-edition to inspect this project and
propose one native Windows setup. Adapt incompatible POSIX, Metal, or macOS-only
steps by capability, disclose limitations, and wait for my full plan digest.

On macOS:

Use $ai-game-studio-macos:setup-macos-edition to inspect this project and
propose one native macOS setup. Adapt incompatible EXE, PowerShell, CUDA, or
DirectML-only steps by capability, disclose limitations, and wait for my full
plan digest.

What Codex inspects, asks, and proposes

Expected artifacts and rollback

Use the detailed Windows guide or macOS guide for native alternatives, exact commands, and platform-specific prompts.

If a preferred tool cannot run

Say:

The preferred tool is incompatible. Compare only verified alternatives by the
required capability, output quality, code/weight/dataset/output licenses,
commercial status, privacy, cost, download size, performance, GPU/VRAM, OS,
host application, permissions, and known limitations. Recommend one substitution
and wait for a new confirmation; do not silently change the plan.

This is mandatory for CUDA-only software on incompatible hardware, unsupported host applications, conflicting MCP servers, unknown commercial terms, large downloads, or hosted services that violate the project's privacy constraint.