An expert AI agent framework for Unity development.
Skills, best practices, and utility scripts β ready to install in one command.
You just need the right architect in your corner.
Architect. Debug. Ship.
The definitive high-agency AI framework for Unity development.
From concept to complete gameβalmost entirely by vibe. The Unity Architect is a senior-grade framework designed to turn "it doesn't work" into "fixed systematically." Whether you are a non-programmer building your vision or a senior dev accelerating your shipping speed, this is your AI technical partner.
To unlock the full potential of this framework, you MUST connect it to a Unity MCP Server. Without it, the AI is "blind" to your Scene Hierarchy and Inspector values.
π Recommended: unity-mcp-server (AnkleBreaker Studio)
Why is it mandatory?
This framework provides the intelligence, but MCP provides the eyes and hands. With MCP enabled, the Architect can:
- Query the Hierarchy: "Find all objects with missing script references."
- Inspect Components: "Verify if the Collider bounds match the Mesh."
- Deep Search Assets: "Locate the specific Prefab that handles the inventory UI."
- God Mode (Natural Language Creation): Ask the IA to "Create a Player object in the scene with a click-to-move system using MOBA-like best practices for snappy game feel" and watch it build the objects, scripts, and components for you.
Tip
Roadmap: High-fidelity skills for UI Toolkit and AI Texture Generation are coming in v1.2.0.
It's a framework you install once and forget about. After that, your AI assistant stops being a generic code autocomplete and starts acting like a senior Unity developer who's shipped real games β one who asks the right questions before writing a line of code, follows proven architecture patterns, and knows exactly how to diagnose what's breaking and why.
You've heard of "vibe coding" β describing what you want and letting the AI build it. That works for small things. But without structure, the AI builds on sand. Three features in, everything breaks and the AI can't figure out why, because nobody taught it how Unity actually works.
The Unity Architect gives the AI that knowledge. The result: you can describe the game you want to build, and the AI will architect it properly β not just make it work today, but make it stay working as your game grows.
You can build a complete game. Almost entirely through conversation.
You know what good architecture looks like. You've refactored enough bad code to have opinions. What you don't want is to explain ScriptableObject event systems, object pooling patterns, or DOTS diagnostics to an AI every single session.
The Unity Architect pre-loads all of that. The AI reads the skill files before acting, follows your established patterns, runs diagnostic scripts when something breaks, and stops making the junior mistakes that slow you down.
Less time explaining. More time building.
The Unity Architect is a plug-and-play framework that transforms any AI coding assistant (Cursor, Antigravity/Gemini, Claude) into a senior Unity architect and debugger.
It provides:
- π§ AI Skills β Structured knowledge files the AI reads to apply expert Unity patterns
- π οΈ Execution Scripts β Node.js & Python utilities for project auditing, dependency graphs, and log parsing
- β‘ Auto-configuration β Automatically wires itself into your AI tool's config (
.cursorrules,.gemini/agents.md,CLAUDE.md)
Run this from the root of your Unity project:
npx the-unity-architectThat's it. The installer will:
- Create a
skills/folder with expert AI guidance files - Create an
execution/folder with diagnostic scripts - Inject rules into your AI tool's config so it reads the skills automatically
npx the-unity-architect --dry-run # Preview what will be installed (no changes)
npx the-unity-architect --force # Skip Unity project detection, install anywhere| Skill | Description |
|---|---|
unity-systematic-debugging/ |
Step-by-step scientific debugging protocol for Unity |
unity-architecture-and-best-practices/ |
Clean code, design patterns, and modular system architecture |
Each skill folder contains a SKILL.md (the main AI directive) plus detailed reference modules:
Systematic Debugging modules:
01-scientific-method-and-logs.mdβ Hypothesis-driven debugging with Unity logs02-state-and-serialization.mdβ Inspector state, serialization pitfalls03-memory-and-gc-profiling.mdβ Memory leaks, GC pressure, Profiler workflow04-dots-and-ecs-diagnostics.mdβ DOTS/ECS specific debugging techniques05-rendering-and-gpu-bottlenecks.mdβ GPU profiling and render pipeline issues
Architecture & Best Practices modules:
01-planning-and-workflow.mdβ Technical planning before coding02-clean-code-and-conventions.mdβ Naming, SOLID, Unity conventions03-core-design-patterns.mdβ ScriptableObject events, State Machine, Command pattern04-modular-systems-and-glue-code.mdβ Service Locator, dependency injection05-ui-and-presentation-architecture.mdβ MVP/MVC for Unity UI06-combat-and-vfx-decoupling.mdβ Data-driven combat, pooling VFX07-performance-coding-patterns.mdβ Burst, DOTS, Job System, object pooling
| Script | Command | Description |
|---|---|---|
unity-doctor.js |
node execution/unity-doctor.js |
Full project health check |
unity-audit.js |
node execution/unity-audit.js |
Code quality and anti-pattern audit |
unity-project-graph.js |
node execution/unity-project-graph.js |
Scene and dependency graph |
package-audit.js |
node execution/package-audit.js |
Package & UPM dependency checker |
parse_editor_log.py |
python execution/parse_editor_log.py |
Parse Editor.log for errors |
find_missing_scripts.py |
python execution/find_missing_scripts.py |
Find missing MonoBehaviour references |
scaffold_repo.py |
python execution/scaffold_repo.py |
Scaffold a new module/system |
After installation, your AI assistant will automatically:
- Read the relevant SKILL.md before writing code or debugging
- Run diagnostic scripts when asked to audit or inspect the project
- Follow expert Unity patterns from the knowledge modules
- Integrate with Unity MCP if available in the session
The AI is trained to summarize which rules it's applying (token-saving protocol) before acting, so you always know what framework it's following.
| Tool | Config File Created/Updated |
|---|---|
| Cursor | .cursorrules |
| Antigravity (Gemini) | .gemini/agents.md |
| Claude Code | CLAUDE.md |
| Windsurf | .windsurfrules |
If none are detected, defaults to creating .cursorrules.
For developers who only have Python:
curl -sSL https://raw.githubusercontent.com/UnLince/The-Unity-Architect/main/install.py | python3 -Or on Windows PowerShell:
iwr https://raw.githubusercontent.com/UnLince/The-Unity-Architect/main/install.py | python -The-Unity-Architect/
βββ package.json # NPM package config (npx entry point)
βββ bin/
β βββ install.js # CLI installer script
βββ templates/
β βββ ai-config/
β β βββ injection.md # AI rules injected into your config files
β βββ skills/
β β βββ unity-systematic-debugging/
β β βββ unity-architecture-and-best-practices/
β βββ execution/
β βββ unity-doctor.js
β βββ unity-audit.js
β βββ unity-project-graph.js
β βββ package-audit.js
β βββ parse_editor_log.py
β βββ find_missing_scripts.py
β βββ scaffold_repo.py
βββ install.py # Python alternative installer
βββ README.md
Contributions are welcome! If you have Unity skills, patterns, or scripts to add:
- Fork the repo
- Add your skill folder under
templates/skills/your-skill-name/ - Include a
SKILL.mdwith clear AI directives - Open a PR with a description of what the skill covers
MIT Β© UnLince
