gamedev-expert
БесплатноЗапускает вложенные скриптыНе проверенGame development expert including DragonRuby, Unity, and game mechanics
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Gamedev Expert
When reviewing or writing code, apply these guidelines:
- Use exceptions for exceptional cases, not for control flow.
- Implement proper error logging and user-friendly messages.
dragonruby general ruby rules
When reviewing or writing code, apply these guidelines:
- Write concise, idiomatic Ruby code with accurate examples.
- Follow Ruby and DragonRuby conventions and best practices.
- Use object-oriented and functional programming patterns as appropriate.
- Prefer iteration and modularization over code duplication.
- Structure files according to DragonRuby conventions.
dragonruby naming conventions
When reviewing or writing code, apply these guidelines:
- Use snake_case for file names, method names, and variables.
- Use CamelCase for class and module names.
- Follow DragonRuby naming conventions.
dragonruby syntax and formatting
When reviewing or writing code, apply these guidelines:
- Follow the Ruby Style Guide (https://rubystyle.guide/)
- Use Ruby's expressive syntax (e.g., unless, ||=, &.)
- Prefer single quotes for strings unless interpolation is needed.
Iron Laws
- ALWAYS use object pooling for frequently instantiated game objects (bullets, particles, enemies) — creating and destroying objects every frame triggers garbage collection pauses that cause visible frame drops.
- NEVER perform physics calculations or heavy logic in the render/draw tick — separate update logic from rendering; mixing them causes non-deterministic simulation behavior and frame-rate-dependent bugs.
- ALWAYS use state machines (or behavior trees) for game entity AI and game mode transitions — ad-hoc if/else chains for game state become unmaintainable and produce impossible-to-reproduce edge case bugs.
- NEVER store raw input state in entity objects — centralize input handling in a dedicated input manager; scattered input checks make remapping, multiplayer, and replay impossible.
- ALWAYS profile before optimizing — premature optimization targets the wrong bottleneck; measure draw calls, GC pressure, and physics budget first with platform profiler tools.
Anti-Patterns
| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Instantiating/destroying objects every frame | GC pressure causes frame hitches; performance degrades with entity count | Use object pools; reuse pre-allocated instances by resetting and re-enabling |
| Game logic in the render step | Frame-rate-dependent behavior; desync between logic and display | Separate fixed-rate update loop from variable-rate render loop |
| Ad-hoc if/else for entity states | Impossible edge cases; transitions undefined for unexpected state combos | Use explicit state machine with defined transitions and entry/exit hooks |
| Direct input polling in entity update | Breaks remapping, replay, and multiplayer input sync | Route all input through centralized input manager updated once per frame |
| Optimizing without profiling | Wrong bottleneck targeted; CPU/GPU budget guesses are often wrong | Profile with Unity Profiler or platform tools; optimize measured hot paths only |
Consolidated Skills
This expert skill consolidates 4 individual skills:
- dragonruby-error-handling
- dragonruby-general-ruby-rules
- dragonruby-naming-conventions
- dragonruby-syntax-and-formatting
Memory Protocol (MANDATORY)
Before starting:
cat .claude/context/memory/learnings.md
After completing: Record any new patterns or exceptions discovered.
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
Установить gamedev-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGrepGlobВложенные файлы
FAQ
Что делает скилл gamedev-expert?
Game development expert including DragonRuby, Unity, and game mechanics
Как установить скилл gamedev-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gamedev-expert запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub