game-development · mindrally — скилл для Claude Code: что делает и как установить
Задаёт правила и архитектурные шаблоны для разработки игр на Unity с C# и скриптинга на Lua. Помогает писать чистый код компонентов и оптимизировать производительность.
npx skills add Mindrally/skills --skill game-development -a claude-codeЧто делает game-development
Скилл настраивает агента на работу с движком Unity и языком Lua. В части Unity он предписывает использовать ScriptableObject для данных и конфигураций, TryGetComponent для защиты от ошибок ссылок на null, систему TextMeshPro вместо устаревшего Text и атрибут [SerializeField] для инспектора. Для ресурсоёмких задач инструкция требует подключать Unity Job System и организовывать пулинг объектов.
Для Lua фокус сделан на контроле памяти. Скрипты строятся на модулях. Агент будет делать переменные локальными, переиспользовать таблицы, применять слабые ссылки для кэширования и перехватывать сбои через pcall или xpcall. Без Unity или Lua скилл бесполезен.
Какие задачи решает
- настроить пулинг объектов и пакетную отрисовку в Unity
- структурировать данные игры через ScriptableObject
- оптимизировать расход памяти при работе с таблицами в Lua
- организовать перехват ошибок с помощью pcall и xpcall
Примеры запросов агенту
- Напиши контроллер стрельбы на C# для Unity с пулингом снарядов через MonoBehaviour.
- Создай модуль инвентаря на Lua с переиспользованием таблиц и обработкой ошибок через pcall.
- Вынеси параметры характеристик оружия в ScriptableObject с атрибутами SerializeField.
Как установить game-development
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill game-development -a claude-code2Вручную: положить файлы
~/.claude/skills/game-development/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/game-development/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill game-development -a codex2Вручную: положить файлы
.agents/skills/game-development/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill game-development -a cursor2Вручную: положить файлы
.cursor/skills/game-development/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills game-development2Вручную: положить файлы
.github/skills/game-development/SKILL.md1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill game-development -a gemini-cli2Командой платформы
gemini skills install https://github.com/Mindrally/skills --path game-developmentВручную: положить файлы
.devin/skills/game-development/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill game-development -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о game-development
Как установить game-development в Claude Code?
Выполните в терминале команду npx skills add Mindrally/skills --skill game-development -a claude-code.
Что делает скилл game-development?
Он задаёт модели правила написания кода для Unity на C# и скриптов на Lua. Скилл включает стандарты именования, разделение логики и данных, организацию пулинга объектов и безопасную работу с памятью в Lua.
Какие соглашения по стилю кода Unity включает этот скилл?
Инструкция предписывает использовать PascalCase для публичных членов, camelCase для приватных, разграничивать блоки кода через #region и скрывать код редактора под директивой #if UNITY_EDITOR.
Исходный текст
SKILL.md · Apache-2.0
--- name: game-development description: Expert guidance for game development with C#/Unity, Lua scripting, and best practices for scalable game architecture metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Game Development You are an expert in game development with deep knowledge of C#, Unity, Lua, and scalable game architecture. ## C# Unity Game Development ### Key Principles - Write clear, technical responses with precise C# and Unity examples - Use Unity's built-in features and tools wherever possible to leverage its full capabilities - Follow Unity's component-based architecture to promote reusability and separation of concerns ### Unity Best Practices - Use MonoBehaviour for game object behaviors and ScriptableObjects for data containers - Leverage Unity's physics engine, Input System, and UI system appropriately - Implement the Component pattern for modular, reusable functionality - Use Coroutines for time-based operations and async workflows ### Error Handling - Use try-catch blocks for exception handling - Leverage Unity's Debug class for logging and debugging - Implement proper null checks and validation ### Unity-Specific Guidelines - Use Prefabs for reusable game objects - Implement proper animation systems using Animator and Animation Controllers - Configure lighting and rendering settings appropriately - Use Unity's testing frameworks for unit and integration tests - Organize assets using Asset Bundles for efficient loading - Use Tags and Layers for object categorization and collision filtering ### Performance Optimization - Implement object pooling for frequently instantiated objects - Use draw call batching to reduce rendering overhead - Implement LOD (Level of Detail) systems for complex meshes - Leverage Unity's Job System for multi-threaded operations - Optimize physics with appropriate collision layers and simplified colliders ## Lua Development Best Practices ### Key Principles - Write clear, concise Lua code that follows idiomatic patterns - Leverage Lua's dynamic typing while maintaining code clarity - Prioritize modularity and code reusability ### Code Organization - Use modules to organize code logically - Keep functions small and focused - Use local variables whenever possible for performance ### Error Handling - Use pcall and xpcall for protected function calls - Implement proper error messages and stack traces - Handle nil values gracefully ### Memory Management - Be mindful of table creation in loops - Reuse tables when possible - Use weak tables for caching when appropriate ### Performance - Prefer local variables over global - Cache frequently accessed values - Use string.format for string concatenation in loops ### Naming Conventions - snake_case for variables and functions - PascalCase for module names - UPPERCASE for constants - Prefix private items with underscore ## C# Unity Expert Developer Guidelines ### Code Style Conventions - Use PascalCase for public members, camelCase for private members - Use #regions to organize code sections - Wrap editor-only code with #if UNITY_EDITOR - Use [SerializeField] for private fields that need Inspector access ### Best Practices - Use TryGetComponent to avoid null reference exceptions - Prefer TextMeshPro over legacy Text components - Implement object pooling for frequently instantiated objects - Use ScriptableObjects for game configuration and data - Leverage Coroutines for time-based operations - Use the Job System for CPU-intensive operations ### Cross-Platform Considerations - Test on target platforms early and often - Use platform-specific compilation directives when needed - Optimize for different hardware capabilities - Consider input differences across platforms
© Mindrally · Apache-2.0 · Mindrally/skills
Похожие скиллы
Всё по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →Сначала — game-development от других авторов.