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.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
fix(ebitengine): follow-ups to the game skill
Kiro Crewa572d21ad2db
diff --git a/skills/ebitengine/ebitengine-game/SKILL.md b/skills/ebitengine/ebitengine-game/SKILL.mdindex 9752b1f..9cb7592 100644--- a/skills/ebitengine/ebitengine-game/SKILL.md+++ b/skills/ebitengine/ebitengine-game/SKILL.md@@ -175,7 +175,8 @@ Ebitengine's pure-Go desktop backend.This skill owns Ebitengine/Go APIs. For portable design concerns, pair it withthe relevant installed discipline (for example `game-ui-ux`, `game-feel`,-`create-game-assets` or `save-systems`), genre or shipping workflow. Bind the+`create-game-assets`, `input-systems`, `performance-optimization` or+`save-systems`), genre or shipping workflow. Bind theengine slots to this skill's references, not another engine's example code.Load only what the task needs; the complete folder also works on its own.diff --git a/skills/ebitengine/ebitengine-game/references/architecture-and-testing.md b/skills/ebitengine/ebitengine-game/references/architecture-and-testing.mdindex 359b881..5aa2e13 100644--- a/skills/ebitengine/ebitengine-game/references/architecture-and-testing.md+++ b/skills/ebitengine/ebitengine-game/references/architecture-and-testing.md@@ -239,7 +239,8 @@ func Load(game string) (SaveData, error) {through `syscall/js` behind a `//go:build js` file.- Include a format version, migrate supported old formats and report unsupportedversions without overwriting them. Recover malformed data from a validated- backup or show a recoverable error.+ backup or show a recoverable error. For engine-neutral save design and+ migration, see `save-systems`.## Testingdiff --git a/skills/ebitengine/ebitengine-game/references/gameplay-systems.md b/skills/ebitengine/ebitengine-game/references/gameplay-systems.mdindex 0d4cb57..8187ec4 100644--- a/skills/ebitengine/ebitengine-game/references/gameplay-systems.md+++ b/skills/ebitengine/ebitengine-game/references/gameplay-systems.md@@ -202,7 +202,7 @@ and preserve intended buffered actions. See [Assets and animation](assets-and-anfor aligning contact markers, hitboxes and sound.This applies the importance/decay principle from-[game-feel](https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/38a4c2500eeb5ff9ac084336b8f66108069d2f8d/skills/disciplines/game-feel/SKILL.md).+`game-feel`.There is no required number of channels. Easing is useful for settling UI orposes; constant-speed projectiles, precise meters and some art directions shouldstay linear. A large feedback bundle cannot compensate for unclear rules.diff --git a/skills/ebitengine/ebitengine-game/references/input.md b/skills/ebitengine/ebitengine-game/references/input.mdindex fd94c28..75461a9 100644--- a/skills/ebitengine/ebitengine-game/references/input.md+++ b/skills/ebitengine/ebitengine-game/references/input.md@@ -112,6 +112,7 @@ handling, and re-sample held state when a binding changes. Show key names with`ebiten.KeyName(key)`; it reflects the layout for named printable keys but mayreturn an empty string. Supply labels for arrows, modifiers and unsupportedplatforms (for example a table, with `key.String()` as a final fallback).+For engine-neutral rebinding and remapping UX, see `input-systems`.## Menus: key repeatdiff --git a/skills/ebitengine/ebitengine-game/references/project-and-builds.md b/skills/ebitengine/ebitengine-game/references/project-and-builds.mdindex 6f5aa22..2a3f4a3 100644--- a/skills/ebitengine/ebitengine-game/references/project-and-builds.md+++ b/skills/ebitengine/ebitengine-game/references/project-and-builds.md@@ -122,6 +122,7 @@ WebAssembly.instantiateStreaming(fetch("game.wasm"), go.importObject).then(r =>- No ordinary persistent OS file system: small saves can use `localStorage` via`syscall/js`; handle quota/unavailable storage. Larger data may need IndexedDB.- For itch.io upload, zip `dist/` with `index.html` at the top level and test the actual hosted page.+ For page setup and butler uploads, see `itch-publish`.## Mobile@@ -154,7 +155,8 @@ ebitenmobile bind -target ios -o MyGame.xcframework ./mobileThe Android `.aar` provides an `EbitenView`; call its `suspendGame()`/`resumeGame()`from `onPause`/`onResume`. The iOS framework provides a view controller to-subclass. Requirements: Android SDK/NDK via Android Studio (minimum SDK 16), Xcode+subclass. Requirements: Android SDK/NDK via Android Studio (ebitenmobile defaults+to minimum API 21; `-androidapi` sets it), Xcodefor iOS 13+. For this layout, move the game type out of `package main` into apackage (here `game`) that both `main` and the mobile package import.diff --git a/skills/ebitengine/ebitengine-game/references/publishing-and-platforms.md b/skills/ebitengine/ebitengine-game/references/publishing-and-platforms.mdindex b77b7dd..636d277 100644--- a/skills/ebitengine/ebitengine-game/references/publishing-and-platforms.md+++ b/skills/ebitengine/ebitengine-game/references/publishing-and-platforms.md@@ -89,6 +89,7 @@ functions and platform support; it does not automatically provide all Steamfeatures. The binding can load its shared library during package initialization,so isolate the import behind a store/platform build tag. A runtime flag after`init` cannot rescue a build whose SDK library failed to load.+For depots, SteamPipe uploads and store release, see `steam-publish`.Keep game-used services behind a small interface and provide a non-Steamimplementation for other targets/tests. Initialize the SDK deliberately, calldiff --git a/skills/ebitengine/ebitengine-game/references/rendering.md b/skills/ebitengine/ebitengine-game/references/rendering.mdindex 1635d83..946d179 100644--- a/skills/ebitengine/ebitengine-game/references/rendering.md+++ b/skills/ebitengine/ebitengine-game/references/rendering.md@@ -108,7 +108,8 @@ func drawGlow(dst, img *ebiten.Image, x, y float64, alpha float32) {## Shapes`vector.FillRect`, `StrokeRect`, `StrokeLine`, `FillCircle`, `StrokeCircle` take-`float32` coordinates, a colour and an `antialias` flag. Use `true` for smooth geometry; intentional+`float32` coordinates, a colour and an `antialias` flag; the `Stroke*` functions+also take a `float32` `strokeWidth` before the colour. Use `true` for smooth geometry; intentionalpixel-art edges may use `false`. (v2.9 renamed`DrawFilledRect`/`DrawFilledCircle` to `FillRect`/`FillCircle`). For othershapes, build a `vector.Path`:@@ -251,6 +252,7 @@ collision-critical movement, tie rules updates to `Draw`, or let offscreen rendeculling silently stop gameplay. These are conditional applications of[game-developer's performance guidance](https://github.com/Jeffallan/claude-skills/blob/02b05028ba6c93f7aed45314b15c0dd5abead9d6/skills/game-developer/references/performance-optimization.md),rather than requirements to add pooling, LOD or an ECS before measuring.+For engine-neutral profiling and budgeting, pair this with `performance-optimization`.For art-set/sprite registration checks, see [Assets and animation](assets-and-animation.md).For Kage, consult the pinned engine's shader documentation or itsdiff --git a/skills/ebitengine/ebitengine-game/references/text-and-ui.md b/skills/ebitengine/ebitengine-game/references/text-and-ui.mdindex da8504e..9d880d2 100644--- a/skills/ebitengine/ebitengine-game/references/text-and-ui.md+++ b/skills/ebitengine/ebitengine-game/references/text-and-ui.md@@ -146,7 +146,7 @@ behavior. A modal owns input; closing it restores a still-valid previous controlor a deliberate fallback. Skip hidden/disabled items, and prevent the same pressthat opens/closes an overlay from also activating a control or gameplay behindit. Mouse hover and persistent focus need not be the same state. This develops-the focus lifecycle in [game-ui-ux](https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/38a4c2500eeb5ff9ac084336b8f66108069d2f8d/skills/disciplines/game-ui-ux/references/layout-and-flow.md).+the focus lifecycle in `game-ui-ux` (its layout-and-flow reference).Reserve stable space for changing numbers (score, time, ammunition); measure thelargest supported representation or use suitable tabular digits. Test transitionsdiff --git a/skills/ebitengine/ebitengine-game/scripts/check_ebitengine.py b/skills/ebitengine/ebitengine-game/scripts/check_ebitengine.pyindex ff111f0..f36a1c7 100644--- a/skills/ebitengine/ebitengine-game/scripts/check_ebitengine.py+++ b/skills/ebitengine/ebitengine-game/scripts/check_ebitengine.py@@ -69,6 +69,12 @@ DEPRECATED_MAYBE = [(r"\.ReplacePixels\(", "Image.ReplacePixels (v2.4) -> Image.WritePixels (if this is an ebiten.Image)"),(r"\.Dispose\(\)", "Image/Shader.Dispose (v2.7) -> Deallocate, or just drop the reference (ignore if not an ebiten type)"),]+# Like DEPRECATED_MAYBE, but only checked in files that import the Ebitengine audio package.+DEPRECATED_PLAYER = [+ (r"\.Close\(\)", "Player.Close (v2.10) -> Player.PauseAndStopReading (if this is an audio.Player)"),+ (r"\.Seek\([^,()]*\)", "Player.Seek (v2.6) -> Player.SetPosition (if this is an audio.Player)"),+ (r"\.Current\(\)", "Player.Current (v2.6) -> Player.Position (if this is an audio.Player)"),+]# Checks inside Draw bodies. Capture bookkeeping is an intentional exception.IN_DRAW = [@@ -172,7 +178,9 @@ def scan_file(path, raw_imports):if alias not in (".", "_") and import_path in known:names[alias] = known[import_path]canonical = set(known.values())- code = re.sub(r"\b([A-Za-z_]\w*)\s*(?=\.)", lambda m: names.get(+ # A name after "." is a field or method (s.audio.NewPlayer), not a package.+ code = re.sub(r"(?<=\.)(" + "|".join(sorted(canonical)) + r")\b", r"__field_\1", code)+ code = re.sub(r"(?<![.\w])([A-Za-z_]\w*)\s*(?=\.)", lambda m: names.get(m.group(1), "__other_"+m.group(1) if m.group(1) in canonical else m.group(1)), code)found = []@@ -182,7 +190,7 @@ def scan_file(path, raw_imports):for pat, msg in DEPRECATED:for m in re.finditer(pat, code):add("warn", code.count("\n", 0, m.start()) + 1, "deprecated: " + msg)- for pat, msg in DEPRECATED_MAYBE:+ for pat, msg in DEPRECATED_MAYBE + (DEPRECATED_PLAYER if "audio" in names.values() else []):for m in re.finditer(pat, code):add("warn", code.count("\n", 0, m.start()) + 1, "possibly deprecated: " + msg)for _, import_path, line in imported:diff --git a/skills/ebitengine/ebitengine-game/scripts/new_game.py b/skills/ebitengine/ebitengine-game/scripts/new_game.pyindex 19114ca..35acc1a 100644--- a/skills/ebitengine/ebitengine-game/scripts/new_game.py+++ b/skills/ebitengine/ebitengine-game/scripts/new_game.py@@ -65,7 +65,10 @@ def main():if not args.title.strip() or any(unicodedata.category(c).startswith("C") for c in args.title):print("error: --title must be nonempty and contain no control characters", file=sys.stderr)return 2- name = re.sub(r"[^a-z0-9_-]", "", args.module.rsplit("/", 1)[-1].lower()) or "game"+ parts = args.module.split("/")+ if len(parts) > 1 and re.fullmatch(r"v\d+", parts[-1]):+ parts.pop() # major-version suffix: github.com/you/game/v2 -> game+ name = re.sub(r"[^a-z0-9_-]", "", parts[-1].lower()) or "game"bundle_name = name.replace("_", "-").strip("-") or "game"bundle_id = args.bundle_id or f"com.example.{bundle_name}"if not re.match(r"^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)+$", bundle_id):diff --git a/tests/test_check_ebitengine.py b/tests/test_check_ebitengine.pyindex 3fb9f6f..2a83b9e 100644--- a/tests/test_check_ebitengine.py+++ b/tests/test_check_ebitengine.py@@ -116,6 +116,27 @@ func main() {}self.assertEqual(result.returncode, 0, result.stderr)self.assertEqual(json.loads(result.stdout)["files_checked"], 1)+ def test_struct_fields_named_like_packages_are_not_package_calls(self):+ self.write("main.go", '''package main+import (+ e "github.com/hajimehoshi/ebiten/v2"+ "github.com/hajimehoshi/ebiten/v2/audio"+)+func f(s *S, r R) { s.audio.NewPlayer(r); s.e.SetMaxTPS(60); audio.CurrentContext() }+''')+ result = self.run_check("--json", "--strict")+ self.assertEqual(result.returncode, 0, result.stdout + result.stderr)+ self.assertEqual(json.loads(result.stdout)["warning_count"], 0)++ def test_deprecated_player_methods_are_checked_only_with_audio_import(self):+ body = "func f(p *P, file *F) { p.Close(); p.Seek(d); p.Current(); file.Seek(0, 0) }\n"+ self.write("main.go", 'package main\nimport "github.com/hajimehoshi/ebiten/v2/audio"\n' + body)+ report = json.loads(self.run_check("--json").stdout)+ self.assertEqual(sorted(i["message"].split(" ")[2] for i in report["warnings"]),+ ["Player.Close", "Player.Current", "Player.Seek"])+ self.write("main.go", 'package main\nimport "github.com/hajimehoshi/ebiten/v2"\n' + body)+ self.assertEqual(json.loads(self.run_check("--json").stdout)["warning_count"], 0)+if __name__ == "__main__":unittest.main()diff --git a/tests/test_ebitengine_tools.py b/tests/test_ebitengine_tools.pyindex 6a72d64..df115f1 100644--- a/tests/test_ebitengine_tools.py+++ b/tests/test_ebitengine_tools.py@@ -56,6 +56,14 @@ class ToolTests(unittest.TestCase):self.assertNotEqual(result.returncode, 0)self.assertEqual((out / "keep.txt").read_text(), "keep")+ def test_generator_skips_major_version_suffix_in_game_name(self):+ out = self.root / "versioned"+ result = self.run_tool("new_game.py", "--out", out, "--module", "github.com/you/coolgame/v2", "--ci")+ self.assertEqual(result.returncode, 0, result.stderr)+ workflow = (out / ".github/workflows/ci.yml").read_text()+ self.assertIn("GAME: coolgame", workflow)+ self.assertIn("com.example.coolgame", workflow)+def test_generator_rejects_known_incompatible_or_bad_inputs_before_writing(self):for options in (("--module", "example.com/../game"),("--ebiten", "v2.9.0"), ("--go", "1.24.0")):