Skip to content
Back to skills

Play Games

ASecurity

Use when the user wants to play a game in Claude Code such as 2048, Tetris, Snake, Sudoku, Bounce, Pong, tic-tac-toe or Tic-Tac-Go, or asks how to start one.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgoawsgit

Works with

  • claude code

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add focks/playmod --skill play-games --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Play Games?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Play Games
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/focks-play-games/badge)](https://www.skillsdirectory.com/skills/focks-play-games)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: play-games
description: Use when the user wants to play a game in Claude Code such as 2048, Tetris, Snake, Sudoku, Bounce, Pong, tic-tac-toe or Tic-Tac-Go, or asks how to start one.
---

# play

play adds small games that open in a pane beside the chat.

## Commands

| Command | Game |
| --- | --- |
| `/play 2048` or `/2048` | 2048 with square tiles; Claude can suggest the next move |
| `/play tetris` or `/tetris` | Classic Tetris with ghost piece, next preview and levels |
| `/play snake` or `/snake` | Snake with buffered turns, increasing speed and pause |
| `/play sudoku` or `/sudoku` | Unique Sudoku puzzles, pencil notes and local hints |
| `/play bounce` or `/bounce` | Brick breaker with a paddle, three lives and faster levels |
| `/play pong` or `/pong` | Pong against a beatable computer paddle, first to 7 |
| `/play tictactoe`, `/tictactoe` or `/ttt` | Tic-tac-toe against the computer, easy or unbeatable |
| `/play tictacgo`, `/tictacgo` or `/ttg` | Tic-Tac-Go, a push puzzle: line up three Os, never three Xs |
| `/play` | Lists the games |

## How to help

- The person types `/play <game>` themselves; you cannot open a pane for them. Tell them the command for their chosen game.
- Do not try to play the game for them. A hint in 2048 comes from the 💡 Hint button (`h`).

## Controls

2048:
- Arrow keys or `w` `a` `s` `d` move the tiles
- `h` asks Claude for the next best move (counts toward usage)
- `n` starts a new game

Tetris:
- `←` `→` (or `a` `d`) move, `↑` (`w`) rotates, `↓` (`s`) soft drops, space (`x`) hard drops
- `p` pauses, `n` starts a new game
- The game waits while the pane does not have focus

Snake:
- Arrow keys or `w` `a` `s` `d` steer; reverse turns are ignored
- `p` pauses, `n` starts a new game
- The game waits while the pane does not have focus

Sudoku:
- Arrow keys or `w` `a` `s` `d` select a cell
- `1` to `9` enter a digit; `0`, Backspace or Delete erases the entry or notes
- `m` toggles pencil notes; the selected cell's notes are listed below the grid
- `h` reveals a cell with a local hint (no model usage); `n` starts a new puzzle
- Given digits are bold and cannot be edited; your entries are blue; duplicates turn red

Bounce:
- `←` `→` (or `a` `d`) move the paddle; the paddle's ends send the ball sideways
- Space, `↑` or `w` launches the ball
- `p` pauses, `n` starts a new game
- The game waits while the pane does not have focus

Pong:
- `↑` `↓` (or `w` `s`) move your paddle; where the ball meets a paddle sets its angle
- Space or `e` serves when you are the server; the computer serves for itself
- `p` pauses, `n` starts a new game; first to 7 wins
- The game waits while the pane does not have focus

Tic-tac-toe:
- Arrow keys or `w` `a` `s` `d` choose a cell; Enter, Space or `e` places your mark
- `1` to `9` place directly, in keypad order (1 is the top left)
- `l` switches between Easy and Hard; `x` swaps sides (the computer then opens as X); `n` starts a new game

Tic-Tac-Go:
- Arrow keys or `w` `a` `s` `d` move you; walking into an X or O tile pushes it one cell if the cell behind is empty
- Three Os in a line (you count as one) solve the level; three Xs in a line lose
- `u` or Backspace undoes a move, `r` resets the level, `[` and `]` change level

Best scores for 2048, Tetris, Snake and Bounce, the games won in Pong, the wins, losses and draws in Tic-tac-toe, and the solved levels and fewest moves in Tic-Tac-Go are kept across sessions.

## If a command is missing

Mods load at session start. If `/play` is not available right after installing, the person needs to start a new Claude Code session. play needs Claude Code 2.1.333 or newer (`claude --version`; update with `claude update`). Install commands:

- `npx skills add focks/playmod -g -a claude-code` (all projects)
- `npx skills add focks/playmod -a claude-code` (current project)
- `/plugin install play --marketplace focks/playmod`

Files in this skill

  • .claude-plugin/icon.svg707 B
  • .claude-plugin/plugin.json613 B
  • SKILL.md3.8 KB
  • hooks/bounce/game.ts5.5 KB
  • hooks/bounce/pane.tsx5.7 KB
  • hooks/g2048/game.ts5 KB
  • hooks/g2048/hint.ts3.8 KB
  • hooks/g2048/pane.tsx8.1 KB
  • hooks/g2048/tile.ts4.6 KB
  • hooks/hooks.json34 B
  • hooks/keys.ts5.7 KB
  • hooks/layout.ts371 B
  • hooks/pong/game.ts6.1 KB
  • hooks/pong/pane.tsx6.1 KB
  • hooks/register.tsx3.6 KB
  • hooks/shared/random.ts260 B
  • hooks/snake/game.ts3.8 KB
  • hooks/snake/pane.tsx5.5 KB
  • hooks/sudoku/game.ts6.4 KB
  • hooks/sudoku/look.ts3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.