itch-html5-package
Skill1 starsChanged 6 days agoMITView on GitHub
Check an HTML5/web game build against itch.io's rules and package it as a correct upload zip. Catches file-name case mismatches that work on Windows/macOS but 403 on itch, absolute "/" paths, http:// requests, index.html in the wrong folder, the 1,000-file / 500 MB / 200 MB / 240-char limits, shipped source files and a missing viewport tag. Use when publishing or updating a web game (three.js, Phaser, PixiJS, Godot/Unity/GameMaker web exports, plain canvas) on itch.io, or when an itch HTML5 game shows a black screen or 403 errors.
In this repository25 other files it gives its agents.
- bash-checkpointSkill
- brave-cdpSkill
- cf-backupSkill
- cf-pages-deploySkill
- claude-md-doctorSkill
- claude-safety-auditSkill
- claude-sandboxSkill
- claude-token-auditSkill
- cws-extension-checkSkill
- env-doctorSkill
- event-recap-videoSkill
- freelance-proposalSkill
- gif-makerSkill
- link-preview-checkSkill
- mcp-auditSkill
- package-guardSkill
- pwa-checkSkill
- read-guardSkill
- readme-upgradeSkill
- release-notesSkill
- secret-commit-guardSkill
- session-handoffSkill
- site-qaSkill
- thumbnail-makerSkill
- visual-diffSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Case-sensitive names: Every path referenced in HTML, CSS, JS and JSON is resolved, and a reference that only matches with different …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
itch-html5-package
scripts/itch-package.mjs is zero-dependency Node 22+.
node itch-package.mjs ./build # check, then write ./build-itch.zip
node itch-package.mjs ./build --out game.zip
node itch-package.mjs ./build --check # report onlyIt exits 1 and writes no zip if anything would break on itch. Fix the ✘ items and run again. Warnings (!) are worth reading but don't block.
What it checks (itch.io's documented rules)
index.htmlexists, named exactly that. If it's one folder down (you zipped the parent folder), that folder becomes the root.- ≤ 1,000 files, ≤ 500 MB extracted, ≤ 200 MB per file, paths ≤ 240 characters.
- Case-sensitive names. Every path referenced in HTML, CSS, JS and JSON is resolved, and a reference that only matches with different capitalization is an error. Windows and macOS hide this; itch's servers return 403.
- Relative paths only.
/assets/x.pngfails because itch serves the game from a subfolder. - External requests must be https.
- Shipped source files (.psd, .blend, .aseprite …), no viewport meta, and the YouTube Playables SDK, which hangs inside itch's iframe.
It can't see paths built at runtime ('level' + n + '.json'). Spot-check those by hand after upload.
Uploading
On the itch.io project page: Kind of project → HTML, upload the zip, tick "This file will be played in the browser", and set the viewport size (or enable "Mobile friendly" and fullscreen for phone games). HTML5 games only take payments as donations; selling needs a downloadable build.
Engine notes
- Godot 4 web exports need SharedArrayBuffer unless exported with thread support off. On itch, enable "SharedArrayBuffer support" in the embed options, or export single-threaded.
- Unity builds with Brotli (
.br) are served correctly by itch. Gzip works too. - A single self-contained
.htmlfile can be uploaded directly, with no zip.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

