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.