develop-web-game

Installation
Summary

Iterative web game development with Playwright-based testing, screenshot validation, and deterministic time-stepping.

  • Provides a structured workflow: implement small changes, run automated Playwright tests with controlled input bursts and frame pauses, capture screenshots and text state, then inspect and adjust
  • Requires window.render_game_to_text() to expose game state as JSON and window.advanceTime(ms) for deterministic frame stepping during automated tests
  • Includes a Playwright client script that executes action payloads (keyboard, mouse, frame counts) and buffers console errors for debugging
  • Enforces a test checklist covering movement, interactions, win/lose transitions, collisions, menus, and any request-specific features; screenshots are the source of truth for visual verification
SKILL.md

Develop Web Game

Build games in small steps and validate every change. Treat each iteration as: implement → act → pause → observe → adjust.

Skill paths (set once)

export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export WEB_GAME_CLIENT="$CODEX_HOME/skills/develop-web-game/scripts/web_game_playwright_client.js"
export WEB_GAME_ACTIONS="$CODEX_HOME/skills/develop-web-game/references/action_payloads.json"

User-scoped skills install under $CODEX_HOME/skills (default: ~/.codex/skills).

Workflow

  1. Pick a goal. Define a single feature or behavior to implement.
  2. Implement small. Make the smallest change that moves the game forward.
Related skills

More from openai/skills

Installs
1.1K
Repository
openai/skills
GitHub Stars
18.9K
First Seen
Feb 1, 2026