Skip to content

77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.

feat(disciplines): add game-feel, game-ui-ux, camera-systems, performance-optimization

AbhishekBarali18902adfa6daa
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index de35d28..2a25710 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -8,7 +8,7 @@
{
"name": "gamedev",
"source": "./",
- "description": "Everything: the master router plus all 62 game-dev skills across every engine, discipline, genre, and workflow.",
+ "description": "Everything: the master router plus all 66 game-dev skills across every engine, discipline, genre, and workflow.",
"skills": [
"./router",
"./skills/godot/godot-gdscript",
@@ -60,6 +60,10 @@
"./skills/disciplines/physics-tuning",
"./skills/disciplines/level-design",
"./skills/disciplines/input-systems",
+ "./skills/disciplines/game-feel",
+ "./skills/disciplines/game-ui-ux",
+ "./skills/disciplines/camera-systems",
+ "./skills/disciplines/performance-optimization",
"./skills/genres/platformer",
"./skills/genres/roguelike",
"./skills/genres/rpg",
@@ -171,7 +175,11 @@
"./skills/disciplines/shader-programming",
"./skills/disciplines/physics-tuning",
"./skills/disciplines/level-design",
- "./skills/disciplines/input-systems"
+ "./skills/disciplines/input-systems",
+ "./skills/disciplines/game-feel",
+ "./skills/disciplines/game-ui-ux",
+ "./skills/disciplines/camera-systems",
+ "./skills/disciplines/performance-optimization"
]
},
{
diff --git a/README.md b/README.md
index 47702c4..915cc74 100644
--- a/README.md
+++ b/README.md
@@ -6,12 +6,12 @@
right skill for whatever you're building.**
[![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
-[![Skills](https://img.shields.io/badge/skills-62%20%2B%20router-brightgreen)](skills/)
+[![Skills](https://img.shields.io/badge/skills-66%20%2B%20router-brightgreen)](skills/)
[![Format](https://img.shields.io/badge/format-Agent%20Skills-informational)](docs/SKILL-FORMAT.md)
[![Last commit](https://img.shields.io/github/last-commit/AbhishekBarali/awesome-gamedev-agent-skills)](https://github.com/AbhishekBarali/awesome-gamedev-agent-skills/commits/main)
[Agent Skills](docs/SKILL-FORMAT.md) are small capability files an AI agent loads only when it
-needs them. This repo gives your agent **62 game-dev skills** and a **router** that picks the
+needs them. This repo gives your agent **66 game-dev skills** and a **router** that picks the
right ones for you. You describe what you're building; the agent loads the matching engine and
task skills before it writes code.
@@ -33,7 +33,7 @@ task skills before it writes code.
## Quick start
**One command, any agent.** The [`skills`](https://www.npmjs.com/package/skills) CLI detects the
-coding agent you already use and installs the router plus all 62 skills into the right place:
+coding agent you already use and installs the router plus all 66 skills into the right place:
```bash
npx skills add AbhishekBarali/awesome-gamedev-agent-skills
@@ -104,7 +104,7 @@ engine), while disciplines, genres, and workflows are additive on top.
## Catalog
-62 skills across 8 categories — each links to its `SKILL.md` below.
+66 skills across 8 categories — each links to its `SKILL.md` below.
### Engines
@@ -173,7 +173,7 @@ engine), while disciplines, genres, and workflows are additive on top.
| [`roblox-luau`](skills/other-engines/roblox-luau/SKILL.md) | Roblox Luau scripting: services, instances, client/server model |
| [`roblox-datastores`](skills/other-engines/roblox-datastores/SKILL.md) | Persistent data with `DataStoreService`: sessions, limits, ordered stores |
-### Disciplines — 9 ([`skills/disciplines/`](skills/disciplines/))
+### Disciplines — 13 ([`skills/disciplines/`](skills/disciplines/))
Cross-engine concepts that load alongside the detected engine skill.
@@ -188,6 +188,10 @@ Cross-engine concepts that load alongside the detected engine skill.
| [`physics-tuning`](skills/disciplines/physics-tuning/SKILL.md) | Tuning feel: fixed timestep, mass/drag, CCD, stability, layers |
| [`level-design`](skills/disciplines/level-design/SKILL.md) | Whitebox/blockout structure, tile/grid layout, pacing |
| [`input-systems`](skills/disciplines/input-systems/SKILL.md) | Input architecture: action mapping, rebinding, multi-device, buffering |
+| [`game-feel`](skills/disciplines/game-feel/SKILL.md) | Juice: screen shake, hit-stop, tweening/easing, squash & stretch, feedback tiers |
+| [`game-ui-ux`](skills/disciplines/game-ui-ux/SKILL.md) | Cross-engine HUD/menus: anchors, resolution scaling, safe areas, focus navigation |
+| [`camera-systems`](skills/disciplines/camera-systems/SKILL.md) | 2D follow/deadzone/look-ahead + bounds, 3D orbit/first-person, screen-shake hook |
+| [`performance-optimization`](skills/disciplines/performance-optimization/SKILL.md) | Profile-first: frame budget, CPU/GPU triage, draw calls, pooling, GC, asset budgets |
### Genres — 9 ([`skills/genres/`](skills/genres/))
@@ -260,7 +264,7 @@ why._
## Repository layout
```
-skills/ 62 specialized skills, grouped by engine / discipline / genre / workflow
+skills/ 66 specialized skills, grouped by engine / discipline / genre / workflow
router/ the master router skill (+ references/)
docs/ authoring standard, installation, compatibility
templates/ SKILL.md template
diff --git a/docs/COMPATIBILITY.md b/docs/COMPATIBILITY.md
index 8efdb75..564c23a 100644
--- a/docs/COMPATIBILITY.md
+++ b/docs/COMPATIBILITY.md
@@ -27,7 +27,7 @@ The [`skills` CLI](https://www.npmjs.com/package/skills) is the package manager
Skills ecosystem. It auto-detects your agent(s) and writes skills to each one's directory:
```bash
-# install the router + all 62 skills into whatever agent(s) you have
+# install the router + all 66 skills into whatever agent(s) you have
npx skills add AbhishekBarali/awesome-gamedev-agent-skills
# preview without installing
diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md
index 02bbb56..f73a40b 100644
--- a/docs/INSTALLATION.md
+++ b/docs/INSTALLATION.md
@@ -30,7 +30,7 @@ is the dispatcher). Copy it in alongside the others so the agent can route reque
The [`skills` CLI](https://www.npmjs.com/package/skills) is the package manager for the Agent
Skills ecosystem. It detects the agents installed on your machine and copies the skills (the
-router plus all 62) into each one's skills directory — no clone required:
+router plus all 66) into each one's skills directory — no clone required:
```bash
# install into whatever agent(s) you have
@@ -59,7 +59,7 @@ so you can install it without cloning or copying files. Add the marketplace once
claude plugin marketplace add AbhishekBarali/awesome-gamedev-agent-skills
```
-Easiest — install the router and all 62 skills in one command:
+Easiest — install the router and all 66 skills in one command:
```bash
claude plugin install gamedev@awesome-gamedev-agent-skills
diff --git a/router/SKILL.md b/router/SKILL.md
index ae073c2..031bf7e 100644
--- a/router/SKILL.md
+++ b/router/SKILL.md
@@ -4,12 +4,13 @@ description: >
Routes any game-development request to the right specialized skill(s): it detects the engine
(Godot, Unity, Unreal, Bevy, Phaser, PixiJS, three.js, LÖVE, pygame, Roblox) and the task, then
reads the chosen skill before acting. Use to make a game or to decide which skill applies — for
- players, levels, enemies, shaders, UI, physics, input, audio, saving, multiplayer, AI, dialogue,
- or procedural generation, for genres (platformer, roguelike, RPG, FPS, tower-defense, card game,
- visual novel, survival-crafting, puzzle), and for shipping (game jam, Steam, itch). Start here
+ players, levels, enemies, shaders, UI/UX, cameras, game feel, physics, input, audio, saving,
+ multiplayer, AI, dialogue, procedural generation, or performance, for genres (platformer,
+ roguelike, RPG, FPS, tower-defense, card game, visual novel, survival-crafting, puzzle), and for
+ shipping (game jam, Steam, itch). Start here
when unsure which gamedev skill to use.
license: Apache-2.0
-compatibility: Engine-agnostic dispatcher over the skills/ collection (62 skills, 8 categories)
+compatibility: Engine-agnostic dispatcher over the skills/ collection (66 skills, 8 categories)
metadata:
engine: none
category: router
@@ -71,7 +72,9 @@ After the engine, read the request for task signals (three **additive** categori
- **disciplines** (cross-engine concepts): `game-ai`, `procedural-gen`, `dialogue-systems`,
`save-systems`, `audio-design`, `shader-programming`, `physics-tuning`, `level-design`,
- `input-systems`. Triggered by concept words ("pathfinding", "save slots", "fragment shader").
+ `input-systems`, `game-feel`, `camera-systems`, `game-ui-ux`, `performance-optimization`.
+ Triggered by concept words ("pathfinding", "save slots", "fragment shader", "screen shake",
+ "camera follow", "HUD/menu", "optimize/low FPS").
- **genres** (whole-game templates): `platformer`, `roguelike`, `rpg`, `fps-shooter`,
`tower-defense`, `card-game`, `visual-novel`, `survival-crafting`, `puzzle`. Triggered by genre
words ("make a roguelike", "deckbuilder").
@@ -114,20 +117,24 @@ File signals sharpen this: `*.yarn`/`*.ink` → `dialogue-systems`/`visual-novel
| jitter, tunneling, fixed timestep | `physics-tuning` | `godot-physics` / `unity-physics` |
| whitebox, blockout, tile layout, pacing | `level-design` | `godot-tilemap` / `unity-tilemap-2d` |
| rebind, gamepad, input buffering | `input-systems` | `unity-input-system` / `unreal-enhanced-input` / Godot InputMap |
+| screen shake, hit-stop, juice, squash & stretch, "make it punchy" | `game-feel` | engine animation/tween + `camera-systems` (shake) |
+| camera follow, deadzone, look-ahead, orbit, first-person | `camera-systems` | `godot-2d-movement` / `godot-3d-essentials` / Cinemachine |
+| HUD, menu, UI layout, scaling, safe area, focus nav | `game-ui-ux` | `godot-ui-control` / Unity UI (UGUI/UI Toolkit) |
+| low FPS, optimize, draw calls, GC spike, pooling, profiler | `performance-optimization` | engine profiler + `physics-tuning` |
### 3c. Genres — **compose** engine + disciplines (bind `*` to the detected engine)
| Genre (`says:`) | composes |
|-----------------|----------|
-| platformer, jump, double jump | `godot-2d-movement` (or engine physics) + `godot-tilemap`/`unity-tilemap-2d` + `level-design` |
-| roguelike, procedural dungeon, permadeath | `procedural-gen` + `godot-tilemap`/`unity-tilemap-2d` + `game-ai` + `save-systems` |
-| RPG, stats, inventory, quests | `godot-resources`/`unity-scriptableobjects` + `dialogue-systems` + `save-systems` |
-| FPS, first-person, hitscan | `godot-3d-essentials`/`unreal-cpp-gameplay` + `input-systems` + `game-ai` |
-| tower defense, waves, lanes | `game-ai` + engine movement + `level-design` |
-| card game, deckbuilder, TCG | `godot-resources`/`unity-scriptableobjects` + `godot-ui-control` |
-| visual novel, branching story | `dialogue-systems` + `save-systems` + `godot-ui-control` |
-| survival, crafting, gathering | `save-systems` + `godot-resources`/`unity-scriptableobjects` + `procedural-gen` |
-| puzzle, match-3, grid logic | `godot-tilemap`/`unity-tilemap-2d` + `level-design` |
+| platformer, jump, double jump | `godot-2d-movement` (or engine physics) + `godot-tilemap`/`unity-tilemap-2d` + `level-design` + `camera-systems` + `game-feel` |
+| roguelike, procedural dungeon, permadeath | `procedural-gen` + `godot-tilemap`/`unity-tilemap-2d` + `game-ai` + `save-systems` + `game-feel` |
+| RPG, stats, inventory, quests | `godot-resources`/`unity-scriptableobjects` + `dialogue-systems` + `save-systems` + `game-ui-ux` |
+| FPS, first-person, hitscan | `godot-3d-essentials`/`unreal-cpp-gameplay` + `input-systems` + `game-ai` + `camera-systems` + `game-feel` |
+| tower defense, waves, lanes | `game-ai` + engine movement + `level-design` + `game-ui-ux` |
+| card game, deckbuilder, TCG | `godot-resources`/`unity-scriptableobjects` + `game-ui-ux` (+ engine UI) |
+| visual novel, branching story | `dialogue-systems` + `save-systems` + `game-ui-ux` |
+| survival, crafting, gathering | `save-systems` + `godot-resources`/`unity-scriptableobjects` + `procedural-gen` + `game-ui-ux` |
+| puzzle, match-3, grid logic | `godot-tilemap`/`unity-tilemap-2d` + `level-design` + `game-feel` |
### 3d. Workflows — engine-independent process & shipping
@@ -195,6 +202,9 @@ and offer to load it if the user confirms.
| "how do I design save slots with migration?" | (none) | `save-systems` only |
| "publish my game on itch with butler" | (any/none) | `itch-publish` only |
| "I want to make a game but don't know what to use" | unknown → ask, default Godot | router asks once; then e.g. `godot-nodes-scenes` |
+| "make hits feel punchy in my Godot game" | Godot (`project.godot`) | `game-feel` (+ `camera-systems` for shake) |
+| "the camera should follow my player smoothly" | (detected engine) | `camera-systems` (+ engine movement skill) |
+| "my Unity game drops to 30 FPS, optimize it" | Unity (`Assets/`+`ProjectSettings/`) | `performance-optimization` (profile first) → engine skill |
## References
diff --git a/router/references/routing-table.md b/router/references/routing-table.md
index 56014c7..18cd67c 100644
--- a/router/references/routing-table.md
+++ b/router/references/routing-table.md
@@ -85,20 +85,24 @@ a real folder at `skills/<category>/<name>/SKILL.md`. Trigger words (`says:`) an
| `physics-tuning` | physics feel, jitter/tunneling, fixed timestep, collision tuning | `godot-physics` / `unity-physics` |
| `level-design` | level design, whitebox/blockout, tilemap layout, pacing | `godot-tilemap` / `unity-tilemap-2d` / `godot-3d-essentials` (GridMap) |
| `input-systems` | input mapping, rebind controls, gamepad support, input buffering; `*.inputactions`/IMC | `unity-input-system` / `unreal-enhanced-input` / Godot InputMap |
+| `game-feel` | game feel, juice, screen shake, hit-stop/freeze frame, squash & stretch, knockback, "make it punchy/satisfying" | engine animation/tween (`godot-animation`/`unity-animation`) + `camera-systems` (shake) + `audio-design` |
+| `camera-systems` | camera follow, follow camera, deadzone, look-ahead, camera bounds/limits, third-person/orbit camera, first-person look, Cinemachine, camera jitter | `godot-2d-movement`/`godot-3d-essentials` / Unity Cinemachine 3 / Godot `Camera2D`/`Camera3D` |
+| `game-ui-ux` | HUD, health bar, main/pause/settings menu, UI layout, anchors, UI scaling, aspect ratio, safe area, controller/keyboard menu nav | `godot-ui-control` / Unity UI (UGUI/UI Toolkit) |
+| `performance-optimization` | performance, optimize, low/dropping FPS, frame drops, stutter, lag, frame budget, draw calls, batching, GC spikes, object pooling, profiler | engine profiler (Godot Monitors / Unity Profiler / Unreal `stat unit`) + `physics-tuning` |
## Genres (`skills/genres/`) — whole-game templates, **compose** engine + disciplines
| Genre skill | `says:` triggers | composes (bind `*` to the detected engine) |
|-------------|------------------|---------------------------------------------|
-| `platformer` | platformer, jump mechanic, double jump, Mario-like | `godot-2d-movement` (or engine physics) + `godot-tilemap`/`unity-tilemap-2d` + `level-design` |
-| `roguelike` | roguelike, procedural dungeon, permadeath, turn-based grid | `procedural-gen` + `godot-tilemap`/`unity-tilemap-2d` + `game-ai` + `save-systems` |
-| `rpg` | RPG, stats/leveling, inventory, quest system | `godot-resources`/`unity-scriptableobjects` + `dialogue-systems` + `save-systems` |
-| `fps-shooter` | FPS, first-person shooter, hitscan, aim/shoot | `godot-3d-essentials`/`unreal-cpp-gameplay` + `input-systems` + `game-ai` |
-| `tower-defense` | tower defense, wave spawner, enemy path, tower targeting | `game-ai` + `godot-2d-movement`/engine movement + `level-design` |
-| `card-game` | card game, deckbuilder, hand/deck/discard, TCG | `godot-resources`/`unity-scriptableobjects` + `godot-ui-control` |
-| `visual-novel` | visual novel, VN, branching story, choice menu; `*.ink`/`*.yarn` | `dialogue-systems` + `save-systems` + `godot-ui-control` |
-| `survival-crafting` | survival game, crafting system, inventory, resource gathering | `save-systems` + `godot-resources`/`unity-scriptableobjects` + `procedural-gen` |
-| `puzzle` | puzzle game, match-3, grid logic, tile-matching | `godot-tilemap`/`unity-tilemap-2d` + `level-design` |
+| `platformer` | platformer, jump mechanic, double jump, Mario-like | `godot-2d-movement` (or engine physics) + `godot-tilemap`/`unity-tilemap-2d` + `level-design` + `camera-systems` + `game-feel` |
+| `roguelike` | roguelike, procedural dungeon, permadeath, turn-based grid | `procedural-gen` + `godot-tilemap`/`unity-tilemap-2d` + `game-ai` + `save-systems` + `game-feel` |
+| `rpg` | RPG, stats/leveling, inventory, quest system | `godot-resources`/`unity-scriptableobjects` + `dialogue-systems` + `save-systems` + `game-ui-ux` |
+| `fps-shooter` | FPS, first-person shooter, hitscan, aim/shoot | `godot-3d-essentials`/`unreal-cpp-gameplay` + `input-systems` + `game-ai` + `camera-systems` + `game-feel` |
+| `tower-defense` | tower defense, wave spawner, enemy path, tower targeting | `game-ai` + `godot-2d-movement`/engine movement + `level-design` + `game-ui-ux` |
+| `card-game` | card game, deckbuilder, hand/deck/discard, TCG | `godot-resources`/`unity-scriptableobjects` + `game-ui-ux` + `godot-ui-control` (engine UI) |
+| `visual-novel` | visual novel, VN, branching story, choice menu; `*.ink`/`*.yarn` | `dialogue-systems` + `save-systems` + `game-ui-ux` |
+| `survival-crafting` | survival game, crafting system, inventory, resource gathering | `save-systems` + `godot-resources`/`unity-scriptableobjects` + `procedural-gen` + `game-ui-ux` |
+| `puzzle` | puzzle game, match-3, grid logic, tile-matching | `godot-tilemap`/`unity-tilemap-2d` + `level-design` + `game-feel` |
## Workflows (`skills/workflows/`) — process & shipping, engine-independent
@@ -111,8 +115,12 @@ a real folder at `skills/<category>/<name>/SKILL.md`. Trigger words (`says:`) an
## Binding gaps (be honest; do not fabricate a skill)
-The collection does not yet have a skill for every engine × concept. When a genre binding names
-a slot the detected engine lacks, load the closest skill(s) and **state the gap** plainly:
+The collection does not yet have a skill for every engine × concept. Several cross-cutting
+concerns are now covered **engine-neutrally** by disciplines that pair with any detected engine —
+camera work (`camera-systems`), HUD/menus (`game-ui-ux`), juice/feedback (`game-feel`), and
+performance (`performance-optimization`) — so those are no longer gaps; bind them on top of the
+engine. The remaining true gaps are engine-specific primitives. When a genre binding names a slot
+the detected engine lacks, load the closest skill(s) and **state the gap** plainly:
- **No `*-2d-movement` for Unity / Unreal / web.** For a Unity platformer, bind movement to
`unity-csharp-scripting` + `unity-physics`; for Phaser, `phaser-arcade-physics`. Say there is
diff --git a/skills/disciplines/camera-systems/SKILL.md b/skills/disciplines/camera-systems/SKILL.md
new file mode 100644
index 0000000..32441f7
--- /dev/null
+++ b/skills/disciplines/camera-systems/SKILL.md
@@ -0,0 +1,160 @@
+---
+name: camera-systems
+description: >
+ Build game cameras that feel good — 2D follow with a deadzone, look-ahead, smoothing, and
+ level-bounds clamping; 3D third-person orbit with collision and first-person look; plus
+ multi-target framing and a shake hook. Engine-neutral techniques that pair with the engine's
+ camera node and rigs like Unity Cinemachine or Godot Camera2D/PhantomCamera. Use when the user
+ mentions camera follow, follow camera, deadzone, look-ahead, camera smoothing, camera bounds/
+ limits, third-person camera, orbit camera, first-person look, Cinemachine, or camera jitter.
+license: Apache-2.0
+compatibility: Engine-agnostic camera techniques; snippets in GDScript (Godot 4.x Camera2D/Camera3D) and C# (Unity 6 / Cinemachine 3). Pairs with godot-2d-movement, godot-3d-essentials, and game-feel.
+metadata:
+ engine: none
+ category: disciplines
+ difficulty: intermediate
+---
+
+# Camera systems
+
+The camera is the player's window; bad camera work makes a good game feel awful. This skill
+covers the engine-neutral camera techniques — smooth follow, deadzones, look-ahead, bounds
+clamping, third-person orbit with collision, first-person look, and multi-target framing — and
+maps them onto each engine's camera node or rig.
+
+## When to use
+
+- Use when a 2D camera should follow the player smoothly, stay inside the level, lead the
+ player's motion, or ignore small movements (deadzone).
+- Use when building a 3D third-person orbit camera (mouse/stick look, collision push-in) or a
+ first-person look controller, or framing multiple targets at once.
+- Use to fix camera jitter, snapping, motion sickness, or a camera that shows past the level edge.
+
+**When *not* to use:** for the *magnitude and trigger* of screen shake and impact juice, use
+`game-feel` (this skill exposes the shake offset hook it drives). For the engine's concrete
+camera node/component setup, use `godot-3d-essentials` (Camera3D, environment) or the engine
+skill. For player movement itself use the engine movement skill (`godot-2d-movement`). For
+performance of many cameras/render targets, see `performance-optimization`.
+
+## Core workflow
+
+1. **Decide what the camera serves.** Platformer (lead the jump, see hazards), top-down (center
+ with deadzone), third-person (orbit + collision), first-person (look only). The genre sets the
+ rules.
+2. **Follow smoothly and frame-rate independently.** Move the camera toward the target with
+ exponential smoothing or a spring (`SmoothDamp`), not a fixed `lerp(a, b, 0.1)` — that 0.1 is
+ per-frame and changes with frame rate.
+3. **Add a deadzone** so tiny target movements don't nudge the camera; it only follows once the
+ target leaves a box/zone. Stops nausea in twitchy games.
+4. **Lead the action with look-ahead** by offsetting the camera target in the direction of
+ motion or facing, eased in/out so it doesn't whip.
+5. **Clamp to level bounds** so the camera never shows outside the playable area; combine with
+ smoothing so it eases to a stop at the edge.
+6. **For 3D, separate look from collision.** Orbit via yaw/pitch on a rig; use a spring arm /
+ ray to pull the camera in when geometry blocks it; clamp pitch.
+7. **Update the camera after the target moves.** Follow in the late/post step (after movement and
+ physics resolve) to avoid a one-frame lag jitter.
+8. **Verify by moving the target at low and high frame rates**, into corners and walls, and at
+ the level edges; confirm no jitter, no peeking past bounds, smooth stops. Report what you saw.
+
+## Patterns
+
+### 1. Godot 2D built-in follow: smoothing + bounds (don't hand-roll first)
+
+```gdscript
+# Godot 4.x Camera2D. Engine-provided smoothing + hard limits + drag margins.
+@onready var cam := $Camera2D
+func _ready() -> void:
+ cam.make_current()
+ cam.position_smoothing_enabled = true
+ cam.position_smoothing_speed = 6.0 # higher = snappier; lower = floatier
+ cam.limit_left = 0; cam.limit_top = 0 # clamp to the level rect (pixels)
+ cam.limit_right = level_width; cam.limit_bottom = level_height
+ cam.drag_horizontal_enabled = true # built-in deadzone via drag margins
+```
+
+### 2. Frame-rate-independent smooth follow (when you hand-roll it)
+
+```gdscript
+# RIGHT: exponential smoothing — same feel at any FPS. `rate` ~ 5..12.
+func _follow(dt: float) -> void:
+ var t := 1.0 - exp(-rate * dt) # converges correctly regardless of dt
+ global_position = global_position.lerp(target.global_position, t)
+# WRONG: global_position = global_position.lerp(target.global_position, 0.1)
+# → faster smoothing at higher FPS; different feel on every machine.
+# Unity 6: Vector3.SmoothDamp(transform.position, target.position, ref vel, smoothTime) in
+# LateUpdate gives the same spring behavior with built-in frame-rate correction.
+```
+
+### 3. Deadzone + look-ahead (lead the player, ignore jitter)
+
+```gdscript
+# Camera only chases once the target leaves the deadzone box, then aims AHEAD of motion.
+func _camera_target(dt: float) -> Vector2:
+ var to := target.global_position - _focus
+ var dz := deadzone_half_extents # e.g. Vector2(48, 32)
+ # Only move the focus by the overflow beyond the deadzone (per axis).
+ _focus.x += clampf(absf(to.x) - dz.x, 0, INF) * signf(to.x)
+ _focus.y += clampf(absf(to.y) - dz.y, 0, INF) * signf(to.y)
+ var lead := target.velocity.normalized() * look_ahead_dist # aim ahead of travel
+ return _focus + lead
+```
+
+### 4. 3D third-person orbit with collision push-in
+
+```gdscript
+# Godot 4.x. Yaw/pitch a pivot; a SpringArm3D auto-pulls the camera in when blocked.
+func _unhandled_input(e):
+ if e is InputEventMouseMotion:
+ _yaw -= e.relative.x * sensitivity
+ _pitch = clampf(_pitch - e.relative.y * sensitivity, -1.2, 0.4) # clamp pitch!
+func _process(_dt):
+ pivot.rotation = Vector3(_pitch, _yaw, 0)
+ # $SpringArm3D handles wall collision: set spring_length + collision_mask; the child
+ # Camera3D slides in automatically. RIGHT: spring arm. WRONG: camera clips through walls.
+# Unity 6: a Cinemachine 3 CinemachineCamera (namespace Unity.Cinemachine) with an Orbital
+# Follow + Cinemachine Deoccluder; the CinemachineBrain on the Camera blends automatically.
+```
+
+### 5. Screen shake hook (owned trigger lives in `game-feel`)
+
+```gdscript
+# Expose an additive offset the game-feel trauma model writes to; follow + shake compose.
+var shake_offset := Vector2.ZERO # set each frame by game-feel (trauma^2 * noise)
+func _apply(final_focus: Vector2) -> void:
+ global_position = final_focus + shake_offset # shake rides ON TOP of smooth follow
+# Unity Cinemachine: add a CinemachineBasicMultiChannelPerlin and set amplitude from trauma.
+```
+
+## Pitfalls
+
+- **`lerp(pos, target, const)` per frame** is frame-rate dependent — floatier at 30 FPS, snappier
+ at 144. Use `1 - exp(-rate*dt)` or `SmoothDamp`.
+- **Following in the normal update before the target has moved** yields a one-frame lag jitter.
+ Follow in `LateUpdate` / after movement/physics resolve.
+- **No bounds clamp** lets the camera show black past the level edge. Clamp focus to the level
+ rect (account for the viewport half-size so the *view*, not the center, stays inside).
+- **No deadzone in twitchy games** makes the camera twitch with every micro-movement → nausea.
+- **Unclamped pitch** in third/first-person flips the camera over the top. Clamp pitch to ~±80°.
+- **Camera clipping through walls** in 3D — use a spring arm / occlusion ray to pull in.
+- **Snapping on teleport/respawn** is jarring; either hard-cut intentionally (and reset
+ smoothing) or fast-ease. Don't let a huge `SmoothDamp` distance whip across the level.
+- **Shake driving the follow target** instead of an additive offset makes follow fight shake.
+ Compose: smooth follow first, add shake offset last.
+- **Per-axis vs radial deadzone confusion** — a box deadzone feels different from a circular one;
+ pick deliberately.
+
+## References
+
+- For the exponential-smoothing/spring derivation, a complete deadzone+look-ahead+bounds 2D rig,
+ 3D spring-arm/orbit details, first-person look, multi-target/group framing and split-screen,
+ cinematic camera blends, and the Cinemachine 3 / Godot Camera2D / PhantomCamera mapping, read
+ `references/follow-and-framing.md`.
+
+## Related skills
+
+- `game-feel` — owns screen-shake trauma/triggers; this skill exposes the offset it writes.
+- `godot-2d-movement`, `godot-3d-essentials` — the player/world the camera frames; Camera3D setup.
+- `physics-tuning` — interpolate camera follow with the physics step to kill jitter.
+- `platformer`, `fps-shooter` — genres whose camera rules this skill implements.
+- `performance-optimization` — cost of extra cameras, render targets, and split-screen.
diff --git a/skills/disciplines/camera-systems/references/follow-and-framing.md b/skills/disciplines/camera-systems/references/follow-and-framing.md
new file mode 100644
index 0000000..e4a1d38
--- /dev/null
+++ b/skills/disciplines/camera-systems/references/follow-and-framing.md
@@ -0,0 +1,91 @@
+# Follow & framing — depth for `camera-systems`
+
+Detail the `camera-systems` body defers here: the smoothing math, a full 2D rig, 3D orbit/first-
+person specifics, multi-target framing, cinematic blends, and the per-engine rig mapping.
+Snippets target **Godot 4.x** and **Unity 6 / Cinemachine 3**.
+
+## 1. Why `1 - exp(-rate*dt)` (frame-rate-independent smoothing)
+
+A naive `pos = lerp(pos, target, k)` applies `k` *per frame*, so at 144 FPS it smooths far more
+per second than at 30 FPS — the feel changes with hardware. Exponential smoothing fixes the rate
+*per second*:
+
+```text
+t = 1 - exp(-rate * dt) # rate ≈ 5 (floaty) .. 12 (snappy)
+pos = lerp(pos, target, t) # identical convergence at any frame rate
+```
+
+A critically-damped spring (Unity `Vector3.SmoothDamp`, or a hand-rolled spring with `smoothTime`)
+gives the same frame-rate independence plus velocity continuity (no overshoot). Prefer the
+engine's built-in spring/smoothing before hand-rolling.
+
+## 2. Full 2D rig: deadzone + look-ahead + bounds
+
+Order of operations each frame, after the target moves:
+
+1. Compute target overflow beyond the **deadzone** (box or circle) → move the focus by the
+ overflow only.
+2. Add **look-ahead**: `focus += dir_of_motion * lookAheadDist`, but **ease the look-ahead offset
+ itself** toward its goal so a direction flip doesn't snap the view.
+3. **Smooth** the camera toward the focus (section 1).
+4. **Clamp** so the *visible rectangle* stays in bounds: clamp camera center to
+ `[min + halfView, max - halfView]` per axis (clamp the view, not the center).
+
+```gdscript
+# Godot 4.x: clamp the VIEW, accounting for zoom and viewport size.
+func _clamp_to_level(center: Vector2) -> Vector2:
+ var half := get_viewport_rect().size * 0.5 / zoom
+ return Vector2(
+ clampf(center.x, level_rect.position.x + half.x, level_rect.end.x - half.x),
+ clampf(center.y, level_rect.position.y + half.y, level_rect.end.y - half.y))
+# If the level is smaller than the view on an axis, center on that axis instead of clamping.
+```
+
+Tunables: deadzone `32–64 px`, look-ahead `40–120 px` eased over `0.2–0.4 s`, smoothing
+`rate 6–10`.
+
+## 3. 3D third-person orbit
+
+- **Rig:** an invisible pivot at the character's shoulder/head height; yaw on the pivot, pitch on
+ a child; the camera sits at `-springLength` on local Z.
+- **Collision:** a spring arm (Godot `SpringArm3D`) or occlusion ray casts from pivot to desired
+ camera position and shortens to the first hit so the camera never clips through walls.
+- **Pitch clamp:** ~`[-80°, +45°]` so the camera can't flip or bury into the floor.
+- **Sensitivity & invert:** expose look sensitivity and invert-Y (see `input-systems`).
+- **Cinemachine 3 (Unity 6):** a `CinemachineCamera` (namespace `Unity.Cinemachine`) with an
+ **Orbital Follow** component and a **Cinemachine Deoccluder** (collision); the
+ `CinemachineBrain` on the `Camera` blends between cameras. This replaces the v2
+ `CinemachineVirtualCamera` / `CinemachineCollider` names.
+
+## 4. First-person look
+
+- Yaw rotates the body (so movement aligns with view); pitch rotates only the camera head.
+- Clamp pitch; never let roll accumulate.
+- Mouse: use relative motion + capture the cursor (`Input.mouse_mode = MOUSE_MODE_CAPTURED`).
+- Stick: apply a response curve + deadzone (see `input-systems`) and frame-rate-scaled turn rate.
+
+## 5. Multi-target / group framing
+
+- Compute the bounding box of all targets; place the camera at the box center.
+- **2D:** set zoom so the box (plus padding) fits the viewport; clamp zoom min/max.
+- **3D:** dolly the camera back / adjust FOV to fit the box; Cinemachine has a Group Framing /
+ Target Group component for this.
+- **Split-screen:** one camera per player rendering to a viewport rectangle; budget the extra
+ render cost (`performance-optimization`).
+
+## 6. Cinematic blends & transitions
+
+- Blend between gameplay and cutscene cameras over a short time (ease-in-out). Cinemachine blends
+ automatically when you change the active camera's priority; in Godot, tween a rig between marker
+ transforms or swap `current` cameras with a fade.
+- Reset smoothing state on hard cuts/teleports so the camera doesn't slingshot across the map.
+
+## 7. Per-engine rig summary
+
+| Need | Godot 4.x | Unity 6 |
+|------|-----------|---------|
+| 2D follow + smoothing + limits | `Camera2D` (`position_smoothing_*`, `limit_*`, `drag_*`) | Cinemachine `CinemachineCamera` (2D) + Confiner2D |
+| 3D follow/orbit | pivot + `SpringArm3D` + `Camera3D` | `CinemachineCamera` + Orbital Follow + Deoccluder |
+| Shake | additive `offset` from `game-feel` | `CinemachineBasicMultiChannelPerlin` |
+| Bounds | `limit_*` / manual clamp | `CinemachineConfiner2D/3D` |
+| Addon option | `PhantomCamera` (declarative 2D/3D rigs) | built-in Cinemachine |
diff --git a/skills/disciplines/game-feel/SKILL.md b/skills/disciplines/game-feel/SKILL.md
new file mode 100644
index 0000000..d11fb99
--- /dev/null
+++ b/skills/disciplines/game-feel/SKILL.md
@@ -0,0 +1,171 @@
+---
+name: game-feel
+description: >
+ Add "juice" and game feel that makes actions satisfying — screen shake, hit-stop/freeze
+ frames, tweened/eased motion, squash & stretch, knockback, and layered audio-visual
+ feedback — as engine-neutral techniques that pair with the detected engine's tween,
+ particle, and camera APIs. Use when the user mentions game feel, juice, "make it feel
+ good/punchy", screen shake, hit stop, screen freeze, easing, squash and stretch, impact
+ frames, or feedback/polish on hits, jumps, pickups, and deaths.
+license: Apache-2.0
+compatibility: Engine-agnostic techniques; snippets in GDScript (Godot 4.x) and C# (Unity 6) with pseudocode. Pairs with godot-animation/godot-audio, unity-animation, camera-systems, and audio-design.
+metadata:
+ engine: none
+ category: disciplines
+ difficulty: intermediate
+---
+
+# Game feel (juice)
+
+The difference between a mechanic that *works* and one that feels *good* is feedback: the
+layered, slightly-exaggerated response an action provokes. This skill covers the engine-
+neutral techniques — screen shake, hit-stop, easing, squash & stretch, knockback, and stacked
+feedback — and tells you how to apply them without burying the underlying simulation. It
+**adds polish on top of** an existing mechanic; it does not implement the mechanic.
+
+## When to use
+
+- Use when an action (hit, jump, dash, pickup, death, button press) is mechanically correct
+ but feels weak, weightless, or unsatisfying, and you want it to feel responsive and punchy.
+- Use to add screen shake, hit-stop/freeze frames, eased motion, squash & stretch, knockback,
+ flashes, or to layer multiple feedback channels onto one event.
+- Use to decide *how much* juice is enough and where it crosses into noise.
+
+**When *not* to use:** for the raw controller math (jump height, coyote time) use the
+`platformer` genre and the engine movement skill. For camera *follow/deadzone/orbit* framing
+use `camera-systems` (this skill only triggers the shake). For mixing, ducking, and adaptive
+music use `audio-design`. For shader-based dissolves/flashes use `shader-programming` and the
+engine shader skill. For the concrete tween/particle node APIs, use the engine animation skill
+(`godot-animation`, `unity-animation`).
+
+## Core principle: feedback is layered and exaggerated
+
+One satisfying hit is usually **5–8 tiny responses firing together** within ~100 ms: a sound,
+a particle burst, a brief hit-stop, a flash, a knockback, a small screen shake, and a number
+popping up. Each is cheap; stacked, they read as "impact". Two rules keep it from becoming a
+mess: **(1)** exaggerate *briefly* and return to rest (juice is transient, not a new resting
+state); **(2)** scale juice to event importance — a footstep is not a boss death.
+
+## Core workflow
+
+1. **Confirm the event hooks exist.** Juice attaches to discrete events: `on_hit`, `on_land`,
+ `on_pickup`, `on_death`, `on_fire`. If the mechanic doesn't emit these, add them first.
+2. **Pick feedback channels per event** from the menu (sound, particles, shake, hit-stop,
+ flash, knockback, tween, number pop). Start with 2–3; add until it reads, then stop.
+3. **Make motion eased, not linear.** Route scale/position/UI changes through a tween with an
+ ease (overshoot for "pop", ease-out for "settle"). Linear motion feels robotic.
+4. **Reserve hit-stop and shake for impact.** They are the strongest, most abusable tools —
+ short durations, scaled to importance, and never on routine actions.
+5. **Keep feedback off the critical simulation.** Shake moves the *camera/visual*, not the
+ body; hit-stop uses time scale or a real-time pause, not a gameplay-logic stall.
+6. **Tune by importance tiers.** Define small/medium/large feedback presets and assign events
+ to a tier, so the whole game's juice stays consistent and proportional.
+7. **Verify by playing and watching.** Trigger the event repeatedly; confirm the feedback
+ fires, returns to rest, and is not nauseating or input-blocking. Report what you observed
+ (does shake decay? does input still register during hit-stop?).
+
+## Patterns
+
+### 1. Screen shake by decaying "trauma" (smooth, not a random jitter)
+
+```gdscript
+# Godot 4.x. Store trauma 0..1; shake = trauma^2 so small hits barely move, big hits punch.
+# Drives a Camera2D OFFSET (the visual), never the player body. Decays every frame.
+@export var decay := 1.2 # trauma lost per second
+@export var max_offset := Vector2(12, 8)
+@export var max_roll := 0.1 # radians
+var trauma := 0.0
+var _t := 0.0
+
+func add_trauma(amount: float) -> void:
+ trauma = clampf(trauma + amount, 0.0, 1.0) # hits ADD; they don't reset
+
+func _process(dt: float) -> void:
+ if trauma <= 0.0: return
+ trauma = maxf(trauma - decay * dt, 0.0)
+ var shake := trauma * trauma # quadratic: gentle low, sharp high
+ _t += dt * 30.0
+ # Smooth pseudo-random via sampled noise/sin, NOT rand each frame (that buzzes).
+ offset = Vector2(max_offset.x * shake * sin(_t * 1.7),
+ max_offset.y * shake * sin(_t * 2.3))
+ rotation = max_roll * shake * sin(_t * 1.1)
+# Unity 6: identical model on a CinemachineCamera via CinemachineBasicMultiChannelPerlin
+# (set AmplitudeGain/FrequencyGain from trauma^2) — see camera-systems.
+```
+
+### 2. Hit-stop / freeze frame (sell impact by briefly stopping time)
+
+```gdscript
+# Godot 4.x. Drop time scale, then restore after a REAL-TIME delay (unaffected by time_scale).
+func hit_stop(duration := 0.08, scale := 0.05) -> void:
+ Engine.time_scale = scale
+ # 4th arg ignore_time_scale=true → the timer still fires while the game is frozen.
+ await get_tree().create_timer(duration, true, false, true).timeout
+ Engine.time_scale = 1.0
+```
+
+```csharp
+// Unity 6 (C#). WaitForSecondsRealtime ignores Time.timeScale, so the timer still elapses.
+IEnumerator HitStop(float duration = 0.08f, float scale = 0.05f) {
+ Time.timeScale = scale;
+ yield return new WaitForSecondsRealtime(duration);
+ Time.timeScale = 1f; // RIGHT: real-time wait. WRONG: WaitForSeconds (never resumes at scale 0)
+}
+```
+
+### 3. Squash & stretch + overshoot via an eased tween (the "pop")
+
+```gdscript
+# Godot 4.x. Conserve volume: stretch one axis, squash the other, then spring back with overshoot.
+func pop(node: Node2D) -> void:
+ node.scale = Vector2(1.3, 0.7) # instant squash on the event
+ var tw := create_tween()
+ tw.tween_property(node, "scale", Vector2.ONE, 0.18) \
+ .set_trans(Tween.TRANS_BACK).set_ease(Tween.EASE_OUT) # BACK = overshoots past 1, settles
+# RIGHT: ease back (TRANS_BACK/ELASTIC) for life. WRONG: linear tween → mechanical, dead.
+```
+
+### 4. A feedback bundle scaled by importance (keep juice proportional)
+
+```gdscript
+# One call per event; the tier decides intensity so the whole game stays consistent.
+func feedback(event_pos: Vector2, tier: String) -> void:
+ match tier:
+ "small": AudioBus.play("tick"); Camera.add_trauma(0.15)
+ "medium": AudioBus.play("hit"); Camera.add_trauma(0.4); hit_stop(0.05); spawn_particles(event_pos, 6)
+ "large": AudioBus.play("boom"); Camera.add_trauma(0.8); hit_stop(0.12); spawn_particles(event_pos, 30); flash_white(0.06)
+```
+
+## Pitfalls
+
+- **Shaking the player/body instead of the camera offset** desyncs collision and aim. Shake
+ the camera (or a visual pivot), never the simulated transform.
+- **Random offset every frame** buzzes like static. Drive shake from sampled noise/sin and a
+ decaying trauma value so it's smooth and self-ending.
+- **Hit-stop with `WaitForSeconds` / a scaled timer** never resumes (at time scale 0 the timer
+ never advances). Use a real-time wait (`WaitForSecondsRealtime`, or Godot's
+ `ignore_time_scale` timer).
+- **Hit-stop on every frame of a held attack** locks the game. Trigger it once per impact.
+- **Linear tweens everywhere** feel robotic. Ease almost everything; reserve overshoot
+ (BACK/ELASTIC) for "pop" and ease-out for "settle".
+- **Permanent exaggeration** (scale never returns, shake never decays) becomes the new normal
+ and stops reading as feedback. Juice must return to rest.
+- **Over-juicing routine actions** (full shake + hit-stop on every footstep) causes nausea and
+ hides real impacts. Scale to importance; add a "reduce screen shake"/"reduce flashing"
+ accessibility option.
+- **Feedback that blocks input** (long freeze, un-cancelable animation) hurts responsiveness.
+ Keep juice short and let input buffer through it.
+
+## References
+
+- For the trauma-shake math, easing-curve cheat sheet (which ease for pop vs settle), knockback
+ + flash + number-pop recipes, importance-tier presets, and per-engine tween/particle bindings,
+ read `references/feedback-recipes.md`.
+
+## Related skills
+
+- `camera-systems` — owns camera follow/deadzone/orbit; this skill only feeds it shake trauma.
+- `godot-animation`, `unity-animation` — concrete tween/AnimationPlayer/particle APIs juice rides on.
+- `audio-design` — the sound layer of every feedback bundle; ducking and SFX variation.
+- `physics-tuning` — knockback forces and the timestep juice must not destabilize.
+- `platformer`, `fps-shooter`, `roguelike` — genres whose moment-to-moment feel this elevates.
diff --git a/skills/disciplines/game-feel/references/feedback-recipes.md b/skills/disciplines/game-feel/references/feedback-recipes.md
new file mode 100644
index 0000000..4056e56
--- /dev/null
+++ b/skills/disciplines/game-feel/references/feedback-recipes.md
@@ -0,0 +1,100 @@
+# Feedback recipes — depth for `game-feel`
+
+Detail the `game-feel` body defers here: the shake math, easing cheat sheet, the rest of the
+feedback menu (knockback, flash, number pop, freeze), importance-tier presets, and the
+per-engine bindings for tweens and particles. All snippets target **Godot 4.x** and **Unity 6**.
+
+## 1. The trauma model (why shake feels good)
+
+Track a single `trauma` value in `[0, 1]`. Events **add** trauma; it **decays** linearly each
+frame. The actual shake amount is `trauma^2` (or `trauma^3`) so:
+
+- small/frequent events barely nudge the screen (low trauma, squared → tiny),
+- big events punch hard (high trauma, squared → near full),
+- shake **always ends** on its own because trauma decays to 0.
+
+Offset and rotation are `max_* * shake * noise(t)`. Sample a noise function or summed sines
+across time — never a fresh `rand()` per frame, which produces a harsh buzz instead of a shake.
+
+```gdscript
+# 1D value-noise-ish sampler without an addon: layered sines at incommensurate rates.
+func _shake_axis(seed: float, t: float) -> float:
+ return 0.6 * sin(t * 11.0 + seed) + 0.4 * sin(t * 23.0 + seed * 2.0)
+```
+
+Tunable starting points: `max_offset = (8..16, 6..10) px`, `max_roll = 0.05..0.12 rad`,
+`decay = 1.0..1.5` trauma/sec, per-hit trauma `0.15` (light) → `0.8` (heavy).
+
+## 2. Easing cheat sheet — which curve for which job
+
+| Goal | Ease | Godot `Tween` | Notes |
+|------|------|---------------|-------|
+| UI/element "pop" in | overshoot | `TRANS_BACK`, `EASE_OUT` | shoots past target, settles back |
+| Bouncy, lively land | bounce/elastic | `TRANS_ELASTIC`/`TRANS_BOUNCE`, `EASE_OUT` | use sparingly; reads as cartoonish |
+| Settle / decelerate | ease-out | `TRANS_CUBIC`/`TRANS_QUAD`, `EASE_OUT` | the default for "comes to rest" |
+| Anticipation / wind-up | ease-in | `TRANS_CUBIC`, `EASE_IN` | slow start before a fast action |
+| Smooth A→B both ends | ease-in-out | `TRANS_SINE`, `EASE_IN_OUT` | camera moves, menu slides |
+
+Unity 6 has no built-in tween library; options in order of preference: `Vector3.SmoothDamp`
+for spring-like follow, `Mathf.SmoothStep`/hand-rolled ease in a coroutine, Animator curves,
+or a third-party tween package if the project already uses one. Keep the *curve choice* the
+same regardless of tool.
+
+```csharp
+// Unity 6: a minimal eased scale "pop" in a coroutine (no external deps).
+IEnumerator Pop(Transform t, float dur = 0.18f) {
+ t.localScale = new Vector3(1.3f, 0.7f, 1f); // squash on the event
+ for (float e = 0; e < dur; e += Time.deltaTime) {
+ float k = e / dur;
+ float back = 1f + 2.7f * Mathf.Pow(1 - k, 2) * (k - 0); // overshoot-ish
+ t.localScale = Vector3.Lerp(t.localScale, Vector3.one, k * k);
+ yield return null;
+ }
+ t.localScale = Vector3.one;
+}
+```
+
+## 3. The rest of the feedback menu
+
+- **Flash:** tint the sprite/material white for 1–3 frames on hit (`modulate`/material color),
+ then tween back. Cheap, hugely legible.
+- **Knockback:** apply an impulse away from the hit normal, clamped and short; let
+ `physics-tuning` own stability. Pair with brief control lockout, not a long one.
+- **Number/text pop:** spawn a damage number that rises, fades, and eases out; randomize the
+ horizontal drift so stacked hits fan out.
+- **Particles:** a short burst at the contact point (sparks, dust, debris). Pool them
+ (`performance-optimization`) — do not instance-and-free per hit.
+- **Freeze frame:** the hit-stop in the body; scale duration to importance (0.04 s light →
+ 0.15 s heavy). Optionally freeze only the attacker+target, not the whole world.
+- **Anticipation & follow-through:** a tiny wind-up before a big action and a settle after read
+ as weight; this is animation, not code (engine animation skill).
+- **Chromatic/▒vignette/zoom punch:** post-process nudges for big moments; keep brief.
+
+## 4. Importance tiers (keep the whole game proportional)
+
+Define three presets and assign every juicy event to one. This is what stops a game from
+feeling either dead (under-juiced) or exhausting (everything maxed).
+
+| Tier | Trauma | Hit-stop | Particles | Extra | Example events |
+|------|:------:|:--------:|:---------:|-------|----------------|
+| small | 0.10–0.20 | none | 0–4 | tick SFX | footstep, UI hover, coin |
+| medium | 0.30–0.50 | 0.04–0.06 s | 6–12 | flash | normal hit, jump-land, pickup |
+| large | 0.70–1.00 | 0.10–0.15 s | 20–40 | flash + zoom + number | crit, boss hit, death, explosion |
+
+## 5. Accessibility (ship these toggles)
+
+- **Reduce screen shake** (scale trauma output by a 0–100% setting, default ~60–80%).
+- **Reduce/disable flashing** (photosensitivity) — replace white flashes with a static tint.
+- **Reduce camera motion** — cut shake roll and zoom punches.
+
+These pair with `game-ui-ux` (settings menu) and `input-systems` (accessibility section).
+
+## 6. Per-engine binding summary
+
+- **Godot 4.x:** `create_tween()` + `tween_property().set_trans().set_ease()`; `GPUParticles2D/3D`
+ one-shot; `Engine.time_scale` + `ignore_time_scale` timer; shake on `Camera2D.offset`.
+- **Unity 6:** coroutines + `SmoothDamp`/curves (or a tween package); `ParticleSystem.Play()`;
+ `Time.timeScale` + `WaitForSecondsRealtime`; shake via `CinemachineBasicMultiChannelPerlin`
+ amplitude/frequency driven by `trauma^2` (see `camera-systems`).
+- **Web (Phaser/Pixi/three):** tween via the engine/library tween; `this.cameras.main.shake()`
+ in Phaser; `requestAnimationFrame`-driven eases elsewhere.
diff --git a/skills/disciplines/game-ui-ux/SKILL.md b/skills/disciplines/game-ui-ux/SKILL.md
new file mode 100644
index 0000000..8ad1a61
--- /dev/null
+++ b/skills/disciplines/game-ui-ux/SKILL.md
@@ -0,0 +1,157 @@
+---
+name: game-ui-ux
+description: >
+ Design and build game UI/UX — HUDs, menus, and overlays — that survive every screen: anchor-
+ based responsive layout, resolution/aspect scaling and safe areas, keyboard/gamepad focus
+ navigation, a screen/menu state stack, and event-driven (not polled) HUD updates. Engine-
+ neutral patterns that pair with the detected engine's UI skill. Use when the user mentions
+ HUD, health bar, main menu, pause menu, settings screen, UI layout, anchors, UI scaling,
+ aspect ratio, safe area, controller/keyboard menu navigation, or wiring UI to game state.
+license: Apache-2.0
+compatibility: Engine-agnostic UI/UX patterns; snippets in GDScript (Godot 4.x Control) and C# (Unity 6 uGUI/UI Toolkit). Pairs with godot-ui-control, Unity UI, and game-feel.
+metadata:
+ engine: none
+ category: disciplines
+ difficulty: intermediate
+---
+
+# Game UI/UX
+
+Build HUDs and menus that stay correct on a phone, an ultrawide monitor, and a TV across a
+gamepad and a mouse. This skill owns the engine-neutral UI architecture — responsive layout,
+scaling, focus navigation, screen flow, and how UI talks to game state — and defers the
+concrete widget API to the engine UI skill.
+
+## When to use
+
+- Use when building a HUD (health/ammo/score), a menu (main/pause/settings), an inventory or
+ shop screen, or any overlay, and you want it to scale and navigate correctly.
+- Use to fix UI that breaks at other resolutions/aspect ratios, ignores notches/safe areas,
+ can't be used with a controller, or is wired to game state by per-frame polling.
+- Use to structure screen flow (title → game → pause → settings) as a stack, not flag soup.
+
+**When *not* to use:** for the engine's concrete UI nodes/components and styling, use
+`godot-ui-control` or Unity UI (UGUI/UI Toolkit). For *visual* punch (button pop, damage
+numbers, shake) use `game-feel`. For branching conversation UI use `dialogue-systems`. For
+translating UI strings, that is localization (see `references/` and `input-systems` for
+rebinding screens). For card/board layout specifics, the `card-game` genre composes this skill.
+
+## Core workflow
+
+1. **Pick a layout model: anchors + containers, never absolute pixels.** Anchor elements to
+ edges/corners/center and let containers (rows, columns, grids) flow children. Absolute
+ `(x, y)` positions break at the first new resolution.
+2. **Choose a scaling strategy** for the whole UI: a reference resolution that scales to fit
+ (most games), plus a policy for extra width/height on other aspect ratios (letterbox,
+ expand, or anchor HUD corners outward).
+3. **Respect the safe area.** Inset critical UI from screen edges so notches, rounded corners,
+ and TV overscan don't clip it.
+4. **Make every screen keyboard/gamepad navigable.** Set an initial focused control per screen,
+ define focus order/neighbors, and show a clear focus highlight. Mouse and focus must coexist.
+5. **Model screens as a stack.** Push (pause over game), pop (resume), with input + visibility
+ handed to the top screen. This makes overlays and "back" trivial.
+6. **Drive the HUD from events, not polling.** The HUD subscribes to `health_changed`,
+ `score_changed`, etc. and updates only when they fire — it does not read game state every
+ frame.
+7. **Verify across screens and devices.** Resize the window, switch aspect ratios, unplug the
+ mouse and navigate by gamepad only, and confirm focus, scaling, and safe-area insets. Report
+ what you actually observed at which resolutions.
+
+## Patterns
+
+### 1. Anchors + containers, not absolute coordinates
+
+```gdscript
+# Godot 4.x. Anchor a HUD label to the TOP-LEFT; let a container flow a row of hearts.
+func _ready() -> void:
+ $Score.set_anchors_preset(Control.PRESET_TOP_LEFT) # sticks to the corner at any size
+ # An HBoxContainer auto-lays-out children left-to-right; never position hearts by hand.
+ for i in lives:
+ $Hearts.add_child(make_heart()) # HBoxContainer spaces them for you
+# Unity 6 uGUI: set RectTransform anchors to the corner; use a HorizontalLayoutGroup.
+# RIGHT: anchors + layout groups. WRONG: rect.anchoredPosition = new Vector2(640, 360) (1080p-only).
+```
+
+### 2. Scale to a reference resolution (one UI, many screens)
+
+```text
+# Godot 4.x — Project Settings > Display > Window > Stretch:
+# Mode = "canvas_items", Aspect = "expand", reference size e.g. 1920x1080.
+# UI scales to the window; "expand" reveals extra space you anchor HUD corners into.
+# Unity 6 — Canvas > CanvasScaler:
+# UI Scale Mode = "Scale With Screen Size", Reference Resolution = 1920x1080,
+# Match = 0.5 (blend width/height) — pick 1.0 if your HUD is height-critical.
+```
+
+### 3. Safe-area inset for notches / overscan
+
+```gdscript
+# Godot 4.x. Inset a margin container to the OS-reported safe rect (phones, TVs).
+func _apply_safe_area() -> void:
+ var safe: Rect2i = DisplayServer.get_display_safe_area()
+ var win := DisplayServer.window_get_size()
+ $Margin.add_theme_constant_override("margin_left", safe.position.x)
+ $Margin.add_theme_constant_override("margin_top", safe.position.y)
+ $Margin.add_theme_constant_override("margin_right", win.x - safe.end.x)
+ $Margin.add_theme_constant_override("margin_bottom", win.y - safe.end.y)
+# Unity 6: read Screen.safeArea (Rect in pixels) and set a panel's anchorMin/anchorMax to
+# safeArea.position / (position+size) normalized by Screen.width/height.
+```
+
+### 4. Gamepad/keyboard focus (UI is unusable on a controller without it)
+
+```gdscript
+# Godot 4.x. Give each screen a default focus and wire neighbors so a stick/d-pad walks it.
+func _on_screen_shown() -> void:
+ $PlayButton.grab_focus() # always focus SOMETHING on open
+$PlayButton.focus_neighbor_bottom = $SettingsButton.get_path()
+$SettingsButton.focus_neighbor_top = $PlayButton.get_path()
+# Unity 6: EventSystem.SetSelectedGameObject(playButton) on enable; set each Selectable's
+# Navigation (Explicit or Automatic). RIGHT: a control is focused on open. WRONG: nothing
+# selected → the gamepad does nothing and the player is stuck.
+```
+
+### 5. Event-driven HUD (decouple UI from game logic)
+
+```gdscript
+# RIGHT: HUD reacts to a signal; it updates only when health actually changes.
+func _ready() -> void:
+ player.health_changed.connect(_on_health_changed) # emitted by gameplay
+func _on_health_changed(current: int, max: int) -> void:
+ $HealthBar.value = float(current) / max
+# WRONG: func _process(dt): $HealthBar.value = player.hp / player.max_hp # polls every frame,
+# couples UI to the player's internals, and runs work even when nothing changed.
+```
+
+## Pitfalls
+
+- **Absolute pixel positions / a single design resolution.** Looks right on your monitor, broken
+ everywhere else. Anchor to edges/center and flow with containers.
+- **No aspect-ratio policy.** 16:9-only layouts crop or letterbox badly on ultrawide and phones.
+ Decide expand vs letterbox and anchor HUD to corners that move outward.
+- **Ignoring the safe area.** HUD under a notch or lost to TV overscan. Inset critical elements.
+- **No initial focus / no focus neighbors.** The game is unplayable on a gamepad; players land
+ on a menu with nothing selected. Always focus one control and define navigation.
+- **Polling game state in `_process`/`Update`.** Couples UI to internals and wastes work. Push
+ updates via signals/events.
+- **Tiny fixed font sizes.** Unreadable on a TV-at-distance or a small phone. Scale text with the
+ UI and offer a text-size option.
+- **Menu flow as boolean flags** (`isPaused`, `inSettings`, …) becomes unmanageable. Use a
+ screen stack with push/pop.
+- **Hardcoded English strings baked into layout.** Translations overflow buttons. Externalize
+ strings and let containers size to content (see `references/`).
+- **Mouse-only or focus-only.** Support both; switching input device should not strand the user.
+
+## References
+
+- For stretch/scale modes per engine, the safe-area math, a complete focus-navigation and
+ screen-stack pattern, diegetic vs non-diegetic UI, accessibility (text size, contrast,
+ colorblind-safe state), and localization-ready layout, read `references/layout-and-flow.md`.
+
+## Related skills
+
+- `godot-ui-control`, Unity UI (UGUI/UI Toolkit) — the concrete widgets, themes, and styling.
+- `game-feel` — button pops, transitions, and HUD juice that ride on top of this layout.
+- `dialogue-systems` — conversation/choice UI that lives inside this UI shell.
+- `input-systems` — device switching, rebinding screens, and accessible controls.
+- `rpg`, `card-game`, `tower-defense`, `visual-novel` — UI-heavy genres that compose this skill.
diff --git a/skills/disciplines/game-ui-ux/references/layout-and-flow.md b/skills/disciplines/game-ui-ux/references/layout-and-flow.md
new file mode 100644
index 0000000..48cec14
--- /dev/null
+++ b/skills/disciplines/game-ui-ux/references/layout-and-flow.md
@@ -0,0 +1,113 @@
+# Layout, scaling & flow — depth for `game-ui-ux`
+
+Detail the `game-ui-ux` body defers here: per-engine scaling modes, safe-area math, a complete
+focus + screen-stack pattern, diegetic UI, accessibility, and localization-ready layout. Snippets
+target **Godot 4.x** and **Unity 6**.
+
+## 1. Scaling modes per engine
+
+**Godot 4.x** (Project Settings → Display → Window → Stretch):
+
+| Setting | Choose | Effect |
+|---------|--------|--------|
+| Mode | `canvas_items` | UI scales with the window (vs `viewport` = pixel-exact, `disabled` = none) |
+| Aspect | `expand` | shows more world/UI space on odd ratios; `keep` letterboxes |
+| Scale | `1.0`+ | global UI multiplier |
+
+Anchor HUD corners so `expand` puts the extra space where you want it. `keep_width`/`keep_height`
+pin one axis for hard 16:9 designs.
+
+**Unity 6** (`CanvasScaler` on each Canvas):
+
+- `UI Scale Mode = Scale With Screen Size`.
+- `Reference Resolution = 1920×1080` (or your art's design size).
+- `Screen Match Mode = Match Width Or Height`, `Match = 0.5` (blend). Use `1.0` if vertical
+ layout must never clip, `0.0` if horizontal must not.
+- `Reference Pixels Per Unit = 100` for sprite-based UI.
+
+## 2. Safe-area math
+
+The OS reports a safe rectangle inside the screen (excludes notch, rounded corners, and — on TVs
+— overscan margins). Inset only **critical** UI (health, timers, prompts); decorative art can
+bleed to the edge.
+
+```text
+# Normalized anchors from a pixel safe rect (engine-neutral):
+anchorMin = (safe.x / screenW, safe.y / screenH)
+anchorMax = ((safe.x + safe.w) / screenW, (safe.y + safe.h) / screenH)
+# Re-apply on resolution change / orientation change, not once at startup.
+```
+
+- **Godot:** `DisplayServer.get_display_safe_area()` → `Rect2i` in pixels; reapply on
+ `size_changed`.
+- **Unity:** `Screen.safeArea` → `Rect` in pixels; recompute when `Screen.width/height` or
+ `Screen.orientation` changes (cache the last applied rect to avoid per-frame work).
+
+## 3. Focus navigation (full pattern)
+
+Requirements for controller/keyboard usability:
+
+1. **Initial focus** on every screen open (`grab_focus()` / `EventSystem.SetSelectedGameObject`).
+2. **Explicit neighbors** for predictable movement (Godot `focus_neighbor_*`; Unity `Navigation`
+ = Explicit with up/down/left/right, or Automatic for simple grids).
+3. **Visible focus style** distinct from hover (theme focus stylebox / Unity Selectable
+ transition). Never rely on color alone (see accessibility).
+4. **Wrap or stop** intentionally at list ends; trap focus inside modal dialogs.
+5. **Device coexistence:** moving the mouse can update selection; a gamepad press acts on the
+ focused control. Don't clear focus when the mouse moves.
+
+```gdscript
+# Godot 4.x: trap focus inside a modal so the stick can't escape to the game behind it.
+func open_modal() -> void:
+ _prev_focus = get_viewport().gui_get_focus_owner()
+ $Modal.show(); $Modal/OK.grab_focus()
+func close_modal() -> void:
+ $Modal.hide()
+ if is_instance_valid(_prev_focus): _prev_focus.grab_focus()
+```
+
+## 4. Screen/menu stack
+
+Model screens as a stack of UI states; the top owns input and is visible. Push for overlays,
+pop for "back". This generalizes pause, settings-over-pause, and confirm dialogs.
+
+```gdscript
+# Godot 4.x sketch (a CanvasLayer per screen; pausing the tree under an overlay):
+var _stack: Array[Control] = []
+func push(screen: Control) -> void:
+ if _stack.size() > 0: _stack.back().set_process_input(false)
+ _stack.append(screen); add_child(screen); screen.grab_focus_default()
+func pop() -> void:
+ var top := _stack.pop_back(); top.queue_free()
+ if _stack.size() > 0:
+ _stack.back().set_process_input(true); _stack.back().grab_focus_default()
+# Pause overlay: get_tree().paused = true and set the overlay's process_mode = ALWAYS.
+```
+
+This mirrors the state-stack idea in `love2d-core`'s `references/state-stack.md`, applied to UI.
+
+## 5. Diegetic vs non-diegetic UI
+
+- **Non-diegetic:** drawn on the screen plane, outside the fiction (most HUDs). Cheapest, clearest.
+- **Diegetic:** UI that exists in the world (ammo counter on the gun, health on the suit). More
+ immersive, more work, can hurt readability. Use for key elements, keep a non-diegetic fallback.
+- **Spatial/world-space:** floating health bars, damage numbers — anchor to world position,
+ clamp to screen edges when off-screen, and scale with distance (3D).
+
+## 6. Accessibility (bake in, don't bolt on)
+
+- **Text size option** and never hardcode tiny fonts; size to a percentage of reference height.
+- **Contrast & color independence:** don't encode state in color alone — add icon/shape/text.
+ Provide colorblind-safe palettes.
+- **Scalable hit targets** for touch (≥ ~9 mm); padding around small buttons.
+- **Reduce-motion / reduce-flashing** toggles (coordinate with `game-feel`).
+- **Full keyboard + gamepad** reachability (section 3); don't gate actions behind mouse-only.
+
+## 7. Localization-ready layout
+
+- Externalize strings (Godot `tr()` + translation CSV/PO; Unity Localization package). Never bake
+ display text into layout logic.
+- Let containers **size to content** so longer translations (German is ~30% longer) don't clip.
+ Avoid fixed-width buttons sized to English.
+- Leave room for RTL mirroring and different number/date formats.
+- Keep icons separate from text so only strings need translating.
diff --git a/skills/disciplines/performance-optimization/SKILL.md b/skills/disciplines/performance-optimization/SKILL.md
new file mode 100644
index 0000000..b68d5d7
--- /dev/null
+++ b/skills/disciplines/performance-optimization/SKILL.md
@@ -0,0 +1,166 @@
+---
+name: performance-optimization
+description: >
+ Find and fix game performance problems methodically — measure with the engine profiler first,
+ reason about the frame-time budget, locate the CPU-vs-GPU bottleneck, then apply the right fix:
+ object pooling, draw-call batching, fewer allocations/GC spikes, and asset budgets. Engine-
+ neutral method that pairs with each engine's profiler. Use when the user mentions performance,
+ optimize, low/dropping FPS, frame drops, stutter, lag, profiler, frame budget, draw calls,
+ batching, garbage collection/GC spikes, object pooling, or "the game runs slow".
+license: Apache-2.0
+compatibility: Engine-agnostic methodology; profiler/tooling notes for Godot 4.x, Unity 6, and Unreal 5. Pairs with physics-tuning and the engine skills.
+metadata:
+ engine: none
+ category: disciplines
+ difficulty: advanced
+---
+
+# Performance optimization
+
+Performance work is a measurement discipline, not a bag of tricks. The method is always the
+same: **profile → find the one bottleneck → fix that → measure again**. This skill teaches that
+loop and the highest-leverage fixes (pooling, batching, allocation control, asset budgets), and
+points you at each engine's profiler. It pairs with `physics-tuning` for simulation cost.
+
+## When to use
+
+- Use when the frame rate is low or uneven, the game stutters/hitches, or it must hit a target
+ (60 FPS desktop, 30/60 mobile) and currently doesn't.
+- Use to decide *what* to optimize: profile, read the frame budget, and identify whether the CPU
+ or GPU is the bottleneck before changing any code.
+- Use to apply specific fixes: object pooling, draw-call/batch reduction, removing per-frame
+ allocations and GC spikes, and setting asset budgets.
+
+**When *not* to use:** for physics jitter/tunneling/timestep specifically, use `physics-tuning`.
+For the engine's concrete profiler UI and rendering settings, use that
+engine skill (`godot-export` covers some build settings; engine cores cover the rest). This skill
+is the cross-engine method and the shared fixes.
+
+## The golden rule: measure first, never guess
+
+Most performance "fixes" applied without profiling target the wrong thing and add complexity for
+no gain. **Do not optimize code you have not measured.** Open the profiler, find the single
+biggest cost in a representative scene on representative hardware, and fix that. Re-measure to
+confirm the fix helped before moving on. Profile a **release/optimized build** where it matters —
+editor and debug builds lie (editor overhead, no compiler optimization).
+
+## Core workflow
+
+1. **Define the target and reproduce.** State the goal (e.g. 60 FPS = 16.67 ms/frame) and find a
+ repeatable worst-case scene. "Sometimes slow" is unfixable; a reproducible spike is fixable.
+2. **Profile before touching code.** Run the engine profiler and read the frame: total frame
+ time, and the split between CPU (game logic, physics, scripts) and GPU (rendering).
+3. **Find the bottleneck — CPU or GPU.** If GPU time ≫ CPU, attack draw calls/overdraw/shaders/
+ resolution. If CPU time dominates, attack scripts/physics/allocations. Fixing the wrong side
+ does nothing.
+4. **Fix the single biggest cost.** Prefer an **algorithmic** win (do less work, cache, spatial
+ partition, run less often) over micro-optimizing a hot line. Apply the matching shared fix
+ (pooling, batching, allocation removal).
+5. **Re-measure on the same scene/hardware.** Confirm the number moved. Keep or revert based on
+ data, not intuition.
+6. **Set budgets so it stays fixed.** Per-frame ms budgets per subsystem, plus asset budgets
+ (texture sizes, triangle counts, draw-call ceilings); add a perf check to verification.
+7. **Report measured numbers.** State before/after frame time, the bottleneck found, and the fix
+ — never "should be faster". If you could only measure in-editor, say so.
+
+## Patterns
+
+### 1. Frame budget math (turn "feels slow" into a number)
+
+```text
+target FPS → frame budget: 60 FPS = 16.67 ms | 30 FPS = 33.3 ms | 120 FPS = 8.33 ms
+The WHOLE frame (CPU sim + render submit + GPU) must fit the budget; the GPU runs in parallel,
+so the slower of CPU-frame and GPU-frame sets your FPS. Allocate sub-budgets, e.g. @60 FPS:
+ gameplay/scripts ~5 ms · physics ~3 ms · rendering(CPU submit) ~4 ms · UI/other ~2 ms · slack.
+If one subsystem blows its slice, that's your target — not whatever you assumed.
+```
+
+### 2. Measure with the engine profiler (do this before any fix)
+
+```text
+Godot 4.x : Debugger ▸ Profiler (script/physics time) and Monitors tab (FPS, draw calls, memory).
+ In code: Performance.get_monitor(Performance.TIME_PROCESS) and
+ Performance.get_monitor(Performance.RENDER_TOTAL_DRAW_CALLS_IN_FRAME).
+Unity 6 : Profiler window (CPU/GPU/Memory/Rendering modules) + Frame Debugger for draw calls.
+ In code: a ProfilerRecorder tracking "CPU Main Thread Frame Time" for a HUD/log.
+Unreal 5 : `stat unit` (Frame/Game/Draw/GPU ms), `stat fps`, `stat scenerendering` (draw calls);
+ Unreal Insights for deep traces.
+# Read the split: is the Draw/GPU line the biggest, or the Game/CPU line? That decides the fix.
+```
+
+### 3. Object pooling (stop allocating/freeing in hot loops)
+
+```gdscript
+# Bullets, particles, enemies, damage numbers: reuse a fixed set instead of instantiate()/free()
+# every frame — that thrashes memory and (in C#) feeds the GC.
+var _pool: Array[Node] = []
+func acquire() -> Node:
+ var n: Node = _pool.pop_back() if not _pool.is_empty() else bullet_scene.instantiate()
+ n.set_process(true); n.visible = true
+ return n
+func release(n: Node) -> void:
+ n.set_process(false); n.visible = false # disable + hide; DON'T free
+ _pool.append(n) # back to the pool for reuse
+# RIGHT: pre-warm the pool at load; reuse. WRONG: instantiate()/queue_free() per shot.
+```
+
+### 4. Cut draw calls (the most common GPU-side win)
+
+```text
+Each unique material/texture/state change is roughly a draw call; thousands of them stall the GPU.
+- Atlas textures and share materials so sprites/meshes batch into one call.
+- Identical meshes → GPU instancing (Unity), MultiMesh / MultiMeshInstance (Godot), Instanced
+ Static Mesh (Unreal).
+- Static geometry → static batching / baking; mark non-moving objects static.
+- Reduce overdraw: limit large overlapping transparent/particle layers (they re-shade pixels).
+- Fewer real-time lights/shadows; bake lighting where it doesn't move.
+Measure draw calls before and after — the count should drop, and so should GPU frame time.
+```
+
+### 5. Kill per-frame allocations (GC spikes = stutter)
+
+```csharp
+// Unity 6 (C#). Allocating every frame fills the managed heap; the GC then stalls a frame.
+// WRONG (allocates each call): foreach (var e in FindObjectsOfType<Enemy>()) ... // + LINQ, new[]
+// RIGHT: cache references once, reuse buffers, avoid LINQ/boxing in Update.
+void Update() {
+ _hits = Physics.RaycastNonAlloc(ray, _hitBuffer); // reuse a preallocated array
+ for (int i = 0; i < _hits; i++) { /* ... */ } // no per-frame allocation
+}
+// Godot/GDScript: avoid building new arrays/dictionaries every frame in _process; reuse them.
+```
+
+## Pitfalls
+
+- **Optimizing without profiling.** The intuitive culprit is usually wrong. Measure first, every
+ time.
+- **Profiling the editor / a debug build.** Editor overhead and unoptimized code mislead. Profile
+ a release build on target hardware for real numbers.
+- **Fixing the wrong side.** Micro-optimizing CPU code when the GPU is the bottleneck (or vice
+ versa) changes nothing. Check the CPU-vs-GPU split first.
+- **Micro-optimizing over algorithm.** Shaving a function when an O(n²) loop or a per-frame
+ full-scene query is the real cost. Reduce the work, don't polish it.
+- **Instantiate/free in hot loops.** Spawning and destroying bullets/particles every frame causes
+ fragmentation and GC spikes. Pool them.
+- **Per-frame allocations / LINQ / boxing in `Update`** (C#) feed the GC → periodic hitches.
+ Cache and reuse.
+- **Draw-call explosion** from unique materials and unbatched sprites/meshes. Atlas, share
+ materials, instance, batch.
+- **Overdraw** from stacked transparents/particles/full-screen effects re-shading pixels.
+- **No budgets.** Without per-subsystem ms and asset ceilings, performance silently regresses;
+ enforce them in your build/CI checks.
+- **Optimizing too early.** Don't contort a prototype for performance before it's fun or measured.
+
+## References
+
+- For per-engine profiler walkthroughs, the CPU-vs-GPU triage flowchart, a complete pooling
+ manager, batching/instancing rules per engine, allocation/GC guidance, LOD/culling, and asset
+ budgets (texture sizes, triangle counts, audio, mobile thermals), read
+ `references/profiling-and-budgets.md`.
+
+## Related skills
+
+- `physics-tuning` — simulation cost, fixed-step budget, sleeping bodies, broadphase layers.
+- `godot-export` — release/build settings that affect measured performance.
+- `procedural-gen`, `game-ai` — common CPU hotspots (generation, pathfinding) to budget and defer.
+- `roguelike`, `tower-defense`, `survival-crafting` — entity-heavy genres that need pooling/budgets.
diff --git a/skills/disciplines/performance-optimization/references/profiling-and-budgets.md b/skills/disciplines/performance-optimization/references/profiling-and-budgets.md
new file mode 100644
index 0000000..96c26dd
--- /dev/null
+++ b/skills/disciplines/performance-optimization/references/profiling-and-budgets.md
@@ -0,0 +1,105 @@
+# Profiling & budgets — depth for `performance-optimization`
+
+Detail the body defers here: per-engine profiler walkthroughs, the CPU-vs-GPU triage flow, a
+pooling manager, batching/instancing rules, allocation/GC guidance, LOD/culling, and asset
+budgets. Targets **Godot 4.x**, **Unity 6**, **Unreal 5**.
+
+## 1. CPU-vs-GPU triage (decide before you fix)
+
+```text
+1. Read total frame time vs your budget (16.67 ms @60).
+2. Compare CPU-frame time and GPU-frame time:
+ GPU >> CPU → GPU-bound → draw calls, overdraw, shader cost, resolution, lights/shadows.
+ CPU >> GPU → CPU-bound → scripts, physics, pathfinding, allocations/GC, too many nodes.
+ Both high / alternating → find the per-frame spike in the timeline (one function/system).
+3. Within the bound side, sort costs descending and attack the top one only.
+4. Re-measure. If it didn't move the frame time, you fixed the wrong thing — revert and re-triage.
+```
+
+A GPU-bound game won't speed up from faster C#; a CPU-bound game won't speed up from fewer draw
+calls. This split is the single most important decision in performance work.
+
+## 2. Per-engine profiler quick start
+
+**Godot 4.x**
+- Editor: **Debugger ▸ Profiler** (per-function script + physics time, frame time), and the
+ **Monitors** tab (FPS, draw calls, video/static memory, object/node counts).
+- Code: `Performance.get_monitor(Performance.TIME_PROCESS)` (process ms),
+ `Performance.TIME_PHYSICS_PROCESS`, `Performance.RENDER_TOTAL_DRAW_CALLS_IN_FRAME`,
+ `Performance.RENDER_TOTAL_PRIMITIVES_IN_FRAME`, `Performance.MEMORY_STATIC`.
+- Visual debugging: viewport **View Information / View Frame Time** overlays.
+
+**Unity 6**
+- **Profiler** window: CPU Usage, GPU Usage, Rendering, Memory modules. Use **Deep Profile**
+ sparingly (high overhead, skews numbers).
+- **Frame Debugger** to step draw calls and see what breaks batching (SetPass calls, batches).
+- Code: `ProfilerRecorder` tracking `"CPU Main Thread Frame Time"` (Unity 6000 manual) for an
+ in-build HUD/CSV; `FrameTimingManager` for CPU/GPU frame times.
+- **Profile a Development build on device** (`Autoconnect Profiler`), not just the editor.
+
+**Unreal 5**
+- Console: `stat unit` (Frame / Game / Draw / GPU ms), `stat fps`, `stat scenerendering`
+ (draw calls, primitives), `stat game`, `stat gpu`.
+- **Unreal Insights** for full timeline traces; `ProfileGPU` (Ctrl+Shift+,) for a GPU breakdown.
+
+## 3. Pooling manager (generic)
+
+```text
+class Pool<T>:
+ free: list
+ create_fn, reset_fn
+ prewarm(n): for n → free.push(create_fn()) # allocate up front, off the hot path
+ acquire(): t = free.pop() or create_fn(); activate(t); return t
+ release(t): reset_fn(t); deactivate(t); free.push(t) # never destroy; recycle
+```
+
+Pool anything spawned frequently and briefly: bullets, shells, particles, damage numbers,
+enemies in waves, audio one-shots. Pre-warm at load to avoid first-use hitches. Cap the pool and
+decide an overflow policy (grow, or recycle the oldest).
+
+## 4. Batching & instancing rules
+
+- **What breaks a batch:** a different material, texture, or render state between objects. Share
+ materials and **atlas** textures so runs of objects submit as one draw call.
+- **Identical meshes, many instances** → GPU instancing: Unity (enable *GPU Instancing* on the
+ material) / Godot `MultiMesh` + `MultiMeshInstance2D/3D` / Unreal Instanced Static Mesh or
+ Hierarchical ISM.
+- **Static geometry** → static batching (Unity), mark static; bake where possible.
+- **2D** → texture atlases + a shared material batch sprites; avoid per-sprite materials.
+- **UI** → minimize canvas rebuilds (Unity: split static/dynamic canvases); a changing element
+ shouldn't dirty the whole canvas.
+- **Lights/shadows** → bake static lighting; cap real-time shadow casters; cull small shadows.
+
+## 5. Allocation / GC guidance
+
+- **C# (Unity):** no per-frame `new`, no LINQ in `Update`, avoid boxing (e.g. `enum` as dictionary
+ key), use `NonAlloc` physics queries, reuse `List`/arrays (`Clear()` not realloc), prefer
+ structs for small hot data, cache `GetComponent`/`Find` results. The goal is **0 B GC.Alloc per
+ frame** in steady state.
+- **GDScript (Godot):** don't build new `Array`/`Dictionary` each `_process`; reuse; prefer typed
+ arrays; avoid heavy work in `_process` that belongs on a timer/signal.
+- **General:** strings are a classic hidden allocator (concatenation, formatting) — build them
+ rarely, cache results.
+
+## 6. Do-less techniques (algorithmic wins)
+
+- **Run less often:** update AI/HUD/expensive checks on a timer or every N frames, not every
+ frame; stagger across frames (time-slicing).
+- **Spatial partition:** grid/quadtree/octree so queries touch nearby objects only, not all N.
+- **LOD & culling:** lower detail at distance; frustum/occlusion culling; despawn off-screen
+ far entities.
+- **Cache results:** memoize pathfinding, line-of-sight, and derived data; invalidate on change.
+- **Defer/Amortize:** spread procedural generation and loading across frames to avoid spikes.
+
+## 7. Asset budgets (prevent regressions at the source)
+
+| Asset | Typical desktop budget | Mobile budget | Notes |
+|-------|------------------------|---------------|-------|
+| Texture max size | 2048–4096 | 1024–2048 | use mipmaps; compress (BCn / ASTC) |
+| Character triangles | 30k–80k | 5k–20k | LODs for distance |
+| Draw calls / frame | low thousands | a few hundred | the count that matters most on mobile |
+| Real-time lights | a few | 1–2 + baked | bake the rest |
+| Audio | streamed music, short SFX in memory | same | don't decompress everything at load |
+
+Mobile adds **thermal throttling**: a game that hits 60 FPS for 2 minutes then drops is
+overheating — target headroom, cap frame rate, and reduce sustained GPU load.
diff --git a/skills/genres/card-game/SKILL.md b/skills/genres/card-game/SKILL.md
index 81e560a..15dfca3 100644
--- a/skills/genres/card-game/SKILL.md
+++ b/skills/genres/card-game/SKILL.md
@@ -125,7 +125,7 @@ def take_turn(player):
## Composition (build it from these skills)
- **Card content:** `godot-resources` / `unity-scriptableobjects` — define each card as a data asset.
-- **UI:** `godot-ui-control` for hand layout, drag/drop, zone counts, and targeting prompts.
+- **UI:** `game-ui-ux` for layout, scaling, and focus navigation; `godot-ui-control` for hand layout, drag/drop, zone counts, and targeting prompts.
- **Persistence/replays:** `save-systems` for collection, run state (roguelike deckbuilder), and seeded replays.
- **Opponent AI:** `game-ai` for an AI that evaluates playable cards and picks targets.
- **Animation/feedback:** the engine animation skill for card movement; `audio-design` for cues.
diff --git a/skills/genres/fps-shooter/SKILL.md b/skills/genres/fps-shooter/SKILL.md
index e37182f..0b8033d 100644
--- a/skills/genres/fps-shooter/SKILL.md
+++ b/skills/genres/fps-shooter/SKILL.md
@@ -113,6 +113,7 @@ ttk_seconds = (shots_to_kill - 1) / fire_rate_per_second # first shot at t=0
- **Input:** `input-systems` (or `unreal-enhanced-input`) for look/move, rebinding, and gamepad aim assist.
- **Shooting physics:** `godot-physics` / `unity-physics` for raycasts and projectile collision.
- **Enemies:** `game-ai` with `unity-navmesh` / `unreal-behavior-trees` / Godot navigation.
+- **Camera & feel:** `camera-systems` for FOV/recoil kick and look smoothing; `game-feel` for hit-stop, screen shake, and impact juice.
- **Polish:** `audio-design` for weapon/impact sound; `shader-programming` for muzzle/impact VFX.
- **Process:** `prototype-fast` to validate aim feel before building content.
diff --git a/skills/genres/puzzle/SKILL.md b/skills/genres/puzzle/SKILL.md
index bb8f6b9..8b6505a 100644
--- a/skills/genres/puzzle/SKILL.md
+++ b/skills/genres/puzzle/SKILL.md
@@ -137,7 +137,7 @@ snapshots to save memory; snapshots are simplest and fine for small boards.
- **Board rendering:** `godot-tilemap` / `unity-tilemap-2d` for the grid; `godot-ui-control` for HUD, score, and menus.
- **Levels:** `level-design` for hand-authored puzzles and difficulty pacing; `procedural-gen` for solvable generated boards.
- **Persistence:** `save-systems` for level progress, high scores, and seeded daily puzzles.
-- **Juice:** the engine animation/`Tween` skill for swaps/falls/clears; `audio-design` for match and chain cues.
+- **Juice:** `game-feel` for match/cascade pop, screen shake, and chain feedback; the engine animation/`Tween` skill for swaps/falls/clears; `audio-design` for match and chain cues.
- **Scripting:** `godot-gdscript` / `unity-csharp-scripting` for the resolution loop and rules.
## References
diff --git a/skills/genres/roguelike/SKILL.md b/skills/genres/roguelike/SKILL.md
index 0e8b6d1..bdd3573 100644
--- a/skills/genres/roguelike/SKILL.md
+++ b/skills/genres/roguelike/SKILL.md
@@ -131,6 +131,7 @@ roll a naive raycast-per-cell — it produces asymmetric, "blinking" vision. See
- **Persistence:** `save-systems` for run-resume, profile/meta-progression, and true permadeath wipes.
- **Scripting/data:** `godot-resources` / `unity-scriptableobjects` to define items, monsters, and drop tables as data.
- **UI:** `godot-ui-control` for the message log, inventory, and HUD.
+- **Feel:** `game-feel` for hit/death juice — screen shake and hit-stop that sell impacts on a turn-based grid.
## References
diff --git a/skills/genres/rpg/SKILL.md b/skills/genres/rpg/SKILL.md
index 0deec7a..66e5c2e 100644
--- a/skills/genres/rpg/SKILL.md
+++ b/skills/genres/rpg/SKILL.md
@@ -126,7 +126,7 @@ def on_event(kind, data):
- **Persistence:** `save-systems` — character, inventory, quest flags, world state, versioning.
- **Content data:** `godot-resources` / `unity-scriptableobjects` — items, enemies, quests, skills as assets.
- **Combat AI:** `game-ai` for enemy behavior; for turn order reuse the scheduler idea in `roguelike`.
-- **UI:** `godot-ui-control` for inventory, quest log, character sheet, dialogue box.
+- **UI:** `game-ui-ux` for HUD/menu layout, resolution scaling, and controller/keyboard nav; `godot-ui-control` for the concrete inventory, quest log, character sheet, and dialogue box.
- **World:** `level-design` plus your engine's tilemap/3D skill (`godot-tilemap`, `godot-3d-essentials`).
## References
diff --git a/skills/genres/survival-crafting/SKILL.md b/skills/genres/survival-crafting/SKILL.md
index e723038..e1898b4 100644
--- a/skills/genres/survival-crafting/SKILL.md
+++ b/skills/genres/survival-crafting/SKILL.md
@@ -139,7 +139,7 @@ def harvest(node, tool):
- **Persistence:** `save-systems` for large-world state, base, inventory, needs, and versioning.
- **Threats:** `game-ai` for creatures; the engine physics skill for melee/collision.
- **Building/placement:** `godot-tilemap` / `unity-tilemap-2d` (2D) or `godot-3d-essentials` (3D) plus UI snapping.
-- **UI:** `godot-ui-control` for inventory, crafting menu, needs HUD, build mode.
+- **UI:** `game-ui-ux` for inventory/crafting/HUD layout and scaling; `godot-ui-control` for the concrete inventory, crafting menu, needs HUD, and build mode.
## References
diff --git a/skills/genres/tower-defense/SKILL.md b/skills/genres/tower-defense/SKILL.md
index 090c61f..5518b7f 100644
--- a/skills/genres/tower-defense/SKILL.md
+++ b/skills/genres/tower-defense/SKILL.md
@@ -116,7 +116,7 @@ damage_dealt = tower_dps * time_in_range
- **Enemy movement:** `godot-2d-movement` (or engine equivalent) to move along the path; `unity-navmesh` for nav-based pathing.
- **Map:** `godot-tilemap` / `unity-tilemap-2d` for the grid/lanes; `level-design` for map layouts.
- **Data:** `godot-resources` / `unity-scriptableobjects` to define towers, enemies, and waves as assets.
-- **UI:** `godot-ui-control` for HUD (lives, gold, wave preview, build menu).
+- **UI:** `game-ui-ux` for HUD layout, scaling, and the build menu; `godot-ui-control` for the concrete widgets (lives, gold, wave preview).
- **Polish:** `audio-design` for fire/hit/leak sound cues.
## References
diff --git a/skills/genres/visual-novel/SKILL.md b/skills/genres/visual-novel/SKILL.md
index c576c54..e059087 100644
--- a/skills/genres/visual-novel/SKILL.md
+++ b/skills/genres/visual-novel/SKILL.md
@@ -126,7 +126,7 @@ if flags.get("helped_npc"): play_route("good_ending") else: play_route("neutral_
## Composition (build it from these skills)
- **Script engine:** `dialogue-systems` (Ink / Yarn Spinner) — branching, conditions, variables, localization hooks.
-- **Presentation:** `godot-ui-control` for the text box, choice menu, name plate, and backlog UI.
+- **Presentation:** `game-ui-ux` for text-box/choice-menu layout, scaling, and safe areas; `godot-ui-control` for the concrete text box, choice menu, name plate, and backlog UI.
- **Persistence:** `save-systems` for save-anywhere slots, seen-text/skip data, and settings.
- **Audio:** `audio-design` for per-scene music, SFX, and voice playback.
- **Visuals:** the engine animation/`Tween` skill for sprite/background transitions; `shader-programming` for dissolves.
diff --git a/skills/godot/godot-2d-movement/SKILL.md b/skills/godot/godot-2d-movement/SKILL.md
index 272591f..47b445d 100644
--- a/skills/godot/godot-2d-movement/SKILL.md
+++ b/skills/godot/godot-2d-movement/SKILL.md
@@ -152,4 +152,5 @@ func _physics_process(delta: float) -> void:
- `godot-physics` — collision layers/masks, areas, raycasts, rigid bodies.
- `godot-tilemap` — building the levels this character walks on.
- `godot-animation` — driving sprite/skeletal animation from movement state.
+- `camera-systems` — follow camera, deadzone, and look-ahead that track this character.
- `platformer` / `input-systems` — full genre template and rebindable input.
diff --git a/skills/godot/godot-3d-essentials/SKILL.md b/skills/godot/godot-3d-essentials/SKILL.md
index ecd1571..37f011c 100644
--- a/skills/godot/godot-3d-essentials/SKILL.md
+++ b/skills/godot/godot-3d-essentials/SKILL.md
@@ -138,4 +138,6 @@ func build_floor(width: int, depth: int, item_id: int) -> void:
- `godot-physics` — 3D bodies, areas, and raycasts.
- `godot-shaders` — spatial shaders for custom 3D surfaces.
- `godot-animation` — `AnimationTree` for 3D characters.
+- `camera-systems` — third-person orbit / first-person look rigs, framing, and collision.
+- `performance-optimization` — keep 3D scenes within frame budget (draw calls, lights, LOD).
- `fps-shooter` — composes 3D movement, input, and AI into a game.
diff --git a/skills/godot/godot-ui-control/SKILL.md b/skills/godot/godot-ui-control/SKILL.md
index 8ab3e7a..72e38e8 100644
--- a/skills/godot/godot-ui-control/SKILL.md
+++ b/skills/godot/godot-ui-control/SKILL.md
@@ -125,6 +125,7 @@ func _ready() -> void:
## Related skills
+- `game-ui-ux` — cross-engine UI/UX: responsive scaling, safe areas, focus navigation, screen flow.
- `godot-animation` — Tween-based UI transitions and juicing.
- `godot-signals-groups` — connecting UI events to game logic.
- `input-systems` — rebindable input and multi-device focus.