Game Engine Patterns
Use when the user asks about the game loop, fixed timestep, game programming patterns, object pooling, spatial partitioning, command pattern or state machines in games. Produces canonical engine and gameplay pattern implementations. Not for ECS storage internals (use ecs-pattern) or engine-specific APIs (use unity, unreal or godot).
Install
npx skills add j4flmao/agent-skills --skill game-engine-patternsgit clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/game/game-engine/patterns ~/.claude/skills/game-engine-patternsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Game Engine Design Patterns — Deep Engineering Guide
## Purpose
Game engines are the most demanding real-time software systems in common use. They combine graphics, physics, AI, networking, audio, and game logic, all under a hard 16.6 ms/frame budget. This skill covers the canonical design patterns proven across decades of engine work (Unreal, Unity, Doom, Halo, Quake, Minecraft, Godot, CryEngine) plus the newer data-oriented patterns.
## Agent Protocol
### Trigger
"game loop", "fixed timestep", "game programming patterns", "object pooling", "spatial partitioning", "command pattern game", "state machine game".
### Input Context
- Engine or framework
- Problem being solved (loop, spatial queries, pooling...)
- Performance constraints
### Output Artifact
Pattern recommendation with code. No file unless requested.
### Response Format
```
Pattern: {name}
Why: {problem it solves here}
Code: {snippet}
Trade-off: {cost}
```
## 1. The Game Loop
### 1.1 The Canonical Game Loop
```cpp
void GameLoop() {
init();
while (!quitRequested) {
processInput();
update(deltaTime);
render();
}
cleanup();
}
```
### 1.2 Variable vs Fixed Timestep
| Timestep | Pros | Cons | Use case |
|----------|------|------|----------|
| **Variable** | Simple, smooth, no jitter | Non-deterministic physics; network-unsafe | UI, menus, simple games |Details
- Skill name
game-engine-patterns- Repository
- j4flmao/agent-skills
- Path
skills/game/game-engine/patterns/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the Game Engine Patterns skill do?
Use when the user asks about the game loop, fixed timestep, game programming patterns, object pooling, spatial partitioning, command pattern or state machines in games. Produces canonical engine and gameplay pattern implementations. Not for ECS storage internals (use ecs-pattern) or engine-specific APIs (use unity, unreal or godot).
How do I install the Game Engine Patterns skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill game-engine-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Game Engine Patterns popular?
It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.
Related skills
Agent Observability
45j4flmao/agent-skills
Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).
AI Agent Architectures
45j4flmao/agent-skills
Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).
AI Agent Core Loop
45j4flmao/agent-skills
Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).
Godot
45j4flmao/agent-skills
Use when the user asks about Godot 4, GDScript projects, scenes and nodes, Godot C#, GDExtension, Jolt physics in Godot, Godot export templates or Godot performance. Produces Godot 4 project structure, gameplay code and export settings. Not for low-level server APIs and deep optimisation (use godot-gdscript) or Unity (use unity).
Frontend Typescript Patterns
45j4flmao/agent-skills
Use when the user asks about TypeScript in frontend code: generic components, discriminated unions for UI state, type guards and narrowing, type-safe API clients, satisfies, typing props and events. Produces type-safe component and API patterns. Not for TypeScript language basics or compiler setup (use typescript).
Godot Gdscript
45j4flmao/agent-skills
Use when the user asks about advanced GDScript, typed GDScript performance, Godot servers (RenderingServer, PhysicsServer), signals, threading in Godot 4 or bypassing the SceneTree for speed. Produces low-level Godot 4 techniques and profiled optimisations. Not for general Godot project setup (use godot).
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.