play-game

Automate browser-based HTML/JS games using the agent-browser CLI.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/tegnike/ai-agent-game-streamer --skill play-game
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: play-game
Source: https://github.com/tegnike/ai-agent-game-streamer/tree/main/.agents/skills/play-game
Command: npx skills add https://github.com/tegnike/ai-agent-game-streamer --skill play-game

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates browser-based game playing using agent-browser. It enables automated demos and streaming of accessible HTML/JS games via a reproducible, scriptable workflow.

Core Features & Use Cases

  • Scripted play: Drive local or online HTML/JS games (e.g., Sokoban, Othello, Gomoku) using the agent-browser CLI.
  • Local server & browser automation: Spin up a simple HTTP server and render the game in a headed browser for audience visibility.
  • Demonstrations & tutorials: Create repeatable game play sequences for tutorials, tests, or live streams.

Quick Start

Install agent-browser globally, enable execute permissions, run a local HTTP server in your game directory, and open the game with agent-browser --headed open http://127.0.0.1:8888/index.html. Then use agent-browser eval "game.move('right')" or "game.handleCellClick(row, col)" to drive the game with a measured pace.

Frequently Asked Questions about play-game

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

FAQPage Schema
How do I automate browser-based game playing with an agent?

To automate browser-based game playing, you can use the agent-browser CLI to open local HTML/JS games via a local HTTP server and drive moves using eval commands like game.move('right'). This enables scripted, deterministic playthroughs.

Can I run scripted play sequences for HTML games like Sokoban or Othello?

Yes, you can run scripted play sequences for HTML games like Sokoban or Othello. The skill uses the agent-browser API to initialize and render these games, driving moves in a measured, deterministic sequence for demonstrations or tests.

What is the best way to set up a local environment for browser game automation?

The best way to set up browser game automation is installing agent-browser globally, enabling execute permissions, and running a local HTTP server in your game directory. You then open the game URL with agent-browser --headed.

Does agent-browser support driving moves in online HTML games?

Yes, agent-browser supports driving moves in online HTML games. It can target both local and online HTML/JS games by executing JavaScript commands such as game.handleCellClick(row, col) directly within the browser context.

Why do I need a local HTTP server to automate HTML game demonstrations?

You need a local HTTP server to automate HTML game demonstrations because it serves the game files to the agent-browser. This allows the headed browser to render the game for audience visibility while the CLI drives the automated moves.