Check and fix a browser game before it's uploaded anywhere (itch.io, GitHub Pages, Newgrounds, Game Jolt, CrazyGames) and make it play better in the browser. Finds broken paths, case-sensitive file names, size and file-count limits, junk files, blocked popups, missing touch controls, page scrolling from arrow keys, sound that never starts, unsafe saves, frame-rate-dependent loops and missing sc...
Download skill (.zip) Files on GitHubWeb game checkup
Run the checker, explain the results in plain words, fix what’s safe to fix, and run it again.
1. Run it
python3 <skill>/scripts/check-web-game.py <game-folder> # all platforms
python3 <skill>/scripts/check-web-game.py <game-folder> --platform itch # itch | crazygames | newgrounds | gamejolt
python3 <skill>/scripts/check-web-game.py <game-folder> --json # machine-readable
<game-folder> is the folder that gets uploaded: the one with index.html at the top
(for example www/ or dist/). Build the game first if it has a build step.
Exit code 1 means at least one error.
| Level | Meaning | What to do |
|---|---|---|
ERROR |
Will break on a host (blank page, missing files, rejected upload) | Fix before uploading |
WARN |
Plays worse in the browser or on phones | Fix unless the user says no |
TIP |
Nice to have | Mention briefly, fix if asked |
2. Fix
Use the snippets in references/fixes.md. Each finding’s message links to its section.
Rules:
- Fix in the game’s source, then rebuild, not only in the exported copy.
- Keep the game’s feel. Don’t change speed, controls, or art style while fixing. After switching to
time-based movement, convert speeds (
px per frame × 60 = px per second) so it plays the same. - Use the engine’s way first. Phaser:
scale: { mode: Phaser.Scale.FIT }and built-in audio unlock. PixiJS:resizeToandresolution: Math.min(devicePixelRatio, 2). three.js:renderer.setPixelRatio(Math.min(devicePixelRatio, 2)). missing-filecan be a false alarm when paths are built in code. Check before “fixing”.- Large images and raw audio: use the bash-web-asset-shrinker skill if it’s installed.
Common fixes in order of impact:
- Relative paths (
./game.js) and exact file-name case → fixes most “blank on itch.io” reports index.htmlat the top of the folder, junk removed (.map,.DS_Store,node_modules)- No
alert/confirm/prompt→ in-game panel - Fit the screen + touch controls +
touch-action: none - Audio unlock on first tap, mute button
- Arrow/space
preventDefault, click-to-play focus screen requestAnimationFrame+dt, pause when hidden- Safe saves with try/catch and a game-specific key prefix
3. Check again and test
- Run the checker again until there are 0 errors.
- Test in the viewer’s preview (look_at_preview / control_preview), and on a phone-sized viewport (set_preview_viewport phone) if the game should work on phones.
- Tell the user in one or two sentences what was fixed and anything left. Example: “Fixed 3 things that would have made it blank on itch.io and added touch controls. The music file is still 9 MB. Want me to shrink it?”
Platform notes
| Platform | Limits and rules |
|---|---|
| itch.io | 1,000 files, 500 MB extracted, case-sensitive names, index.html at the top of the ZIP |
| CrazyGames | 50 MB initial / 250 MB total / 1,500 files, no outside ads/links, remove the Bash badge |
| Newgrounds / Game Jolt | ZIP with index.html at the top; set the embed size to the game size |
| GitHub Pages | Served from /<repo>/, so relative paths are required |
| Bash preview | No alert, no SharedArrayBuffer / threads |