puzzle
Skill by gamedev-skills
Designs grid and logic puzzle games in any engine, covering match-3 cascades, Sokoban pushes, logic grids, exact undo and solver-checked levels. Aimed at developers building discrete board puzzles.
Install puzzle
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/genres/puzzle ~/.claude/skills/puzzleRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/genres/puzzle ~/.gemini/antigravity-cli/skills/puzzleAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The puzzle skill guides an AI assistant through building discrete board puzzle games, such as match-3 with cascades, Sokoban pushing, Picross or Sudoku-style logic grids. It covers the rules engine, resolution order, undo, solvability and level difficulty. The board is stored as plain data, and a pure apply function returns the list of changes that the view animates.
The skill includes rule tables with starting numbers, a loop that resolves match-3 cascades until stable, and a checklist of tests. These cover a solver that validates every level, undo checked by hashing the full state, and input locking during cascades. It is written for developers in any engine, and it names related skills for level design, tilemaps and save systems.
Written from the project's SKILL.md and checked against it.
What it can do
- Board state modelModels the board as plain data with a pure apply(state, move) function that returns events.
- Match-3 resolutionLoops clears, gravity and refill until no matches remain, then checks for a valid move.
- Rule familiesCovers match-3, Sokoban, sliding puzzles, 2048-style merge, logic grids and rule-changing puzzles.
- Exact undoSnapshots board, score, counters and RNG state before every move, with restart included.
- Level solverUses BFS, A* or constraint solving to validate levels, measure difficulty and power hints.
- Difficulty orderingOrders levels by measured solver effort and introduces one mechanic at a time.
- Test checklistLists checks for solved levels, unique logic solutions, undo hashing and move existence.
- Dead square detectionPrecomputes dead squares in Sokoban so boxes pushed into corners can be flagged.
Try asking
- Write a match-3 resolve loop with cascades and seeded refill for my board
- Add exact undo to my Sokoban game that also restores the RNG state
- Check that my generated logic grid has exactly one solution
Good to know
- Not for physics-driven puzzles or puzzle platformers.
- Not for turn-based dungeon runs or card games.
- Match-3 board size, colour count and hint delay are common practice, not measured.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/genres/puzzle/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/board-and-resolution.md6 KB
Alternatives to puzzle
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
puzzle: common questions
Does the puzzle skill work with any game engine?
The source says it designs grid and logic puzzles in any engine. It also points to engine-specific tilemap skills for rendering the board.
How does the skill handle undo?
It pushes a snapshot or invertible command before every move, including score, move counters and RNG state. The test checklist hashes the full state, makes a random move, undoes it and compares hashes 1,000 times.
Can the skill make sure a level can be solved?
Yes. The workflow says to write a solver early to validate every shipped level and to generate Sokoban levels backwards from the solved state.
How do I install puzzle?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is puzzle free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is puzzle safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to puzzle?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
