# ardanr3/unity-xr-ai-agent-playbook architecture

> Architecture diagram of the GitHub repository ardanr3/unity-xr-ai-agent-playbook, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ardanr3/unity-xr-ai-agent-playbook
- Repository: https://github.com/ardanr3/unity-xr-ai-agent-playbook

## Overview

This repository is a documentation-and-template playbook for using AI coding agents on Unity projects, not a Unity runtime or application. Its user workflow is to consult the SOP, install the quality rules, choose a task-specific prompt, and use it to guide integration, spatial-UI work, Play Mode verification, or release. The README documents these links and the prompt roles; no source excerpts were provided, so the graph reflects documented relationships only.

Main entry points: [`README.md`](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/README.md) (Playbook overview), [`docs/UNITY_AI_AGENT_WORKFLOW_GUIDE.md`](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/docs/UNITY_AI_AGENT_WORKFLOW_GUIDE.md) (Workflow SOP), [`templates/.agent/rules/xr-quality-standards.md`](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/.agent/rules/xr-quality-standards.md) (XR quality rules), [`templates/prompts/01-merge-and-integration.md`](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/prompts/01-merge-and-integration.md) (Merge integration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guidance["Workflow guidance"]
  node_readme["Playbook overview<br/>[README.md]"]
  node_guide["Workflow SOP"]
end

subgraph group_standards["Quality standards"]
  node_quality["XR quality rules"]
end

subgraph group_prompts["Task prompts"]
  node_merge["Merge integration"]
  node_spatial["Spatial UI comfort"]
  node_qa["Play Mode QA"]
  node_release["Release check-in"]
end

node_team(("Unity project team"))

node_team -->|"consults"| node_readme
node_readme -->|"links to"| node_guide
node_readme -->|"installs"| node_quality
node_readme -->|"selects prompt"| node_merge
node_readme -->|"selects prompt"| node_spatial
node_readme -->|"selects prompt"| node_qa
node_readme -->|"selects prompt"| node_release

click node_readme "https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/README.md"
click node_guide "https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/docs/UNITY_AI_AGENT_WORKFLOW_GUIDE.md"
click node_quality "https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/.agent/rules/xr-quality-standards.md"
click node_merge "https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/prompts/01-merge-and-integration.md"
click node_spatial "https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/prompts/02-spatial-ui-comfort.md"
click node_qa "https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/prompts/03-playmode-e2e-qa.md"
click node_release "https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/prompts/04-release-build-checkin.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_readme,node_guide toneBlue
class node_quality toneAmber
class node_merge,node_spatial,node_qa,node_release toneMint
class node_team toneIndigo
```

## Components

### Workflow guidance

- [Playbook overview](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/README.md): `README.md`
- [Workflow SOP](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/docs/UNITY_AI_AGENT_WORKFLOW_GUIDE.md): `docs/UNITY_AI_AGENT_WORKFLOW_GUIDE.md`

### Quality standards

- [XR quality rules](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/.agent/rules/xr-quality-standards.md): `templates/.agent/rules/xr-quality-standards.md`

### Task prompts

- [Merge integration](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/prompts/01-merge-and-integration.md): `templates/prompts/01-merge-and-integration.md`
- [Spatial UI comfort](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/prompts/02-spatial-ui-comfort.md): `templates/prompts/02-spatial-ui-comfort.md`
- [Play Mode QA](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/prompts/03-playmode-e2e-qa.md): `templates/prompts/03-playmode-e2e-qa.md`
- [Release check-in](https://github.com/ardanr3/unity-xr-ai-agent-playbook/blob/main/templates/prompts/04-release-build-checkin.md): `templates/prompts/04-release-build-checkin.md`

### Other components

- **Unity project team**

## Connections

- Unity project team → Playbook overview: consults (evidence: `README.md`)
- Playbook overview → Workflow SOP: links to (evidence: `README.md`)
- Playbook overview → XR quality rules: installs (evidence: `README.md`)
- Playbook overview → Merge integration: selects prompt (evidence: `README.md`)
- Playbook overview → Spatial UI comfort: selects prompt (evidence: `README.md`)
- Playbook overview → Play Mode QA: selects prompt (evidence: `README.md`)
- Playbook overview → Release check-in: selects prompt (evidence: `README.md`)
