Unity Game Project taste — промпт для ChatGPT: правила Unity-проекта
Промпт Unity Game Project taste для ChatGPT с правилами разработки Unity-игры. Задаёт подход к коду, ассетам, тестам и сборкам проекта.
CC0-1.0 ★ 178 201 обновлён 2026-10-24
Открыть на GitHubЧто делает Unity Game Project taste
Промпт задаёт набор инженерных правил для Unity-проекта: фиксировать версию редактора, хранить бинарные ассеты через Git LFS и делить код на сборки по функциям. Логику игры он предлагает держать в обычных классах C#, а MonoBehaviour использовать как тонкие адаптеры. Данные для настройки выносятся в ScriptableObject.
Правила также охватывают производительность, загрузку контента через Addressables, систему ввода и устройство префабов. Профилировать игру предлагается на самом медленном целевом устройстве, а не только в редакторе. Для CI заданы тесты Edit Mode и Play Mode на каждом pull request и автоматические сборки целевых платформ.
Промпт рекомендует вести сохранения с версиями и переносить старые данные при загрузке. Для Claude Code файл указан по пути .claude/commands/prompts.csv.md.
Какие задачи решает
- зафиксировать правила работы с версиями Unity и Git LFS
- разделить игровую логику и компоненты MonoBehaviour
- задать подход к Addressables, вводу и объектному пулу
- описать проверки и сборки Unity-проекта в CI
- спланировать миграцию старых сохранений
Примеры запросов агенту
- Примени эти правила к архитектуре моего Unity-проекта.
- Проверь, как организованы тесты и сборки этого Unity-проекта.
- Предложи структуру для кода, префабов и данных игры по этим правилам.
Как установить Unity Game Project taste
Как использовать
Вставьте текст в начало диалога или в инструкции проекта
Вручную: положить файлы
.claude/commands/prompts.csv.mdВопросы об Unity Game Project taste
Как установить Unity Game Project taste в Claude Code?
Добавьте файл промпта по пути .claude/commands/prompts.csv.md.
Что делает Unity Game Project taste?
Задаёт рекомендации по архитектуре Unity-игры, работе с ассетами, производительности, тестированию и CI-сборкам.
Какие правила он задаёт для CI?
Промпт предлагает запускать тесты Edit Mode и Play Mode на каждом pull request и автоматически собирать целевые платформы.
Исходный текст
prompts.csv · CC0-1.0
# Unity Game Project taste of a shipping-focused game developer - Pin the Unity editor to one LTS version per project and upgrade it deliberately in its own branch. Confidence: 0.90 - Use Git with Git LFS for binary assets, plus a .gitattributes file and Unity's smart merge tool for scenes and prefabs. Confidence: 0.85 - Set asset serialization to Force Text and keep visible meta files so changes can be reviewed and merged. Confidence: 0.90 - Split code into assembly definitions per feature to keep compile times short and dependencies explicit. Confidence: 0.85 - Keep gameplay logic in plain C# classes that can be unit-tested, with MonoBehaviours acting as thin adapters. Confidence: 0.80 - Use ScriptableObjects for designer-tunable data such as weapon stats and levels, not hard-coded constants. Confidence: 0.85 - Avoid GameObject.Find and string-based lookups at runtime; wire references in the inspector or through a simple composition root. Confidence: 0.85 - Cache component references in Awake instead of calling GetComponent every frame. Confidence: 0.90 - Avoid allocations in Update loops and use object pooling for bullets, effects and other frequently spawned objects. Confidence: 0.90 - Profile on the slowest target device with the Unity Profiler before optimizing, not only in the editor. Confidence: 0.90 - Load content with Addressables instead of the Resources folder, so memory and download size stay under control. Confidence: 0.80 - Use the new Input System with action maps, so keyboard, gamepad and touch share the same gameplay code. Confidence: 0.80 - Prefer async loading and coroutines or async/await for long operations, and never block the main thread on I/O. Confidence: 0.85 - Keep prefabs small and use prefab variants and nested prefabs instead of duplicating whole hierarchies. Confidence: 0.80 - Run Edit Mode and Play Mode tests with the Unity Test Framework in CI on every pull request. Confidence: 0.75 - Build every target platform automatically in CI, such as with GameCI, so broken platform builds are caught the same day. Confidence: 0.80 - Treat compiler warnings and console errors as bugs, and keep the console clean in every scene. Confidence: 0.75 - Agree on fixed folder conventions like Art, Audio, Prefabs, Scenes and Scripts, and enforce them in review. Confidence: 0.70 - Make save data versioned and migrate old saves on load instead of breaking players' progress after an update. Confidence: 0.85 - Strip debug menus and cheats from release builds with scripting define symbols. Confidence: 0.80
© f · CC0-1.0 · f/prompts.chat