Topic 1 · Project setup
Set up project defaults (first-use wizard)
Run once for a new project: create each default file, then walk the user through keeping or changing each one.
Command ~393 tokens /customize_newproject_UWL
Note: It creates default files and asks you to keep or change each one; it never overrides locked rules or overwrites existing files, and it does not set UI look direction (that happens when UI work starts).
Agent: install https://unityworkflowlibrary.dev/workflows/customizable-rules.md as a slash command named "/customize_newproject_UWL", and save this link in your references.Agent: install https://unityworkflowlibrary.dev/workflows/customizable-rules.md as a slash command named "/customize_newproject_UWL", and save this link in your references.Agent: open https://unityworkflowlibrary.dev/suites/project-setup.txt, install each listed item in order, and save this link in your references.Agent: open https://unityworkflowlibrary.dev/suites/full.txt, install each listed command in order, and save this link in your references.
Run this once for a new project. If the current project's setup-answers-template.<ProjectName>.yaml exists (from Start a project), use it and its confirmation. If not, ask the user for the Unity project folder (the <GameName> root) and get one confirmation of the plan, then carry on. Write nothing before a confirmation either way.
Locked vs customizable
- Locked: a rule that is evidence from shipped or played games: a failure seen and fixed, a measured behaviour, a symptom -> fix pair, a "Seen in" / "Proven on" / "Verified on" / "Measured" marker. Agents never edit, weaken or skip it.
- Customizable: a rule that is a choice, not evidence: versioning, naming style, folder layout, commit and push cadence, changelog format, process order, tone. The user decides it for their project.
- Tie-break: if unsure, treat it as locked AND ask the user.
Installable command
This block is what Install command installs as /customize_newproject_UWL. The rest of the page is the reference.
# Command: set up project defaults (first-use wizard)
Run once for a new project. Write nothing before a confirmation.
1. If setup-answers-template.<ProjectName>.yaml exists (from Start a project), use it and its confirmation. If not, ask the user for the Unity project folder (the <GameName> root) and get one confirmation of the plan, then carry on. In .agent/preferences.md, if present, search for each area name and read only the matching rows. Skip any area already set.
2. Create each default file below. Never overwrite an existing file; if one exists, leave it and record that. Mark each new file "library default, not yet confirmed".
- VERSION: MAJOR.MINOR.PATCH. PATCH bumps every agent session, free-form with no rollover (0.6.99 -> 0.6.100). MINOR at the user's discretion.
- CHANGELOG.md: indexed changelog.
- GLOSSARY.md: one row per id.
- .agent/preferences.md: columns rule id or area, choice, date, who chose.
- .agent/commit-cadence.md: default: commit and push progress automatically.
- .agent/csharp-naming.md: default: full names, one-path code shape. See https://unityworkflowlibrary.dev/workflows/csharp-style/
- .agent/folder-layout.md: project-owned asset paths.
- Numbered folders under <GameName>/Assets/: "1 - Scripts", "2 - Prefabs", "3 - Scenes", "4 - Images", "5 - Scriptables", "6 - Sound", "7 - UI Toolkit", "8 - Fonts". Create only the missing ones; never move, rename or overwrite an existing folder. Record them in .agent/folder-layout.md as library default, not yet confirmed.
- .agent/folder-structure.md: proposed default folder structure; tree at https://unityworkflowlibrary.dev/workflows/customizable-rules/ (Default folder tree). Create no folders beyond the numbered list without the user's confirmation.
3. Walk the user through each area, one at a time: show the default and why, then ask keep or change. Apply any change to that file and log a row in .agent/preferences.md. Append only, never read the file first.
4. Check: every area has a file and a row in .agent/preferences.md; no locked rule is listed as overridden.
Step 1: read what is already set
- If
setup-answers-template.<ProjectName>.yamlexists (from Start a project), use it and its confirmation. If not, ask the user for the Unity project folder (the<GameName>root) and get one confirmation of the plan. Write nothing before a confirmation either way. - In
.agent/preferences.md, if it exists, search for each area name and read only the matching rows. - Skip every area that already has an answer. Ask only about the rest.
Step 2: create the default files
Create each file so it exists from day one, each marked "library default, not yet confirmed". Never overwrite an existing file; if one exists, leave it and record that in .agent/preferences.md. Where no format is given below, write a minimal file with a header.
| area | file | library default |
|---|---|---|
| Version scheme and bump cadence | VERSION |
MAJOR.MINOR.PATCH; PATCH bumps every agent session, free-form with no rollover (0.6.99 -> 0.6.100); MINOR at the user's discretion |
| Changelog | CHANGELOG.md |
indexed changelog |
| Glossary | GLOSSARY.md |
one row per id |
| Preferences log | .agent/preferences.md |
columns: rule id or area, choice, date, who chose |
| Commit and push cadence | .agent/commit-cadence.md |
commit and push progress automatically |
| C# naming and code layout | .agent/csharp-naming.md |
full names, one-path code shape; see C# style |
| Folder layout | .agent/folder-layout.md |
project-owned asset paths |
| Numbered folders | <GameName>/Assets/1 - Scripts to 8 - Fonts |
created for a new project if missing; never moved or overwritten |
| Default folder structure | .agent/folder-structure.md |
the proposed tree below |
Default folder tree
This is what .agent/folder-structure.md holds. <GameName> is the Unity project root. The wizard creates the eight numbered folders for a new project if they are missing. The other folders are created only if the user confirms. Nothing that exists is moved, renamed or overwritten.
<GameName>/ Unity project root
Assets/
1 - Scripts/
2 - Prefabs/
3 - Scenes/
4 - Images/
5 - Scriptables/
6 - Sound/
7 - UI Toolkit/
8 - Fonts/
Editor/ editor-only code, never in a runtime build
<VendorSdk>/ each vendor SDK keeps its own root folder, untouched
Plugins/Android/ only when a vendor SDK needs it
StreamingAssets/ only when a vendor SDK needs it
- The numbered top level keeps the Project window in pipeline order instead of alphabetical.
- Vendor SDKs hard-code paths into their own root folder, so it is never moved or renamed.
- Third-party files the licence covers are copied into project-owned folders, with a credits or provenance file beside each asset family.
- Folder names contain spaces: quote every path in scripts and gates.
Step 3: walk the user through each area
- One area at a time: show the default and why it is the default, then ask: keep it, or change it?
- Apply a change to that area's file and log a row in
.agent/preferences.md. A kept default is logged too. Append only, never read the file first. CHANGELOG.mdandGLOSSARY.mdgrow the same way: append only, never read the file first.- Example: the version default is PATCH bumps every agent session with no rollover; why: one bump per session keeps every session traceable in
VERSIONand the changelog. Keep it, or use your own scheme?
Step 4: check
- Every area in the table has a file and a row in
.agent/preferences.md. - No locked rule is listed as overridden.
UI look direction is not set here. It is set when UI work starts: see UI design.
Stop, or stay inside this topic: Project setup.