Pygame Core
/pygame-core
Structure a pygame-ce game: the game loop, delta-time movement, blitting, keyboard and mouse input, and sprite groups with collision.
- License
- Apache-2.0
- By
- By GameSkill
Part of
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
Tested by GameSkill
29/29 checks passed on pygame-ce 2.5.8 (SDL 2.32.10) (2026-10-30): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.
Test reportWhat this skill does
When it triggers
Structure a pygame (pygame-ce) game in Python: the init/event/update/draw loop, delta-time movement, Surface/Rect blitting, keyboard/mouse input, and Sprite/Group management with collision.tick. Targets pygame-ce. …
GameSkill's tested copy
GameSkill's tuned build of this skill: the skill files from commit 19d93f97c9c1, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.
License: based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.

Self-check
- 移动乘以 dt(秒),不按帧算 / Movement scales by dt in seconds, not per frame
- 位置用浮点 Vector2 存,Rect 只用来画和碰撞 / Keep a float position; the Rect is for drawing and collision
- dt 有上限,卡顿后不会瞬移 / dt is capped so a stall does not teleport sprites
- set_mode 之后再 convert() / convert_alpha() / Call convert() or convert_alpha() after set_mode
- 移除精灵用 kill(),从所有 Group 中删掉 / Remove sprites with kill(), which leaves every group
Pairs well with
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/pygame-core/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/pygame-core.zip -o /tmp/gameskill-pygame-core.zip
unzip -oq /tmp/gameskill-pygame-core.zip -d .claude/skills
rm /tmp/gameskill-pygame-core.zipWhat you get
- Worked steps: Minimal game loop; Delta-time movement; Input: events vs polling; A Sprite subclass + a Group
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
- Written for pygame-ce
Good fit
- Building or debugging a pygame game
Try this prompt
Set up a pygame-ce game loop with sprite groups and collision.About this skill
Structure a pygame (pygame-ce) game in Python: the init/event/update/draw loop, delta-time movement, Surface/Rect blitting, keyboard/mouse input, and Sprite/Group management with collision. Use when building or debugging a pygame game — when the user mentions pygame, pygame-ce, the game loop, blit, Surface, Rect, sprite groups, or clock.tick. Targets pygame-ce.
From the pygame-core SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Minimal game loop (the skeleton)
- Delta-time movement (frame-rate independent)
- Input: events vs polling
- A Sprite subclass + a Group
- Collision detection
Requirements
- pygame-ce
FAQ
Game Polish Workflow
A repeatable workflow for getting an AI agent to actually improve your game: a 10-step polish loop, bilingual prompts, a troubleshooting guide for common AI-made game bugs, and playtest and release checklists.
- 10-step polish loop with done criteria
- 14 prompts in Chinese + 14 in English
Based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.
Works well with
Skills the author points to as related or as the better fit for neighbouring tasks.
LÖVE (Love2D) Core
Structure and debug a LÖVE (Love2D) game in Lua: the love.load/update/draw loop, delta-time movement, input, and screen states.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Game Input Systems
Game input architecture: action mapping, rebinding with conflict checks, keyboard, gamepad and touch, deadzones, buffering and coyote time.
Game Save Systems
Design save/load for game state — choosing what to serialize, file formats, save slots, atomic crash-safe writes, schema versioning and migration, and autosave.
More from Awesome Gamedev Agent Skills
See all 42Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
Create Game Assets
Plan, generate, source, normalize, and validate cohesive visual game assets.
Defold Core
Build and debug the core of a Defold game in Lua: game.project, collections, game objects, script lifecycle, go.property, input focus, URLs and messages, factories and collection proxies, with a read-only reference checker and a Bob build plus headless smoke run.
Similar skills
Game Decompilation Skill For Claude
Seven Claude Code skills for byte-matching decompilation of retro games: rebuild readable C/C++ function by function, diagnose why a function won't match, and run parallel matcher workers. No license is published, so see the repository for use.
pyxel-skill
The official agent skill for building and verifying Pyxel retro games, by Pyxel's creator kitao. Bundles the pyxel-mcp server so the agent can run, screenshot and check its own game.
FunPlay Skill
14 MIT agent skills for game development with scripts and tests: sprite-sheet slicing, normal maps, audio conversion, game concept briefs, browser game slices, Unity MCP workflow and Cocos/WeChat minigame rules.
Ludra
A 2D game engine built for AI agents: games are JSON, every error comes with a machine-readable fix, and the agent plays and tests its own game headlessly. Ships a Claude Code plugin and skill.