S
sgonzalezrozo/unity-architecture-agents
Architecture rules and a working process for AI coding assistants on Unity projects.
更新 2026-11-19
在 GitHub 查看 ↗直链 · 无中转页
- ★ 数取值
- 0 ★ · sgonzalezrozo/unity-architecture-agents · 取自 GitHub 搜索 API · (2026-11-19 20:00:48 核对)
- 来源明细
- 从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
- 收录与活跃
- 收录于 2026-11-18 · 最近见到 2026-11-20 · 共见到 3 次 · 被 2 个来源列出
- 评分构成
- 综合分 203 · 2 个来源 · repo
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
sgonzalezrozo/unity-architecture-agents;我们收录于 2026-11-18;最近见到 2026-11-20。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。README 原文(英文,未翻译) · 在 GitHub 读完整 README →
# Unity Architecture Agents
以下摘录自该仓库的 README(片段)
Architecture rules and a working process for AI coding assistants on Unity projects.
Unity Architecture Agents is a free, open-source AGENTS.md and CLAUDE.md rule set for AI coding agents on Unity 6 projects. It gives agents a strict MVC architecture for uGUI, Roslyn analyzers that turn the rules into compile errors, a batch-mode verify script, and a Claude Code hook that won't let an agent finish with a broken build. Templates cover Cursor, GitHub Copilot and Rider AI Assistant. It works with Unity MCP servers and the Unity CLI.
## What's included
| File | Purpose |
| AGENTS.md | Entry point: stack, philosophy and where to read next |
| Developer overview | One-file summary for human developers |
| Agent workflow | Task classification, plan format, checklist, Definition of Done and Git |
| MVC | How Models, Views and Controllers work together |
| Feature structure | Folders, naming, and screen composition |
| Dependency injection | Bindings, installers and references |
| Backend integration | How features talk to a backend |
| UI patterns | Clickable elements, visual states, tabs, lists and layouts |
| Optional packages | How an agent detects optional packages and adapts its code |
| C# standards | Style, performance, async, logging and tests |
| Editor tools | How an agent verifies its work with Unity MCP, the Unity CLI or verify.sh |
| Examples | Three complete features with invented names: a backend feature, custom input and a filtered list |
| Templates | .editorconfig, Copilot, Cursor and Rider rules, verify.sh and a Claude Code Stop hook |
| Analyzers | Roslyn analyzers that turn the mechanical rules into compile errors |
## How the process scales
| Request | Process |
| Question, explanation, review | Answer directly |
| Small change inside existing classes | Make the change and summarize it |
| New feature, screen, class family or refactor | Plan first, wait for approval |
Before returning code, the agent runs the pre-response checklist. The analyzers turn the mechanical items into compile errors.
## Use it in a project
Add this repository as a Git submodule. Unity ignores a folder that starts with a dot, so .ai/ is never imported and creates no .meta files.
bash
git submodule add https://github.com/sgonzalezrozo/unity-architecture-agents.git .ai
Assistants look for their instructions at the project root, and a submodule can only add a folder. Add these two small files at the root to point to it.
AGENTS.md:
markdown
# AGENTS.md
All rules live in the .ai submodule. Read .ai/AGENTS.md completely, then open only the document it points to.
If .ai/ is empty, run git submodule update --init.
CLAUDE.md:
text
@.ai/AGENTS.md
Keep rules that only apply to one project in that project's root AGENTS.md.
### Copilot, Rider and code style
These tools only read files from fixed paths in your project, so copy the ones you use:
bash
cp .ai/templates/.editorconfig .
mkdir -p .github .aiassistant/rules
cp .ai/templates/copilot-instructions.md .github/
cp .ai/templates/rider-project-rule.md .aiassistant/rules/project.md
mkdir -p .cursor/rules
cp .ai/templates/cursor-rule.mdc .cursor/rules/unity-architecture.mdc
Commit these copies in your project. In Rider, set the rule's type to Always.
Unity Architecture Agents is a free, open-source AGENTS.md and CLAUDE.md rule set for AI coding agents on Unity 6 projects. It gives agents a strict MVC architecture for uGUI, Roslyn analyzers that turn the rules into compile errors, a batch-mode verify script, and a Claude Code hook that won't let an agent finish with a broken build. Templates cover Cursor, GitHub Copilot and Rider AI Assistant. It works with Unity MCP servers and the Unity CLI.
## What's included
| File | Purpose |
| AGENTS.md | Entry point: stack, philosophy and where to read next |
| Developer overview | One-file summary for human developers |
| Agent workflow | Task classification, plan format, checklist, Definition of Done and Git |
| MVC | How Models, Views and Controllers work together |
| Feature structure | Folders, naming, and screen composition |
| Dependency injection | Bindings, installers and references |
| Backend integration | How features talk to a backend |
| UI patterns | Clickable elements, visual states, tabs, lists and layouts |
| Optional packages | How an agent detects optional packages and adapts its code |
| C# standards | Style, performance, async, logging and tests |
| Editor tools | How an agent verifies its work with Unity MCP, the Unity CLI or verify.sh |
| Examples | Three complete features with invented names: a backend feature, custom input and a filtered list |
| Templates | .editorconfig, Copilot, Cursor and Rider rules, verify.sh and a Claude Code Stop hook |
| Analyzers | Roslyn analyzers that turn the mechanical rules into compile errors |
## How the process scales
| Request | Process |
| Question, explanation, review | Answer directly |
| Small change inside existing classes | Make the change and summarize it |
| New feature, screen, class family or refactor | Plan first, wait for approval |
Before returning code, the agent runs the pre-response checklist. The analyzers turn the mechanical items into compile errors.
## Use it in a project
Add this repository as a Git submodule. Unity ignores a folder that starts with a dot, so .ai/ is never imported and creates no .meta files.
bash
git submodule add https://github.com/sgonzalezrozo/unity-architecture-agents.git .ai
Assistants look for their instructions at the project root, and a submodule can only add a folder. Add these two small files at the root to point to it.
AGENTS.md:
markdown
# AGENTS.md
All rules live in the .ai submodule. Read .ai/AGENTS.md completely, then open only the document it points to.
If .ai/ is empty, run git submodule update --init.
CLAUDE.md:
text
@.ai/AGENTS.md
Keep rules that only apply to one project in that project's root AGENTS.md.
### Copilot, Rider and code style
These tools only read files from fixed paths in your project, so copy the ones you use:
bash
cp .ai/templates/.editorconfig .
mkdir -p .github .aiassistant/rules
cp .ai/templates/copilot-instructions.md .github/
cp .ai/templates/rider-project-rule.md .aiassistant/rules/project.md
mkdir -p .cursor/rules
cp .ai/templates/cursor-rule.mdc .cursor/rules/unity-architecture.mdc
Commit these copies in your project. In Rider, set the rule's type to Always.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/sgonzalezrozo-unity-architecture-agents/)
- 来源
- github · https://github.com/sgonzalezrozo/unity-architecture-agents
- 按领域浏览
- 开源项目
- 收录来源
- 2 个独立来源
- 收录于
- 今天
更多条目
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。