Puzzle Game
/puzzle
Build a puzzle game: grid/board state, move input, rule-based resolution (match-3 cascades, sokoban pushes, tile logic), scoring, and undo.
- 许可证
- Apache-2.0
- 出品
- GameSkill 出品
所属合集
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.
我们测过
在 Godot 4.7.2 上通过 36/36 项检查(2026-10-28):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Build a puzzle game: grid/board state, move input, rule-based resolution (match-3 cascades, sokoban pushes, tile logic), scoring, and undo. Use for a match-3, sokoban, or grid-logic puzzle.
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 184b72be0288,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 棋盘数据是唯一真相,画面只读它 / The board model is the single source of truth; the view only reads it
- 一次操作后循环结算直到没有新的消除 / After a move, resolution loops until no new matches appear
- 补块用固定种子的随机数,撤销会把随机数状态一起还原 / Refills use a seeded RNG, and undo restores its state too
- 开局没有现成的消除,且至少有一步可走;无步可走时洗牌 / The opening board has no matches and at least one move; a deadlock triggers a shuffle
- 结算动画播放时锁住输入 / Input is locked while the board resolves
中文指南
这个 skill 做什么
教 agent 做格子类解谜游戏:三消、推箱子、滑块拼图、逻辑格子。重点是棋盘数据和规则结算:判断操作是否合法、循环结算直到稳定(连锁)、计分、撤销,以及生成一定有解的关卡。
什么时候用
- 做三消、推箱子、滑块或其他格子逻辑解谜
- 连锁漏结算、撤销后分数或补块不一致
- 随机生成的关卡可能无解
怎么装
下载本页的 ZIP,把 puzzle/ 整个文件夹放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor),重启 agent。
最小示例
skill 里的示例是 Python 伪代码。我们把它写成了 Godot 4.7 版本,放在 gameskill/examples/:match3.gd(三消,含连锁、带种子的补块、撤销、死局检测)、sokoban.gd(推箱子,含撤销和死角判定)、sliding.gd(滑块可解性)。
我们怎么测的
在 Godot 4.7.2 无头模式下跑 24 项检查:边缘的横竖连线都能识别;重力下落正确;结算循环到稳定;同一种子生成同一棋盘;撤销后整个状态的哈希完全一致,重做同一步补出的块也一样;无效交换被拒绝;结算中锁住输入;死局能识别;推箱子不能推两个箱子或推进墙;死角判定。另外用广度优先搜索穷举了 3×2、4×2 的全部棋盘和 2000 个随机 3×3 棋盘,参考文档里的滑块奇偶规则全部正确。结果在 gameskill/test-report.json。
搭配
level-design:关卡节奏和难度曲线game-feel、GameSkill 的 hit-juice:消除和连锁的反馈save-systems:关卡进度和每日谜题
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/puzzle/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/puzzle.zip -o /tmp/gameskill-puzzle.zip
unzip -oq /tmp/gameskill-puzzle.zip -d .claude/skills
rm /tmp/gameskill-puzzle.zip包含内容
- Worked steps: Board model + match detection; Resolve → collapse → refill → cascade; Undo via state snapshot or command
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
适合
- A match-3, sokoban, or grid-logic puzzle
试试这条提示词
Build a match-3 board with cascades, scoring and undo.关于这个 Skill
Build a puzzle game: grid/board state, move input, rule-based resolution (match-3 cascades, sokoban pushes, tile logic), scoring, and undo. Use for a match-3, sokoban, or grid-logic puzzle.
From the puzzle SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Core loop
- Must-have systems
- Design knobs
- Board model + match detection (logic separate from visuals)
- Resolve → collapse → refill → cascade (repeat to stability)
- Undo via state snapshot or command
- Composition (build it from these skills)
常见问题
爆款剥离解谜套件 Peel-Match Puzzle Kit
对标《Pixel Flow!》《拆毛线》的商业解谜内核:外露剥离引擎、DFS 100% 可解求解器、盲点胜率调优脚本、64×64 离屏毛绒渲染器与零文件 iOS 断音自愈三声部 WebAudio(含 3 关通用 Demo,开箱即换皮)。
- 外露连通剥离引擎 + 色彩守恒校验(支持双股结与巨型块)
- 启发式 DFS 求解器(离线证明 5 槽必可解 + 局内提示/时光机)
基于 gamedev-skills/awesome-gamedev-agent-skills (作者 gamedev-skills,协议 Apache-2.0)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 48 个2D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior 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.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
相似 skills
Novel to Game
Agent skills for source-grounded adaptation of novels into games: cited design docs, target-runtime builds and evidence-based QA.
Novel to Game: Art Direction
Direct game art and creative vision.
Novel to Game: Book Analysis
Deconstruct a novel for game adaptation.
Novel to Game: Concept
Design game concepts from a novel.