unity-ai-workflow
CLAUDE.md44 starsChanged 8 months agoMITView on GitHub
AI-first Unity 6.2+ game development workflow. This repo is pure infrastructure — skills, commands, docs, and templates. No Unity project inside. Copy it into your game workspace root and Claude Code reads it as its brain. Read docs/ProjectConfig.yaml at the start of every session. It contains Unity version, packages, render pipeline, UI system, architecture pattern, and dev mode. These are things LLMs consistently get wrong in Unity. Always enforced. When recommending any external tool, package, repo, tutorial, or statistic: Never…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- IdoCohen560/claude-unity-game-studioword for word, first seen Apr 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- IdoCohen560/claude-unity-game-studio★ 22100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- uw-code-reviewSkill
- uw-dependency-injectionSkill
- uw-game-feel-integratorSkill
- uw-network-setupSkill
- uw-scriptable-object-archSkill
- uw-skill-creatorSkill
- uw-state-machineSkill
- uw-ui-toolkit-binderSkill
- uw-unity-debuggingSkill
- uw-unity-editor-toolsSkill
- uw-unity-feature-scaffoldSkill
- uw-unity-project-setupSkill
- uw-unity-test-runnerSkill
The file
We split this CLAUDE.md into the rules it gives an agent
12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Read docs/ProjectConfig.yaml at the start of every session.
- Very specific: line 37
Use GameDebug wrapper (stripped from release) — never raw Debug.Log()
- Very specific: line 40
All feature code must live inside an .asmdef
- Very specific: line 41
Always [CreateAssetMenu] on ScriptableObjects
- Very specific: line 42
Never: create, modify, or delete .meta files
- Distinctive: line 45
Never call Unity API from background threads
- Distinctive: line 50
When recommending any external tool, package, repo, tutorial, or statistic:
- Distinctive: line 56
Never present unverified information as fact.
- Very specific: line 60
Follow docs/CODING_STANDARDS.md, docs/NAMING_CONVENTIONS.md, and docs/GIT_CONVENTIONS.md.
- Very specific: line 64
After a full /uw-cmd-implement-feature loop OR 3+ major decisions, offer:
- Very specific: line 67
Use templates/SessionState_Template.md as the format.
- Very specific: line 71
If docs/ProjectConfig.yaml → prompt_logging is true, append to docs/PromptLog.md after every response:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unity AI Workflow
AI-first Unity 6.2+ game development workflow. This repo is pure infrastructure — skills, commands, docs, and templates. No Unity project inside. Copy it into your game workspace root and Claude Code reads it as its brain.
Workspace Layout
MyGame/ ← Open THIS folder
├── CLAUDE.md ← This file (auto-loaded)
├── .claude/
│ ├── commands/ ← Slash commands (/uw-cmd-implement-feature, /uw-cmd-brainstorm, etc.)
│ ├── skills/ ← Reusable knowledge modules (13 skills)
│ └── settings.json ← Hooks & permissions
├── docs/ ← Living project docs (GDD, TDD, GFD, ProjectConfig, standards)
├── templates/ ← Pristine starters (GDD, GFD, TDD, PRD, Sprint, Session)
└── MyGameUnity/ ← Unity project (Assets/, Packages/, ProjectSettings/)Project Config
Read docs/ProjectConfig.yaml at the start of every session. It contains Unity version, packages, render pipeline, UI system, architecture pattern, and dev mode.
Dev Modes
| Mode | Behavior |
| guided (default) | Collaborative. Explain decisions, confirm before major changes. |
| autonomous | After onboarding Q&A, proceed with minimal interruption. Only pause for destructive actions. Enable Claude Code auto mode for best results. |
Non-Negotiable Rules
These are things LLMs consistently get wrong in Unity. Always enforced.
[SerializeField] privateonly — never expose fields aspublicfor the Inspector- Cache ALL component references in
Awake()orStart() - Never
GetComponent<T>(),FindObjectOfType<T>(), orGameObject.Find()inUpdate(),FixedUpdate(), orLateUpdate() - Use
GameDebugwrapper (stripped from release) — never rawDebug.Log() - New Input System only — never legacy
Input.GetKey*orInput.GetAxis* Awaitablefor async (Unity 6 native) — check ProjectConfig for overrides- All feature code must live inside an
.asmdef - Always
[CreateAssetMenu]on ScriptableObjects - Never create, modify, or delete
.metafiles - UI Toolkit recommended — check
ProjectConfig.yaml → ui_systemfor override (UGUI/Mixed valid) - Visual Scripting forbidden for logic — Shader Graph & VFX Graph are fine
- Never call Unity API from background threads
/// <summary>only on public API methods that warrant explanation — never on classes
Verification Marking
When recommending any external tool, package, repo, tutorial, or statistic:
[VERIFIED: source]— accessed/confirmed this session[SYNTHESIZED: source]— AI-researched, not primary source[UNVERIFIED: training data]— needs web search to verify
Never present unverified information as fact.
Coding Standards
Follow docs/CODING_STANDARDS.md, docs/NAMING_CONVENTIONS.md, and docs/GIT_CONVENTIONS.md.
Session Hygiene
After a full /uw-cmd-implement-feature loop OR 3+ major decisions, offer:
"This session is getting long. Want me to write a SessionState summary you can paste into a fresh conversation?"
Use templates/SessionState_Template.md as the format.
Prompt Logging
If docs/ProjectConfig.yaml → prompt_logging is true, append to docs/PromptLog.md after every response:
## [YYYY-MM-DD HH:MM] — <Workflow or Task Type>
**Prompt:** <user's exact words>
**Summary:** <≤200 word factual summary>
---Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

