Skip to content

UnLince/The-Unity-Architect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ The Unity Architect

An expert AI agent framework for Unity development.
Skills, best practices, and utility scripts β€” ready to install in one command.

npm version license Unity 2021+ Works with Cursor, Antigravity, Claude


You don't have to be a Unity expert to build great games.

You just need the right architect in your corner.


The Unity Architect Banner

πŸ—οΈ The Unity Architect

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.


πŸ”— The Missing Link: Unity MCP Server

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.

For developers who don't know how to code yet

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.

For developers who know Unity well

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.


What is this, technically?

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)

Quick Install

Run this from the root of your Unity project:

npx the-unity-architect

That's it. The installer will:

  1. Create a skills/ folder with expert AI guidance files
  2. Create an execution/ folder with diagnostic scripts
  3. Inject rules into your AI tool's config so it reads the skills automatically

Options

npx the-unity-architect --dry-run   # Preview what will be installed (no changes)
npx the-unity-architect --force     # Skip Unity project detection, install anywhere

What Gets Installed

skills/ β€” AI Knowledge Base

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 logs
  • 02-state-and-serialization.md β€” Inspector state, serialization pitfalls
  • 03-memory-and-gc-profiling.md β€” Memory leaks, GC pressure, Profiler workflow
  • 04-dots-and-ecs-diagnostics.md β€” DOTS/ECS specific debugging techniques
  • 05-rendering-and-gpu-bottlenecks.md β€” GPU profiling and render pipeline issues

Architecture & Best Practices modules:

  • 01-planning-and-workflow.md β€” Technical planning before coding
  • 02-clean-code-and-conventions.md β€” Naming, SOLID, Unity conventions
  • 03-core-design-patterns.md β€” ScriptableObject events, State Machine, Command pattern
  • 04-modular-systems-and-glue-code.md β€” Service Locator, dependency injection
  • 05-ui-and-presentation-architecture.md β€” MVP/MVC for Unity UI
  • 06-combat-and-vfx-decoupling.md β€” Data-driven combat, pooling VFX
  • 07-performance-coding-patterns.md β€” Burst, DOTS, Job System, object pooling

execution/ β€” Diagnostic Scripts

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

How the AI Uses This

After installation, your AI assistant will automatically:

  1. Read the relevant SKILL.md before writing code or debugging
  2. Run diagnostic scripts when asked to audit or inspect the project
  3. Follow expert Unity patterns from the knowledge modules
  4. 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.


Works With

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.


Alternative Install (No Node.js required)

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 -

Project Structure

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

Contributing

Contributions are welcome! If you have Unity skills, patterns, or scripts to add:

  1. Fork the repo
  2. Add your skill folder under templates/skills/your-skill-name/
  3. Include a SKILL.md with clear AI directives
  4. Open a PR with a description of what the skill covers

License

MIT Β© UnLince

About

Architect. Debug. Ship. A senior-grade AI framework for Unity that turns 'it doesn't work' into 'fixed systematically'. High-agency development for visionaries and senior devs alike.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors