Skip to content
Back to skills

Serve Game

ASecurity

Launch the local dev server for Pixel Princess Platformer (the Kaplay browser platformer in this repo) so it can be played in a browser or driven with Playwright. Use when asked to run, start, serve, or open the game, or before browser-testing it.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
developmentjavascriptpythonjavabashtesting

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add VTvito/pixel-princess-platformer --skill serve-game --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Serve Game?

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

Security grade badge for Serve Game
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vtvito-serve-game/badge)](https://www.skillsdirectory.com/skills/vtvito-serve-game)

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: serve-game
description: Launch the local dev server for Pixel Princess Platformer (the Kaplay browser platformer in this repo) so it can be played in a browser or driven with Playwright. Use when asked to run, start, serve, or open the game, or before browser-testing it.
---

# Serve Pixel Princess Platformer locally

This is a **no-build** browser game (Kaplay loaded from a CDN). Running it needs only a static
file server that sends correct ES-module MIME types — there is nothing to install or compile.

## Start the server
- Canonical command: `python tools/serve.py 8137`  (equivalently `npm run serve`).
- Launch it in the **background** (Bash `run_in_background: true`) so it persists across turns.
- **Port 8137** is what the test harness and project notes use. `tools/serve.py` defaults to 8080
  if you pass no port, so always pass `8137` for consistency.
- **Never** use `python -m http.server`: on Windows it serves `.js` as `text/plain` and the
  browser refuses to run the ES modules (the game loads to a blank screen). `tools/serve.py`
  forces `text/javascript` etc. — that is the entire reason it exists.
- Don't start a second server if one is already on the port; check `http://localhost:8137/` first.

## Play / drive it
- URL: **http://localhost:8137** — open in a browser to play by hand.
- To drive or screenshot it programmatically, use the standalone `playwright-core` scripts in
  `tools/test/` (they launch installed Microsoft Edge, not a downloaded Chromium).

## Verify / stop
- Up: a request to `http://localhost:8137` returns `index.html`.
- Stop: end the background task, or stop the python process bound to port 8137.

## Related checks
- Test harnesses: `npm test` (smoke + features + levels), or individually `npm run test:smoke`,
  `test:features`, `test:levels`, `test:mobile`.

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.

Comments

Loading comments…