Skip to content
SkillModel-led1,499 tokens in use

puzzle

Designs grid and logic puzzle games in any engine: match-3 cascades, Sokoban pushing, unique-solution grids, exact undo and levels validated and ordered by a solver.

9,683 stars on the repository Apache License 2.0gamedev-skills/awesome-gamedev-agent-skills · skills/genres/puzzle
npx skills add gamedev-skills/awesome-gamedev-agent-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing puzzle costs

89tokens idle
1,499tokens in use
2,998tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter8/15
  • Structure25/25
  • Examples12/15
  • Output10/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity92
  • Maintenance96
  • Community60
  • Maturity24
  • Momentum40

Puzzle owns discrete board puzzles: the rules engine, resolution order, undo, solvability and level difficulty. The board model is the only source of truth, and the view replays the list of events each move produced.

The agent models the board as data with a pure apply function, resolves cascades to stability, adds undo from day one and writes a solver early. It runs checks for solvable levels, unique logic solutions, undo hashes, match-3 boards and input during cascades.

What You Get

  • A board model with a pure apply(state, move) function that returns events for the view
  • A resolve-to-stability pattern for match-3 that decides special pieces before clearing
  • Undo with snapshots that include score, counters and RNG state, plus restart
  • A solver-first plan that validates levels, measures difficulty and powers hints
  • A test list: solver coverage, unique logic solutions, undo hash round trips, 10,000 random match-3 boards and input locking
  • A reference on gravity and refill, deadlock detection, sliding-tile parity and solvable generation

Common Use Cases

  • Building a Candy Crush style match-3 with correct cascades
  • Making Sokoban or Picross levels that are solvable and ordered by difficulty
  • Fixing undo that rerolls refills or visuals that desync from the board
  • Generating logic grids with exactly one solution

What Makes It Unique

It treats the solver as part of the game. Every level is solved, difficulty comes from solver effort, and logic grids must resolve by deduction without guessing. The skill also stresses that the RNG state belongs in each undo snapshot, since players otherwise undo to reroll better pieces.

Under The Hood

The skill is a SKILL.md with one reference file on board resolution. The agent reads your board and rules code, edits it and writes solver and test code that it runs with the project’s test runner, such as thousands of random boards and undo round trips. The snippets are pseudocode. The version notes cite outside pages, but the skill does not tell the agent to fetch web pages or call services.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers