agentleFS
devdavvdevdavv/unity-ai-workflow/.claude/skills/uw-unity-project-setup/SKILL.md

uw-unity-project-setup

Skill44 starsChanged 8 months agoMITView on GitHub

Full project initialization wizard from ProjectConfig, including folders, packages, Git, and MCP setup. Use when setting up a new Unity project from scratch, creating the folder structure, or bootstrapping infrastructure. Triggers on requests like "set up a new project", "create folder structure", "initialize the project", or "/uw-cmd-setup-project". Reads ProjectConfig.yaml for all decisions.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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
  1. Very specific:

    Ensure docs/ProjectConfig.yaml is filled out.

    line 11
  2. Distinctive:

    Check which MCP servers are available (Unity MCP for in-editor operations, GitHub for version control).

    line 13
  3. Very specific:

    Manual fallback (no MCP): Write an editor script (Editor/Setup/PackageInstaller.cs) using UnityEditor.PackageManager.Client.Add() to …

    line 37
  4. Very specific:

    Add ENABLE_LOGS define for Development builds

    line 41
  5. Very specific:

    Create .gitignore (Unity template)

    line 44
  6. Distinctive:

    Use GitHub MCP if available, otherwise git CLI

    line 47
  7. Very specific:

    Manual fallback (no MCP): Write an editor script (Editor/Setup/ProjectConfigurator.cs) using PlayerSettings and GraphicsSettings APIs to …

    line 53
  8. Distinctive:

    Ensure GDD, TDD, GFD, PRD, SprintPlan are ready to be filled

    line 57
  9. Very specific:

    If ProjectConfig.yaml → prompt_logging: true, create docs/PromptLog.md

    line 58
  10. Distinctive:

    After core setup, check ProjectConfig for features that need additional skill guidance:

    line 69
  11. Very specific:

    Never: create folders inside Assets/ without _Project/ prefix.

    line 92
  12. Very specific:

    Use uw-unity-feature-scaffold for feature modules.

    line 93
  13. Very specific:

    Use Resources/ sparingly — prefer Addressables for production.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Unity Project Setup

Orchestrate complete project initialization from ProjectConfig.yaml.

Before You Start

  1. Ensure docs/ProjectConfig.yaml is filled out.
  2. Unity project must be created and open in Editor.
  3. Check which MCP servers are available (Unity MCP for in-editor operations, GitHub for version control).

Steps (in order)

1. Verify ProjectConfig

Confirm Unity version, packages, folder strategy, networking choice.

Required fields — warn the user if any are missing or empty:

  • project_name
  • unity_version
  • render_pipeline
  • scripting_backend
  • folder_strategy

2. Create Folder Structure

Based on folder_strategy, create Assets/_Project/ with standard subfolders:

  • Core/Scripts/ + Core.asmdef
  • Core/Tests/EditMode/ + Core.Tests.EditMode.asmdef (so the test runner skill has a test assembly from day one)
  • Features/ or Scripts/ (depending on strategy)
  • Art/, Audio/, UI/, Prefabs/, Scenes/, Tests/

3. Install Packages

From ProjectConfig.yaml → packages, install via Unity MCP manage_packages if available.

Manual fallback (no MCP): Write an editor script (Editor/Setup/PackageInstaller.cs) using UnityEditor.PackageManager.Client.Add() to install packages programmatically. The user runs it once from the Unity menu, then it can be deleted.

4. Generate Core Utilities

  • GameDebug.cs via uw-unity-debugging skill
  • Add ENABLE_LOGS define for Development builds

5. Git Setup

  • Create .gitignore (Unity template)
  • Create develop branch
  • Initial commit
  • Use GitHub MCP if available, otherwise git CLI

6. Configure Editor

Via Unity MCP if available:

  • Render pipeline, color space (Linear), scripting backend (IL2CPP)

Manual fallback (no MCP): Write an editor script (Editor/Setup/ProjectConfigurator.cs) using PlayerSettings and GraphicsSettings APIs to set render pipeline, color space, scripting backend, and target platforms. Menu item under Tools > Project Setup > Apply Settings.

7. Documentation Setup

  • Copy template files from templates/ → docs/
  • Ensure GDD, TDD, GFD, PRD, SprintPlan are ready to be filled
  • If ProjectConfig.yaml → prompt_logging: true, create docs/PromptLog.md

8. Report MCP Status

✅ Unity MCP — Connected
✅ GitHub MCP — Connected
⬜ Linear MCP — Not configured

Conditional Setup

After core setup, check ProjectConfig for features that need additional skill guidance:

ProjectConfig FieldConditionAction
architecture_patterndi-firstReference uw-dependency-injection skill for Reflex container setup
networkingnot noneReference uw-network-setup skill for networking boilerplate
feel_toolsany non-none valueReference uw-game-feel-integrator skill for middleware integration
ui_systemUIToolkit or MixedReference uw-ui-toolkit-binder skill for data binding setup

Mention these as next steps — don't execute them during project setup.

Asset Loading Strategy

ApproachWhen to Use
Direct referencesPrefabs/SOs referenced in Inspector — always loads with scene
Resources/Small-scale or early development. Loads synchronously. Everything in Resources/ ships in build.
AddressablesProduction default. Async loading, memory management, optional remote hosting. Install com.unity.addressables.
AssetBundlesAdvanced/custom CDN pipelines. Addressables wraps this — prefer Addressables unless you need low-level control.

For persistent data: encrypt PlayerPrefs values at minimum. For production, prefer server-side storage with authentication.

Rules

  • Never create folders inside Assets/ without _Project/ prefix.
  • Use uw-unity-feature-scaffold for feature modules.
  • Use Resources/ sparingly — prefer Addressables for production.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.