puzzle-sh-3t15ep
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "puzzle-sh-3t15ep" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9251bf1266696d8868fbfba71c0d05f84748ae51821f967211e9625f72b6ef0c. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/puzzle-sh-3t15ep before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Skill for Puzzle, designed to help an AI Agent efficiently complete tasks related to Puzzle.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- A playbook for grid/board puzzle games — the board model, move input, rule resolution (matching, pushing, logic), scoring, undo, and level progression. This is a **compositional** skill: it models board state and rules and presents them through a tilemap/UI. It does not re-teach tilemaps; it defines the resolution loop and the correctness rules (clean state, deterministic resolution, undo) that keep a puzzle fair and bug-free.
- Audience
- Use when the game is a **discrete board** the player changes with moves, and the board **resolves by rules**: match-3/tile-matching, sokoban/block-pusher, sliding puzzle, logic grid. Use when designing match/cascade resolution, undo, level progression, or solvability. When *not* to use:** real-time grid action with permadeath → `roguelike`. Card zones/turns → `card-game`. Physics-based "puzzle platformer" → `platformer` + `physics-tuning`. For the tile rendering, use `godot-tilemap` / `unity-tilemap-2d`.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: Puzzle
slug: puzzle
version: 1.0.0
displayName: Puzzle
description: >
Puzzle专用技能,帮助AI Agent高效完成相关任务。
Puzzle专用技能,帮助AI Agent高效完成相关任务。
summary: "Puzzle专用技能,帮助AI Agent高效完成相关任务。"
license: Apache-2.0
category: 游戏开发
framework:
- Claude Code
- Codex
- Hermes Agent
- OpenClaw
- QClaw
- WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"Puzzle
A playbook for grid/board puzzle games — the board model, move input, rule resolution (matching, pushing, logic), scoring, undo, and level progression. This is a compositional skill: it models board state and rules and presents them through a tilemap/UI. It does not re-teach tilemaps; it defines the resolution loop and the correctness rules (clean state, deterministic resolution, undo) that keep a puzzle fair and bug-free.
When to use
- Use when the game is a discrete board the player changes with moves, and the board resolves by rules: match-3/tile-matching, sokoban/block-pusher, sliding puzzle, logic grid.
- Use when designing match/cascade resolution, undo, level progression, or solvability.
When not to use: real-time grid action with permadeath → roguelike. Card zones/turns →
card-game. Physics-based "puzzle platformer" → platformer + physics-tuning. For the tile
rendering, use godot-tilemap / unity-tilemap-2d.
Core loop
Read the board → plan a move → make the move → the board resolves by its rules (match, push, fall, fill, cascade) → see progress toward the objective → repeat until solved/failed. The fun is the planning; the engine's job is to resolve each move deterministically and present it clearly.
Must-have systems
- Board model — a grid of cells holding pieces; the single source of truth (logic, not visuals).
- Move input — swap, push, drag, rotate, or place; validate legality before applying.
- Rule resolution — detect and apply the genre's rule (matches, pushes, logic) until stable.
- Cascades/chains — when resolution changes the board, re-resolve until no more changes.
- Objectives + scoring — win/lose conditions (score, clear all, reach goal); move/time limits.
- Undo — revert the last move (and its resolution) exactly; essential for thinky puzzles.
- Level progression + (often) generation — hand-authored or generated solvable boards.
- Feedback ("juice") — clear, satisfying animation/sound for matches, falls, and chains.
Design knobs
| Knob | Effect | Notes |
|---|---|---|
| Grid size / shape | complexity | Square is standard; hex/irregular change feel. |
| Match/push rule | genre identity | 3-in-a-row, shapes, push-into-goal, etc. |
| Cascade scoring | reward depth | Bigger chains = exponential payoff. |
| Move / time limit | pressure | Move-limited = puzzly; time = arcade. |
| Difficulty curve | learning | Introduce one mechanic at a time. |
| Undo depth | forgiveness | Single-step vs. full history. |
| Solvability guarantee | fairness | Generated boards must be solvable. |
| Deadlock handling | no dead ends | Detect no-moves; shuffle or end (refs). |
Patterns
1. Board model + match detection (logic separate from visuals)
# Pseudocode. The board is the truth; rendering reads from it. (0,0) top-left, y grows down.
board = [[piece_or_empty for _ in range(W)] for _ in range(H)]
def find_matches(board):
matched = set()
for y in range(H): # horizontal runs of >= 3 equal pieces
run = 1
for x in range(1, W):
if board[y][x] and board[y][x] == board[y][x-1]: run += 1
else:
if run >= 3: matched |= {(y, k) for k in range(x-run, x)}
run = 1
if run >= 3: matched |= {(y, k) for k in range(W-run, W)}
# ... repeat the same scan vertically (columns) ...
return matched
2. Resolve → collapse → refill → cascade (repeat to stability)
# Pseudocode. One player move can trigger a chain; loop until the board stops changing.
def resolve(board):
chain = 0
while True:
matches = find_matches(board)
if not matches: break # stable: resolution complete
chain += 1
score += score_for(matches, chain) # later chain steps score more (see refs)
clear(board, matches) # remove matched pieces
apply_gravity(board) # pieces fall into the gaps
refill(board, rng) # spawn new pieces at the top (seeded RNG)
return chain
3. Undo via state snapshot or command
# Pseudocode. Snapshot before each move; undo restores it exactly (board + score + counters).
def make_move(move):
history.append(snapshot(board, score, moves_left)) # push BEFORE applying
apply(move); resolve(board); moves_left -= 1
def undo():
if history:
board, score, moves_left = history.pop() # exact revert, including resolution
For large boards prefer the command pattern (store the move + enough to invert it) over full snapshots to save memory; snapshots are simplest and fine for small boards.
Pitfalls / failure modes
- Mixing logic and visuals → animations desync from state and cause bugs. The board model is the single source of truth; the view only renders it.
- Resolving only once → cascades/chains are missed. Loop resolution until the board is stable (Pattern 2).
- Undo that doesn't restore everything → score/move-count/random-state drift. Snapshot all state, or make the move fully invertible.
- Unseeded refill RNG → can't reproduce a level / no deterministic undo or daily puzzle. Seed it.
- Generated boards that aren't solvable → unfair dead ends. Generate-and-verify, or generate from a known solution backward (refs).
- No deadlock detection (match-3) → board with no valid moves softlocks. Detect "no moves" and shuffle or end the level (refs).
- Difficulty spikes → too many mechanics at once. Teach one mechanic per level before combining.
- Resolution mid-animation accepts input → double-moves/corruption. Lock input until the board is stable.
Composition (build it from these skills)
- Board rendering:
godot-tilemap/unity-tilemap-2dfor the grid;godot-ui-controlfor HUD, score, and menus. - Levels:
level-designfor hand-authored puzzles and difficulty pacing;procedural-genfor solvable generated boards. - Persistence:
save-systemsfor level progress, high scores, and seeded daily puzzles. - Juice:
game-feelfor match/cascade pop, screen shake, and chain feedback; the engine animation/Tweenskill for swaps/falls/clears;audio-designfor match and chain cues. - Scripting:
godot-gdscript/unity-csharp-scriptingfor the resolution loop and rules.
References
- For match-3 detection/gravity/refill/cascade detail, deadlock detection and reshuffles,
sokoban/rule-based puzzles, undo strategies, solvable generation, and scoring, read
references/board-and-resolution.md.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 puzzle 游戏开发的核心系统设计(board model, move input, rule resolution, undo, cascades)
- 包含可复用的伪代码模式,对游戏开发者具有明确实用价值
Highlights
- 清晰的 When to use 和 When not to use 边界说明
- 覆盖多种 puzzle 类型并排除不相关场景,触发词精准
Highlights
- 结构完整,包含端到端伪代码示例
- frontmatter 完整,单文件未超限
Areas to improve
-
引用文件缺失 Reported severity: Major
skill_body 中引用了 'references/board-and-resolution.md',但该文件未在 ZIP 包中传入
Recommendation: 请补充 references/board-and-resolution.md 文件,或移除对该文件的引用以确保完整性
Highlights
- 伪代码逻辑清晰,覆盖核心异常处理(deadlock detection, solvable generation, deterministic undo)
- 工具来源明确,参数正确
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.