develop-web-game

Run Playwright tests with virtual time stepping and state capture for web games.

339|34|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/Kxiandaoyan/Memoh-v2 --skill develop-web-game-kxiandaoyan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: develop-web-game
Source: https://github.com/Kxiandaoyan/Memoh-v2/tree/main/internal/skills/defaults/develop-web-game
Command: npx skills add https://github.com/Kxiandaoyan/Memoh-v2 --skill develop-web-game-kxiandaoyan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and agents (resource) components.

What problem does it solve?

This Skill streamlines the development and testing of web games by providing a robust loop for implementing small changes, running automated tests with Playwright, and inspecting visual and textual feedback.

Core Features & Use Cases

  • Iterative Development: Implement changes in small, manageable steps.
  • Automated Testing: Utilize Playwright for deterministic testing, including input simulation and state capture.
  • Visual & Textual Feedback: Inspect screenshots and console output for immediate validation.
  • Use Case: Develop a new enemy behavior in a 2D platformer, implement the logic, run Playwright to test its movement and attack patterns, review the console logs for errors, and adjust until it functions as expected.

Quick Start

Use the develop-web-game skill to implement a new feature in the web game, then run the Playwright test script to validate the changes.

Frequently Asked Questions about develop-web-game

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate web game testing with Playwright?

Automate web game testing with Playwright by running a loop that simulates input bursts and pauses, steps virtual time, and captures game state. This validates small iterative changes using screenshots and console error inspections.

What is iterative web game development with automated state capture?

Iterative web game development with automated state capture involves implementing small changes and verifying them by rendering game state to text. This mechanism provides deterministic feedback on game logic without manual visual inspection.

Can I verify web game state textually instead of using screenshots?

You can verify web game state textually by using the render_game_to_text function. This extracts current game conditions into text format, allowing automated scripts to assert game logic and state accurately during Playwright test runs.

How do I test game enemy behavior patterns automatically?

Test game enemy behavior patterns automatically by implementing the logic in small steps, then running Playwright to simulate inputs and capture state. Review console logs and screenshots to adjust movement and attack patterns until correct.

Does Playwright testing support virtual time stepping for deterministic game tests?

Playwright testing supports virtual time stepping for deterministic game tests by integrating time controls with input simulation. This ensures consistent execution of game loops and reliable state capture for validating iterative web game changes.

What are the limitations of automated web game testing loops?

Automated web game testing loops require deterministic virtual time stepping and state capture to function reliably. Complex physics or non-deterministic timing issues may cause screenshots and render_game_to_text outputs to fluctuate, complicating validation.