Toolverse
All skills

develop-web-game

by openai

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
openai
Category
Testing
Views
31

About this skill

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with render_game_to_text.

How to use

  1. Skonfiguruj zmienne środowiskowe, ustawiając CODEX_HOME (domyślnie ~/.codex), WEB_GAME_CLIENT na ścieżkę skryptu Playwrighta oraz WEB_GAME_ACTIONS na plik referencyjny action_payloads.json. Umiejętność instaluje się automatycznie w katalogu $CODEX_HOME/skills.

  2. Zdefiniuj pojedynczą funkcję lub zachowanie do implementacji. Każda iteracja powinna skupiać się na jednym celu, aby ułatwić testowanie i debugowanie.

  3. Implementuj najmniejsze możliwe zmiany w kodzie gry (HTML/JavaScript). Upewnij się, że gra ma pojedynczy canvas oraz funkcję window.render_game_to_text() zwracającą tekstową reprezentację stanu gry, którą skrypt testowy może odczytać.

  4. Dodaj hook window.advanceTime(ms) do gry, aby Playwright mógł deterministycznie sterować przebiegiem klatek. Bez tego testy mogą być niestabilne. Jeśli plik progress.md istnieje, przeczytaj go i potwierdź oryginalny prompt użytkownika na początku (prefiks: "Original prompt:"), a także zanotuj pozostałe TODO i sugestie. Jeśli plik nie istnieje, utwórz go z oryginalnym promptem na górze.

  5. Sprawdź dostępność Playwrighta — uruchom npx playwright --version lub zainstaluj go jako lokalną zależność. Następnie uruchom skrypt testowy z $WEB_GAME_CLIENT po każdej znaczącej zmianie kodu, aby zweryfikować działanie gry.

  6. Przeanalizuj wyniki testów: zrzuty ekranu, tekstową reprezentację stanu gry oraz błędy z konsoli. Dostosuj kod na podstawie obserwacji i powtórz cykl aż do osiągnięcia celu iteracji.

Related skills

playwright-browser-automation

by lackeyjb

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test

Testing
13130

code-reviewer

by google-gemini

Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.

Testing
1248

pair-trade-screener

by tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair

Testing
994

dependency-upgrade

by wshobson

Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.

Testing
17138

differential-review

by trailofbits

Performs security-focused differential review of code changes (PRs, commits, diffs). Adapts analysis depth to codebase size, uses git history for context, calculates blast radius, checks test coverage, and generates comprehensive markdown reports. Automatically detects and

Testing
2510

test-cases

by cexll

This skill should be used when generating comprehensive test cases from PRD documents or user requirements. Triggers when users request test case generation, QA planning, test scenario creation, or need structured test documentation. Produces detailed test cases covering

Testing
2862