77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
feat(workflows): add game-jam, prototype-fast, steam-publish, itch-publish skills
AbhishekBarali1cc7ca2d39329
diff --git a/docs/progress/SESSION-11-workflows.md b/docs/progress/SESSION-11-workflows.mdnew file mode 100644index 0000000..939fcc7--- /dev/null+++ b/docs/progress/SESSION-11-workflows.md@@ -0,0 +1,77 @@+# Session 11 — Author: Workflows++> Public build-log entry. Value-focused only. No growth/marketing/strategy language.++- **Session:** S11+- **Wave:** 3+- **Date (UTC):** 2026-06-24+- **Depends on:** S05 (standards + catalog + golden skill)+- **Status:** complete+- **Branch / commits:** `session/S11-workflows`++## Objective+Author the four workflow (process) skills from the frozen catalog — how to ship a game+under real constraints — as decision-first, checklist-driven playbooks, with the two+publishing skills verified command-by-command against official tooling docs.++## What was produced+- `skills/workflows/game-jam/SKILL.md` — scope-to-the-clock planning for timed jams:+ rules-first prep, one-sentence concept, a length-based scope budget, a 48-hour timeline,+ feature triage, and a pre-submission build check.+- `skills/workflows/prototype-fast/SKILL.md` — hour-scale mechanic validation: one question,+ throwaway-vs-keep decided up front, hard timebox, greybox everything else, observable+ keep/kill criteria, and spike containment.+- `skills/workflows/steam-publish/SKILL.md` (+ `references/steampipe-build-scripts.md`) —+ Steamworks + SteamPipe: prerequisites and least-privilege build account, app/depot/package+ config, a minimal `app_build.vdf`, the `steamcmd` upload command, setting a build live per+ branch, and the two-track release checklists. Reference holds multi-depot scripts,+ `FileExclusion`/`FileProperties`, branch setup, the CI/CD login-token workflow, patch-size+ hygiene, and a troubleshooting table.+- `skills/workflows/itch-publish/SKILL.md` (+ `references/butler-ci.md`) — itch.io + butler:+ project-page setup, install/login, portable-build prep, `butler push <dir> user/game:channel`,+ channel-name → platform-tag rules, versioning, and update-via-re-push. Reference holds the+ `BUTLER_API_KEY` CI flow, `broth` install, a GitHub Actions example, the full flag/command+ table, and the update-check API.++## Key decisions+- **Authored directly rather than fanning out to subagents.** All source material was+ gathered and verified first-hand via Firecrawl in this session; direct authoring kept the+ operational commands accurate and the prose original, and every file was reviewed against+ the `docs/SKILL-FORMAT.md` rubric before commit.+- **Publishing skills are operational checklists, not tutorials.** Exact commands, file+ formats (VDF KeyValues), channel rules, and the gotchas that block a release (default+ branch can't be auto-set-live; store page reviewed before build; portable folder not+ installer) are foregrounded; deep/rarely-needed detail pushed to `references/`.+- **All four are engine-agnostic** (`metadata.engine: none`), since they are process skills.+- **No secrets.** Both publishing skills explicitly keep credentials/tokens out of the repo+ and show the supported secret-based CI auth (`BUTLER_API_KEY`, preserved `config.vdf`).++## Verification+- `python scripts/validate-skills.py` — all `skills/workflows/**` files pass (name=folder,+ description ≤1024, <500 lines, resolved `references/` links). The only validator failures+ observed during the session were in `skills/unity/**` (a different parallel session's+ in-progress files); no workflow file was ever flagged.+- Sizes: SKILL.md files 125–184 lines; references 117 and 155 lines — all well under 500.+- Descriptions 248–292 chars (lead with the primary use case so they trigger even if a+ surface truncates the tail).+- Publishing commands/steps verified against the official Steamworks and itch.io/butler docs+ (see sources). Steam Direct fee noted as "at time of writing" since pricing can change.++## Sources consulted (primary docs)+- itch.io butler manual — `https://itch.io/docs/butler` (installing, login, pushing,+ single-files): `butler push`/`push-preview`/`status`, channel naming, flags,+ `BUTLER_API_KEY`, broth install, 30 GB limit, update API.+- Steamworks — `https://partner.steamgames.com/doc/sdk/uploading` (SteamPipe, ContentBuilder,+ `app_build.vdf`/`depot_build.vdf`, steamcmd, CI/CD), `/doc/store/releasing` (release+ checklists + manual release), `/doc/store/application/branches` (default vs beta branches).++## Handoff to next sessions+- S12 (router) can route to `game-jam`, `prototype-fast`, `steam-publish`, `itch-publish`+ using the catalog's `says:`/`files:` signals; the skills cross-link to each other and to+ engine/genre skills via "Related skills".+- S13 (QA/originality) can run the rubric/originality pass; all prose and example+ config/commands were written from scratch from the cited primary docs.++## If partial — remaining work+- None. Optional `asset-pipeline` skill was not in scope for v1 (not in the frozen catalog's+ workflows table) and was intentionally skipped.diff --git a/skills/workflows/game-jam/SKILL.md b/skills/workflows/game-jam/SKILL.mdnew file mode 100644index 0000000..a0c497c--- /dev/null+++ b/skills/workflows/game-jam/SKILL.md@@ -0,0 +1,130 @@+---+name: game-jam+description: >+ Plan and ship a game under a jam deadline: lock scope to the clock, schedule the hours,+ cut features, and submit on time. Use for a game jam (Ludum Dare, GMTK Jam, Global Game+ Jam), a 48-hour or weekend build, or scoping and submitting a jam entry.+license: Apache-2.0+compatibility: Engine-agnostic process skill; submission steps assume itch.io-hosted jams.+metadata:+ engine: none+ category: workflows+ difficulty: beginner+---++# Game Jam++Turn a theme and a fixed deadline into a finished, submitted game. This is a planning and+scope-control playbook, not engine code: the win condition is *something submitted and+playable*, not *the game you imagined*.++## When to use++- Use when entering a timed jam (Ludum Dare, GMTK Jam, Global Game Jam, a weekend jam),+ scoping a 48-hour build, or deciding what to cut to hit a deadline.+- Use when the user asks "what can I actually build in a weekend" or "how do I submit to+ this jam".++**When *not* to use:** building the *core loop* in engine code (use the engine skill —+`godot-2d-movement`, `phaser-core`, etc. — or a genre skill like `platformer`); throwaway+experiments with no deadline (use `prototype-fast`); shipping a commercial release (use+`steam-publish` / `itch-publish`).++## Core workflow++1. **Read the rules before the theme drops.** Confirm the jam's *length*, *theme reveal+ time*, *submission deadline (with timezone)*, whether teams/pre-made assets/engines are+ allowed, and whether ratings require you to rate other entries. Missing one of these+ disqualifies an otherwise-finished game.+2. **Prep the boring parts in advance** (allowed by most jams): empty project that builds+ and exports, input + a title/end screen stub, an export pipeline you've run once, and a+ font/SFX source you're licensed to use. Day-one time is too precious to spend here.+3. **Theme → one sentence.** Brainstorm 10 ideas in 15 minutes, then commit to **one**+ expressible as: *"You [verb] to [goal] while [constraint]."* If you can't say it in one+ sentence, it's too big.+4. **Scope to the clock, not the idea.** Use the budget table below. Pick **one** core+ mechanic and **one** "hook". Everything else is a stretch goal.+5. **Build the vertical slice first.** Get a 30-second playable loop (start → play → lose/win+ → restart) running early. A complete tiny loop beats a half-built big one.+6. **Reserve the last ~20% of the clock for shipping**, not features. Export, test the build+ on a clean path, capture screenshots, write the page. Builds always break at hour 47.+7. **Submit early, update if time remains.** Upload a working build *well before* the+ deadline; most jam pages let you swap the file until it closes. A submitted mediocre game+ scores; an unsubmitted great one does not.++## Patterns++### 1. Scope budget by jam length (plan backwards from the deadline)++```text+ | 48-hour jam | 72-hour jam | 1-week jam+--------------|------------------------|-----------------------|------------------------+Core mechanic | 1, proven by hour 6 | 1-2 | 2-3 interacting+Levels/content| 1 hand-made or gen'd | 3-5 | 8-12 + progression+Art | placeholder/1 palette | cohesive 1-artist set | themed set + UI+Audio | 3-5 SFX + 1 loop | SFX + 1-2 tracks | adaptive music+SHIP BUFFER | last 8-10 h | last 12-16 h | last full day+```++### 2. The 48-hour timeline (concrete blocks)++```text+H0-2 Ideate -> lock ONE-sentence concept -> name the core mechanic + win/lose.+H2-8 Core loop in code with primitives (boxes/circles). Make it playable, no art.+H8-12 Sleep. (Tired code is tomorrow's bug list.)+H12-24 Content: 1 level/encounter, tune difficulty, add the "hook" feature.+H24-30 Sleep + playtest with one other person; cut anything not landing.+H30-38 Art + audio pass. Juice: screenshake, hit-stop, tween, particles, SFX.+H38-44 Bug-fix freeze: no new features. Fix only crashes + soft-locks.+H44-48 EXPORT, test the build clean, screenshots, write page, SUBMIT (by ~H46).+```++### 3. Feature triage — decide fast, decide out loud++```text+For every feature ask, in order:+ 1. Does the core loop work WITHOUT it? -> if yes, it's a stretch goal, not MVP.+ 2. Can a player tell it's missing? -> if no, cut it.+ 3. Is it < 30 min of work? -> if no, defer past the ship buffer.+Default answer under deadline pressure is CUT. You can always add in a post-jam version.+```++### 4. Pre-submission build check (run on a clean copy, not your dev folder)++```text+[ ] Build runs from an extracted zip on a path with NO engine/IDE installed.+[ ] Controls are shown on-screen or on the page (jurors won't read your mind).+[ ] No dev console errors; no soft-lock; restart works.+[ ] Web build (if any) is set to the platform's playable-in-browser mode.+[ ] Page has: 1-line pitch, controls, screenshots, credits + asset licenses.+[ ] File uploaded and the submission is actually attached to the JAM, not just the page.+```++## Pitfalls++- **Scope creep is the #1 jam killer.** If the core loop isn't playable by the first third+ of the clock, cut features now, not later.+- **No ship buffer.** Exporting, zipping, and writing the page reliably takes 1-3 hours and+ always surfaces a build bug. Treat the deadline as ~2 hours earlier than it is.+- **Submitting to the page but not the jam.** On itch.io a jam entry is a separate+ *submission* linked from the jam page — uploading the game alone does not enter it.+- **Untested export.** "Works in the editor" is not "works in the build." Test the exported+ artifact on a clean path; missing assets and wrong working directories are classic.+- **Unlicensed assets.** Music/fonts/sprites pulled from the web can violate jam rules and+ break later distribution. Use assets you're licensed for and list them in the credits.+- **Polishing before the loop is fun.** Juice multiplies fun; it can't create it. Get the+ loop right with placeholders first.++## References++- For the throwaway-vs-keep prototyping mindset and greyboxing technique, read the+ `prototype-fast` skill.+- For the actual upload mechanics (project page, channels, `butler push`), read+ `itch-publish`.++## Related skills++- `prototype-fast` — validate a mechanic quickly before committing jam hours to it.+- `itch-publish` — create the page and upload the build (most jams are hosted on itch.io).+- Engine cores (`phaser-core`, `love2d-core`, `godot-gdscript`, …) and genre skills+ (`platformer`, `roguelike`, …) — build the actual loop the jam scopes around.diff --git a/skills/workflows/itch-publish/SKILL.md b/skills/workflows/itch-publish/SKILL.mdnew file mode 100644index 0000000..2beae27--- /dev/null+++ b/skills/workflows/itch-publish/SKILL.md@@ -0,0 +1,142 @@+---+name: itch-publish+description: >+ Publish and update a game on itch.io: create the project page and upload builds with the+ butler CLI (butler push) to named channels. Use for itch.io publishing, butler push,+ channel naming for Windows/macOS/Linux/HTML5, versioning uploads, or shipping a jam or+ release build to itch.io.+license: Apache-2.0+compatibility: itch.io + butler CLI (v15.x). butler is MIT-licensed; commands verified against the official manual.+metadata:+ engine: none+ category: workflows+ difficulty: beginner+---++# itch.io Publish (butler)++Get a build onto an itch.io page and keep it updated. The page is created in the browser; all+uploads go through **butler**, itch.io's command-line tool, with one command you'll use+forever: `butler push`. butler diffs against the previous build and uploads only what+changed. Deep CI/CD and flag detail lives in `references/butler-ci.md`.++## When to use++- Use when creating/updating an itch.io project page, installing or logging in to butler,+ uploading a build with `butler push`, choosing channel names, versioning uploads, or+ shipping a jam/demo/release build to itch.io.+- Triggers: `butler push`, `butler login`, channels, `.itch.toml`, "publish on itch",+ "upload to itch".++**When *not* to use:** publishing on Steam (use `steam-publish`); jam *scope/planning* (use+`game-jam` — this skill is only the upload mechanics); building the game itself (engine+skills).++## Core workflow++1. **Create the project page** at `itch.io/game/new`. Set the **Kind of project**: keep+ *Downloadable* for native builds, or choose **HTML** for a browser-playable game (this is+ required for web builds — see Pitfalls). Set pricing/visibility (Draft until ready).+2. **Install butler and log in.** Download from `itchio.itch.io/butler`, add it to `PATH`,+ then `butler login` (opens a browser to authorize). Verify with `butler version`. For+ CI, use `BUTLER_API_KEY` instead — see the reference.+3. **Prepare a portable build folder** — the exact files a player runs, nothing extra. Push a+ **folder** (or a single `.zip` *of* that folder), **not an installer** and **not a+ pre-compressed archive of archives** (hurts patching; see Pitfalls).+4. **Push to a channel:** `butler push <dir> <user>/<game>:<channel>`. The channel name+ determines the platform tag (see Patterns). The first push uploads everything; later+ pushes to the same channel upload only the diff.+5. **Set platform/HTML tags** on the *Edit game* page if a channel wasn't auto-tagged+ correctly, then **Save**. For browser games also flip the page to **HTML** and tag the+ channel *playable in browser*.+6. **Version your builds** (optional but recommended): `--userversion 1.2.0` or+ `--userversion-file build.txt` so you control the version string players and the update+ API see.+7. **Update later** by pushing to the *same* channel again. Use `butler status <user>/<game>`+ to see channels/builds and `butler push-preview` to see what a push would change before+ sending it.++## Patterns++### 1. The one command you need — `butler push`++```bash+# butler push <directory-or-zip> <user>/<game>:<channel>+butler push ./build/windows leafy/my-game:windows+butler push ./build/mac leafy/my-game:osx+butler push ./build/linux leafy/my-game:linux+butler push ./web leafy/my-game:html # browser build (also set page Kind = HTML)+```++### 2. Channel naming controls the platform tag (kebab-case, lowercase)++```text+Substring in channel name -> auto-applied tag:+ win / windows -> Windows linux -> Linux+ mac / osx -> macOS android -> Android+Multiple platforms in one channel are allowed: e.g. a Java jar:+ butler push ./jar leafy/my-game:win-linux-mac+Convention: lowercase words separated by dashes (windows-beta, osx-demo, soundtrack).+Tags are only the INITIAL guess — fix them anytime on the Edit game page (then Save).+```++### 3. Version, verify, and preview++```bash+butler version # print version; confirms install + PATH+butler login # authorize this machine (opens browser)++# Set an explicit version string instead of itch's auto-incrementing integer:+butler push ./build leafy/my-game:windows --userversion 1.2.0+butler push ./build leafy/my-game:windows --userversion-file build_number.txt++butler status leafy/my-game # list channels + latest builds/versions+butler push-preview ./build leafy/my-game:windows # NEW/MODIFIED/DELETED/SAME, uploads nothing+```++### 4. First-time, hidden, and filtered pushes++```bash+# Hide a brand-new channel from the page until you're ready (NEW channels only):+butler push ./build leafy/my-game:windows-beta --hidden++# Exclude files from the upload without copying the folder (--ignore is repeatable):+butler push ./build leafy/my-game:windows --ignore '*.pdb' --ignore '*.dSYM'++# Preview exactly what would be sent, without sending it:+butler push ./build leafy/my-game:windows --dry-run+```++## Pitfalls++- **Pushing an installer.** itch.io patches *portable* builds; an installer (`.exe`/`.msi`)+ defeats patching and the itch app's auto-update, and may need admin rights players don't+ have. Push the extracted, runnable folder instead.+- **Pre-compressed builds.** Pushing a heavily compressed archive (or an archive of archives)+ makes patches huge — a tiny change rewrites the whole compressed blob. Push uncompressed+ files; itch.io compresses on its side.+- **A folder containing only one `.zip`.** butler auto-unzips it and pushes the contents+ (to avoid a "zip in a zip"). Pass `--no-auto-unzip` only if you truly want the zip uploaded+ as one opaque file.+- **HTML5 game shows as a download.** Two switches are required: set the page **Kind** to+ *HTML* and tag the channel *playable in browser* on the *Edit game* page after the first+ push — neither happens automatically from the channel name.+- **`--hidden` on an existing channel errors.** It only applies when the push *creates* a new+ channel. Unhide later from *Edit game*.+- **Channel typos make duplicate slots.** `windows` and `win-final` are different channels and+ create separate downloads. Decide your channel names up front and reuse them.+- **30 GB cap.** itch.io rejects builds whose total *uncompressed* size exceeds 30 GB.+- **Secrets in CI logs.** A `BUTLER_API_KEY` printed in a public log is compromised — revoke+ it immediately on the API keys page. See the reference for safe CI usage.++## References++- For CI/CD (GitHub Actions/GitLab) with `BUTLER_API_KEY`, automated install via `broth`, the+ full flag list, and the update-check API, read `references/butler-ci.md`.+- Primary docs: the butler manual — `itch.io/docs/butler` (installing, login, pushing).++## Related skills++- `steam-publish` — the same game on Steam via SteamPipe (often shipped alongside itch.io).+- `game-jam` — most jams are hosted on itch.io; this skill handles the upload step.+- `prototype-fast` — share an early prototype on a Draft/restricted itch page for playtesting.diff --git a/skills/workflows/itch-publish/references/butler-ci.md b/skills/workflows/itch-publish/references/butler-ci.mdnew file mode 100644index 0000000..00376d7--- /dev/null+++ b/skills/workflows/itch-publish/references/butler-ci.md@@ -0,0 +1,117 @@+# butler: CI/CD, full flag reference, and the update-check API++Depth for `itch-publish`. Read this for automated uploads, the complete `butler push` flag+set, and notifying players of updates. Verify against the primary docs:+[the butler manual](https://itch.io/docs/butler) (installing, login, pushing).++## 1. Authentication for CI (`BUTLER_API_KEY`)++Interactive `butler login` opens a browser — useless in CI. Instead, set the+**`BUTLER_API_KEY`** environment variable and butler uses it automatically.++Where to get the key:+- Run `butler login` once locally, then read it from the creds file:+ - Linux: `~/.config/itch/butler_creds`+ - macOS: `~/Library/Application Support/itch/butler_creds`+ - Windows: `%USERPROFILE%\.config\itch\butler_creds`+- Or generate one on your itch.io **API keys** page (`itch.io/user/settings/api-keys`) — the+ relevant key has its source set to `wharf`.++Store it as a CI secret. **Never** print it; a key leaked into a public build log is+compromised — revoke it immediately on the API keys page.++## 2. Installing butler in CI (use `broth`, not the page link)++The `itchio.itch.io/butler` download links **expire**, so they can't be hard-coded. Use the+permanent **broth** URLs, which always serve the latest stable build of a channel:++```bash+# Example: latest stable Linux amd64 butler. Substitute the channel for your runner OS.+curl -L -o butler.zip "https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default"+unzip butler.zip+chmod +x butler+./butler -V # prints version; confirms it runs+```++Common broth channels: `linux-amd64`, `windows-amd64`, `darwin-amd64`. The `-head` channels+are bleeding-edge; the others are stable. The zip also contains two 7-zip helper libraries —+harmless, and not required for `butler push`.++## 3. GitHub Actions example++```yaml+name: Publish to itch.io+on:+ push:+ tags: ["v*"] # publish when you tag a release+jobs:+ butler:+ runs-on: ubuntu-latest+ env:+ BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }} # set in repo secrets; never echoed+ steps:+ - uses: actions/checkout@v4+ # ... your build steps produce ./build/windows, ./build/linux, etc. ...+ - name: Install butler+ run: |+ curl -L -o butler.zip "https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default"+ unzip butler.zip && chmod +x butler+ - name: Push builds+ run: |+ VERSION="${GITHUB_REF_NAME#v}" # tag v1.2.0 -> 1.2.0+ ./butler push ./build/windows leafy/my-game:windows --userversion "$VERSION"+ ./butler push ./build/linux leafy/my-game:linux --userversion "$VERSION"+```++GitLab CI is equivalent: set `BUTLER_API_KEY` as a masked CI/CD variable and run the same+install + `butler push` commands in a job script.++## 4. `butler push` flag reference (verified)++| Flag | Purpose |+|---|---|+| `--userversion <v>` | Set an explicit version string instead of itch's auto-incrementing integer. |+| `--userversion-file <f>` | Read the version string from a file (single line, UTF-8, no BOM). |+| `--if-changed` | Skip the push if the contents are identical to the latest build (reduces no-op patches). |+| `--hidden` | Mark the upload hidden — **only** when the push creates a *new* channel; errors on an existing one. |+| `--ignore '<glob>'` | Exclude matching files; repeatable (`--ignore '*.pdb' --ignore '*.dSYM'`). Two dashes. |+| `--dry-run` | List every file that would be pushed (+ a summary); uploads nothing. |+| `--no-auto-unzip` | Push a single-`.zip` folder as one opaque file instead of unpacking it. |+| `--dereference` | Follow symlinks and upload copies of their targets (larger builds; use with care). |+| `--fix-permissions` | Normalize file permissions during the walk. |+| `--auto-wrap` | Wrap a single loose file in a folder before pushing. |++Related commands:++| Command | Purpose |+|---|---|+| `butler login` / `butler logout` | Authorize / clear local credentials (browser flow). |+| `butler version` | Print butler's version (confirms install + PATH). |+| `butler which` | Print the full path to the running butler binary. |+| `butler status <user>/<game>` | List channels and their latest builds/versions. |+| `butler push-preview <dir> <user>/<game>:<ch>` | Show `NEW/MODIFIED/DELETED/SAME` vs the last build; add `--changes-only` to hide unchanged. Uploads nothing. |+| `butler upgrade` | Update butler itself to the latest version. |++Notes:+- Processing: after a push the build is immediately live via a fast "default" patch; itch.io+ then regenerates an optimized (smaller) patch in the background. Both are transparent to+ players.+- Working from a remote/SSH host: `butler login` prints a URL; open it locally, copy the+ redirected (non-loading) page's address, and paste it back into the terminal.++## 5. Notify players of updates (no auth required)++Players who download directly (not via the itch app) don't auto-update. Query the latest+user-version for a channel and prompt them in-game:++```text+GET https://api.itch.io/wharf/latest?target=<user>/<game>&channel_name=<channel>+# or by numeric game_id (from the Edit game page URL):+GET https://api.itch.io/wharf/latest?game_id=<id>&channel_name=<channel>++Response: { "latest": "1.2.0" } // omitted if the latest build has no user-version+```++Compare `latest` to your build's version (push with `--userversion`) and surface an+"update available" message. Private games return an "invalid game" error to avoid leaking+unreleased titles.diff --git a/skills/workflows/prototype-fast/SKILL.md b/skills/workflows/prototype-fast/SKILL.mdnew file mode 100644index 0000000..dadeecc--- /dev/null+++ b/skills/workflows/prototype-fast/SKILL.md@@ -0,0 +1,125 @@+---+name: prototype-fast+description: >+ Build a playable prototype in about an hour to answer one question — is it fun? — with+ greybox primitives, a hard timebox, and explicit keep/kill criteria. Use when prototyping+ a mechanic, making a vertical slice or MVP, greyboxing/blockout, or judging throwaway vs keep.+license: Apache-2.0+compatibility: Engine-agnostic process skill (applies to any engine or framework).+metadata:+ engine: none+ category: workflows+ difficulty: beginner+---++# Prototype Fast++Get a mechanic into a player's hands fast to learn whether it's worth building. The output of+a prototype is a **decision** (keep / kill / refactor), not a product. Optimize for learning+speed, and decide up front whether the code is throwaway or load-bearing.++## When to use++- Use when validating a single mechanic or "what if", building a vertical slice / MVP,+ greyboxing a level or interaction, or de-risking an idea before committing real time.+- Use when the user says "just get something playable", "is this fun?", or "rough it in".++**When *not* to use:** a timed competition with a deadline and a submission (use `game-jam`);+shipping or updating a real release (use `steam-publish` / `itch-publish`); building the+production version of a validated feature (use the engine/genre skill directly).++## Core workflow++1. **Write the one question.** State the single thing the prototype must answer, e.g.+ *"Is grappling-while-falling satisfying to control?"* If you have two questions, build two+ prototypes. A prototype that tests everything tests nothing.+2. **Decide throwaway vs keep — before you write code.** Throwaway (a *spike*): hard-code,+ no architecture, delete after. Keep: still rough, but folder/names you can grow. Most+ prototypes should be throwaway; pretending otherwise is how prototypes rot into the+ shipping codebase.+3. **Set a hard timebox** (30-90 min for a mechanic; one sitting for a slice) and a visible+ timer. The constraint is the point — it forces you to test the *core* idea, not the trim.+4. **Greybox everything non-essential.** Primitives for art (boxes, circles, capsules),+ built-in fonts, one debug sound or none. Spend zero minutes on anything the question+ doesn't depend on.+5. **Instrument for the question.** Add on-screen debug text / gizmos that show the thing you+ are judging (speed, distance, timing window). You're measuring, not decorating.+6. **Playtest immediately and honestly.** Play it yourself, then hand it to one other person+ without explaining the controls. Watch where they struggle.+7. **Make the call against your kill criteria** (below). Keep → schedule the real build and+ *rewrite*, don't promote the spike. Kill → log the lesson and move on. Refactor → narrow+ the question and spike again.++## Patterns++### 1. The prototype brief (fill this in before coding)++```text+QUESTION: The one thing this must prove (binary if possible).+CORE VERB: The single action the player repeats.+THROWAWAY?: yes -> hard-code freely, delete after. no -> minimal structure to grow.+TIMEBOX: e.g. 60 min. Stop when it rings, even if unfinished.+KEEP IF: observable signal that means "fun / worth building" (see kill criteria).+KILL IF: observable signal that means "stop".+```++### 2. Greybox the core loop, fake everything else (engine-agnostic pseudocode)++```text+# Only the CORE VERB is real. Visuals are primitives; systems are stubs.+on update(dt):+ read_input()+ apply_core_mechanic(dt) # the ONLY thing you're testing — make this feel right+ draw_primitive(player) # a box. not a sprite. not animated.+ draw_debug_hud(speed, timing) # show the numbers you're judging+ # enemies, menus, save, audio, art -> stubbed or absent until the verb proves out+```++### 3. Kill criteria — make the keep/kill call observable, not emotional++```text+KEEP when, with placeholder art:+ - a fresh player does the core verb on purpose within ~30s, unprompted, and+ - you (or they) repeat the loop "one more time" without being asked.+KILL when:+ - the verb only feels good after you explain it, or+ - making it fun needs systems far beyond the prototype's scope, or+ - you're adding art/levels to avoid admitting the verb is flat.+REFACTOR when one variable is clearly off (too slow, window too tight) -> retune, retest.+```++### 4. Containment: keep a spike out of the shipping codebase++```text+prototypes/<idea-name>/ # separate folder or project, never imported by main game+ - hard-coded values, single file ok, magic numbers welcome+ - committed on a throwaway branch (or not at all)+Rule: a "keep" decision authorizes a REWRITE in the real project, not a copy-paste of the+spike. Prototype code carries prototype assumptions; shipping it ships the assumptions.+```++## Pitfalls++- **Polishing too early.** Art, menus, and audio make a flat mechanic look finished and+ delay the verdict. Greybox until the verb is proven.+- **No kill criteria.** Without a written "kill if", every prototype "has potential" and+ nothing gets cut. Decide the signal *before* you're attached to the code.+- **Building systems instead of the mechanic.** Inventory, save/load, and settings are not+ the question. Stub them.+- **The spike becomes the product.** Throwaway code promoted to production is technical debt+ with a fun origin story. Rewrite on a keep.+- **Prototyping in the real codebase.** It tangles experiments with shipping systems and+ makes the spike expensive to delete. Use a separate folder/project.+- **Testing only yourself.** You know the controls and the intent. One uncoached outside+ player reveals more in two minutes than an hour of self-play.++## References++- For working under a hard external deadline and submitting, read the `game-jam` skill.+- For the engine-specific core loop you'll greybox in, read that engine's skill+ (`godot-gdscript`, `phaser-core`, `love2d-core`, `unity-csharp-scripting`, …).++## Related skills++- `game-jam` — same scope discipline applied to a timed competition with a submission.+- Engine cores and genre skills — where a "keep" decision gets rebuilt properly.diff --git a/skills/workflows/steam-publish/SKILL.md b/skills/workflows/steam-publish/SKILL.mdnew file mode 100644index 0000000..a81756b--- /dev/null+++ b/skills/workflows/steam-publish/SKILL.md@@ -0,0 +1,184 @@+---+name: steam-publish+description: >+ Publish or update a game on Steam with Steamworks and SteamPipe: configure depots and+ packages, upload builds with steamcmd, set a build live on a branch, and run the release+ checklists. Use for Steam publishing, app_build.vdf/steamcmd uploads, depots, beta branches,+ or a store page release.+license: Apache-2.0+compatibility: Steamworks SDK + SteamPipe/steamcmd (current). Requires a Steamworks partner account and an App ID.+metadata:+ engine: none+ category: workflows+ difficulty: intermediate+---++# Steam Publish (Steamworks + SteamPipe)++Take a finished build to a live Steam store page. Two tracks run in parallel and both must be+approved before release: the **store page** (presence) and the **build** (SteamPipe upload ++the release checklists). This skill is the operational checklist; deep build-script,+CI/CD, and troubleshooting detail lives in `references/steampipe-build-scripts.md`.++## When to use++- Use when setting up a Steam app, building/editing the store page, configuring depots and+ packages, uploading a build via SteamPipe/steamcmd, managing beta branches, or releasing+ and updating a Steam title.+- Triggers: `steam_appid.txt`, the Steamworks SDK `tools/ContentBuilder`, `app_build_*.vdf`,+ `steamcmd`, "publish on Steam", "depot", "set build live".++**When *not* to use:** publishing on itch.io (use `itch-publish`); writing the+Steamworks **API** in-game (achievements/cloud/overlay live in engine SDK integrations, not+here); store/financial *advice* (pricing strategy, tax) — direct the user to Steamworks docs+and their own counsel.++## Prerequisites (do these once, in order)++1. **Partner account + Steam Direct fee.** Each new app requires the Steam Direct recoupable+ fee (USD $100 per app at time of writing). You receive an **App ID** — find it on your+ Steamworks homepage. Treat the App ID as the key to everything below.+2. **A dedicated build account with least privilege.** Builds require a Steam account in your+ partner group with **Edit App Metadata** and **Publish App Changes To Steam**. Create a+ *separate* build account with only those permissions (not your admin login). Releasing the+ app additionally needs **Manage pricing and discounts**.+3. **Download the Steamworks SDK** on the upload machine. The SteamPipe tools are under+ `tools/ContentBuilder/`.++> Security note: never commit account passwords or the `config.vdf` login token to the repo.+> See the CI/CD section in the reference for the supported token workflow.++## Core workflow++1. **Configure the app (App Admin).**+ - Set **launch options** (executable path + args per OS) under *Installation*. For a+ sub-folder exe, put the sub-folder in the Executable field — no leading slashes/dots.+ - Add **depots** on the *Depots* page (a depot is a bucket of files). Name each depot+ ("Base Content", "Windows Content"). Leave *[All languages]* / *[All OSes]* unless the+ depot is genuinely OS- or language-specific.+ - **Grant yourself the depots:** add them to your **Developer Comp** package on the+ *Associated Packages & DLC* page, or you won't own the content you upload.+ - **Publish** the configuration. Unpublished config is the most common cause of upload+ failures.+2. **Build the store page (presence track).** Fill graphical assets, description, tags,+ trailers, system requirements. When complete, click **Mark as ready for review**. Store+ review takes ~3-5 business days; submit at least **7 days** before you want it live. It+ must be in **Coming Soon** for at least **2 weeks** before release.+3. **Create your build scripts.** Start with the simple app-build `.vdf` in Patterns below;+ for multi-depot/multi-platform apps use depot scripts (see the reference). The script maps+ local files into depots and names where build output/logs go.+4. **Bootstrap steamcmd and upload.** Run `steamcmd` once to self-update, then run the build+ (Patterns). steamcmd chunks files (~1 MB), uploads only changed chunks, and registers a+ global **BuildID**.+5. **Set the build live on a branch.** Go to `https://partner.steamgames.com/apps/builds/<AppID>`,+ pick the build, **Preview Change**, then **Set Build Live Now** for a branch. Test on a+ beta branch first (see `references/steampipe-build-scripts.md` for branch setup).+6. **Run the Game Build checklist** and **Mark as ready for review** (store presence must be+ submitted *before* the build review). Both tracks must be approved.+7. **Release manually.** When approved and Coming Soon has run its time, use the green+ **Release App** button → **Publish Now** → **Release Now**. Approved titles do **not**+ release themselves.+8. **Update later** by uploading a new build and setting it live on `default` (manually) or+ shipping to a beta branch first. See `references/steampipe-build-scripts.md`.++## Patterns++### 1. SteamPipe ContentBuilder layout (Steamworks SDK)++```text+tools/ContentBuilder/+ builder/ steamcmd.exe (Windows) <- run once to bootstrap+ builder_linux/ steamcmd (Linux)+ builder_osx/ steamcmd (macOS)+ content/ <- your final, runnable build goes here (the files players get)+ output/ build logs + chunk cache (safe to delete; speeds up re-uploads)+ scripts/ <- your *.vdf build scripts live here+```++### 2. Minimal app build script — `scripts/app_build_1000.vdf`++```text+// AppID 1000 with one depot (1001): upload everything under ../content recursively.+// VDF is Valve KeyValues: "key" "value", braces for nesting. Adjust IDs to your app.+"AppBuild"+{+ "AppID" "1000" // your App ID+ "Desc" "1.0.0 launch build" // internal only; visible in Your Builds++ "ContentRoot" "..\content\" // root of files to upload (relative to this file)+ "BuildOutput" "..\output\" // logs + chunk cache++ "Depots"+ {+ "1001" // your Depot ID+ {+ "FileMapping"+ {+ "LocalPath" "*" // all files from ContentRoot+ "DepotPath" "." // mapped to the depot root+ "recursive" "1" // include subfolders+ }+ }+ }+}+```++### 3. Upload the build (Windows; substitute the platform builder elsewhere)++```bat+REM Run from the SDK. Bootstrap once, then build. Use a build account, not your admin login.+tools\ContentBuilder\builder\steamcmd.exe ^+ +login <build_account> <password> ^+ +run_app_build ..\scripts\app_build_1000.vdf ^+ +quit+```++```text+What happens: steamcmd self-updates -> logs in -> for each depot, hashes files into ~1 MB+chunks -> uploads only NEW chunks -> writes a depot manifest -> finishes with a global+BuildID. The build is NOT live yet; set it live per the workflow above.+```++### 4. Iterate safely with a preview build (uploads nothing)++```text+// Add to the AppBuild block to validate file mappings without uploading:+"Preview" "1" // outputs logs + a file manifest into BuildOutput only+// And to auto-set live on a BETA branch after a successful build (never 'default'):+"SetLive" "beta-qa"+```++## Pitfalls++- **The `default` branch cannot be set live automatically.** `SetLive` only works for a+ *beta* branch; you must set the default (customer) build live by hand in App Admin. Plan+ releases around this.+- **Store page must be approved before the build.** You cannot submit the build for review+ until store presence is submitted; both must pass, and Coming Soon must run ~2 weeks.+- **Titles never auto-release.** Even after approval, a human must click **Release App** at+ the chosen moment.+- **Mac/Linux install nothing.** Almost always: the OS-specific depots aren't in the package.+ Add every depot to the package on *Associated Packages & DLC*.+- **Unpublished app config.** "Failed to get application info" / build errors usually mean+ depots, launch options, or the App ID config were never **Published**.+- **`status = 6` on build.** The build account lacks permission for the App ID, or+ `ContentRoot`/`LocalPath` points at the wrong (empty) path.+- **Committing the login token.** The `config.vdf` Steam Guard token and account password are+ secrets. Keep them out of the repo; use the CI workflow in the reference.+- **Released-app safety delay.** Changing the build account's email/phone forces a **3-day**+ wait before you can set a build live for a *released* app — don't reconfigure the account+ right before launch.++## References++- For advanced multi-depot/multi-platform build scripts, `FileExclusion`/`FileProperties`,+ beta-branch setup, the CI/CD login-token workflow, and the SteamPipe troubleshooting table,+ read `references/steampipe-build-scripts.md`.+- Primary docs: Steamworks "Uploading to Steam" (`partner.steamgames.com/doc/sdk/uploading`),+ "Release Process" (`/doc/store/releasing`), "Branches (Betas)" (`/doc/store/application/branches`),+ "Depots" (`/doc/store/application/depots`).++## Related skills++- `itch-publish` — the same game shipped on itch.io with `butler` (often done alongside Steam).+- `game-jam` / `prototype-fast` — earlier stages of the same project's lifecycle.diff --git a/skills/workflows/steam-publish/references/steampipe-build-scripts.md b/skills/workflows/steam-publish/references/steampipe-build-scripts.mdnew file mode 100644index 0000000..134c32d--- /dev/null+++ b/skills/workflows/steam-publish/references/steampipe-build-scripts.md@@ -0,0 +1,155 @@+# SteamPipe: advanced build scripts, branches, CI/CD, troubleshooting++Depth for `steam-publish`. Read this when one depot and a single `app_build.vdf` aren't+enough — multiple platforms/languages, file filtering, beta branches, automated uploads, or+a build that won't go through. All file formats are Valve **KeyValues (VDF)**. Verify against+the primary doc: Steamworks → SDK → [Uploading to Steam](https://partner.steamgames.com/doc/sdk/uploading).++## 1. App build script with separate depot scripts++For apps with several depots, keep the app script thin and reference one depot script per+depot. Convention: `app_build_<AppID>.vdf` and `depot_build_<DepotID>.vdf`.++```text+// scripts/app_build_1000.vdf — game 1000 with a Windows depot (1001) and a content depot (1002).+"AppBuild"+{+ "AppID" "1000"+ "Desc" "1.2.0"+ "ContentRoot" "..\content\"+ "BuildOutput" "..\output\"++ // Optional top-level switches:+ // "Preview" "1" // dry run: write manifest/logs, upload nothing+ // "SetLive" "beta-qa" // auto-set live on this BETA branch (never "default")+ // "Local" "..\..\ContentServer\htdocs" // build to a Local Content Server instead++ "Depots"+ {+ "1001" "depot_build_1001.vdf" // reference external depot scripts+ "1002" "depot_build_1002.vdf"+ }+}+```++```text+// scripts/depot_build_1002.vdf — file mapping, exclusions, and special file flags.+"DepotBuild"+{+ "DepotID" "1002"++ // Map a subtree into a folder inside the depot.+ "FileMapping"+ {+ "LocalPath" "bin\*" // wildcards '*' and '?' allowed+ "DepotPath" "executables\"+ "Recursive" "1"+ }++ "FileExclusion" "*.pdb" // drop debug symbols everywhere+ "FileExclusion" "bin\tools\*" // drop a whole subtree++ // Mark files that the game/user writes at runtime so updates don't clobber them:+ "FileProperties"+ {+ "LocalPath" "settings.cfg"+ "Attributes" "userconfig" // user-modified: never overwritten, never flagged on verify+ }+ // "versionedconfig" is like userconfig but IS overwritten when you change it in the depot+ // (use only for genuine format changes/bug fixes).+}+```++Notes:+- `ContentRoot` can be overridden per depot inside a `DepotBuild`.+- `InstallScript "<file.vdf>"` marks and signs an install script the Steam client runs for any+ app mounting the depot (prerequisites, registry, shortcuts). Most games don't need one.+- You can name scripts anything; the `app_build_<AppID>` / `depot_build_<DepotID>` convention+ just keeps multi-app build machines organized.++## 2. Running builds (per platform)++```bash+# Windows+tools\ContentBuilder\builder\steamcmd.exe +login <account> <password> +run_app_build ..\scripts\app_build_1000.vdf +quit++# Linux / macOS (bootstrap once, then build)+./tools/ContentBuilder/builder_linux/steamcmd.sh +login <account> <password> +run_app_build ../scripts/app_build_1000.vdf +quit+```++macOS first-run bootstrap: `cd tools/ContentBuilder/builder_osx`, `chmod +x steamcmd`,+`bash ./steamcmd.sh`, then `exit` once it reaches the `Steam>` prompt.++## 3. Branches (betas) — test before customers see it++The **default** branch is what customers get. Always validate a build on a beta branch first.++1. Create a branch on the **Builds** page in App Admin. Use a name with **no spaces**; add a+ **password** if it should be private (players type it under *Properties → Betas*).+2. Upload your build (steamcmd, as above), or auto-target it with `"SetLive" "<branch>"`.+3. On the Builds page: select the branch in *Set build live for branch…*, **Preview Change**,+ then **Set Build Live Now**.+4. Opt in via the Steam client: right-click the game → *Properties* → *Betas* → pick the+ branch. Steam downloads it, replacing the installed branch.++Reminder: there is **no** way to auto-set the `default` branch live — promote a tested beta+build to default manually when you're confident.++## 4. CI/CD upload (token-based login, no password in scripts)++steamcmd stores a login token in `config.vdf` after a successful interactive login with Steam+Guard. CI reuses that token instead of a password.++1. On the build machine (or once locally), run `steamcmd +login <username>`, enter the+ password and the Steam Guard code, type `info` to confirm "connected", then `quit`.+2. **Preserve `<Steam>/config/config.vdf` between CI runs** (cache it as a secret artifact).+ This file holds the refreshed login token.+3. Subsequent runs log in with **no password**: `steamcmd +login <username>`.++```yaml+# GitHub Actions sketch — restore the token, then build. Never echo the token.+# Store the base64 of config.vdf as a repo secret (e.g. STEAM_CONFIG_VDF).+- name: Restore steam login token+ run: |+ mkdir -p ~/Steam/config+ echo "${{ secrets.STEAM_CONFIG_VDF }}" | base64 -d > ~/Steam/config/config.vdf+- name: Upload build to Steam+ run: |+ steamcmd +login "${{ secrets.STEAM_BUILD_ACCOUNT }}" \+ +run_app_build "$PWD/scripts/app_build_1000.vdf" +quit+```++- If a build run prints `Account Login Denied`, Steam Guard is blocking it. Run+ `set_steam_guard_code <code>` in steamcmd (code from the account's email), then retry login.+- Re-entering a password issues a **new** Steam Guard token and invalidates the cached one —+ avoid it in CI.+- Never print or commit `config.vdf`, the account password, or the Steam Guard code. Treat a+ leaked token as compromised and re-secure the account.++## 5. Patch-size hygiene (keep updates small)++SteamPipe diffs at ~1 MB chunk granularity and ships only changed chunks. To avoid bloated+updates:++- Don't compress or encrypt your own pack files in ways that cross asset boundaries — a small+ change then rewrites the whole compressed blob. Let Steam do compression on its side.+- Localize asset changes within pack files; avoid reshuffling asset order; keep pack files to+ ~1-2 GB and grouped by level/feature; add **new** pack files for new content instead of+ rewriting big existing ones.+- **Unreal Engine** pak alignment: build with `-patchpaddingalign=1048576 -blocksize=1048576`+ so re-alignments shift by SteamPipe's block size and patches stay small.++## 6. Troubleshooting table++| Symptom | Likely cause | Fix |+|---|---|---|+| `Failed to get application info for app NNNNN` | Wrong App ID, account doesn't own the app, or config never published | Verify App ID in the script; confirm ownership; **Publish** the app config in App Admin |+| `ERROR! Failed 'DepotBuild …' status = 6` | Build account lacks permission, or `ContentRoot`/`LocalPath` is wrong/empty | Grant *Edit App Metadata* + *Publish App Changes*; check paths are relative to the script and contain files |+| `Account Login Denied` in steamcmd | Steam Guard blocking automated login | `set_steam_guard_code <code>` then retry; preserve `config.vdf` for future runs |+| Build uploaded but players don't get it | Build not set live, or set live only on a beta branch | Set live on the correct branch (default = manual) via the Builds page |+| Windows installs, Mac/Linux install no files | OS depots not added to the package | Add every depot to the package on *Associated Packages & DLC* |+| "Invalid content configuration" at launch | No build set live on the selected branch, or bad launch options | Set a build live; verify *Installation* launch options |+| Forgot a steamcmd command's syntax | — | At the `Steam>` prompt run `find <partial>` (e.g. `find build_installer`) to print matching commands + args |++Check the `*.log` files in `BuildOutput` (not the console) for the authoritative error on a+failed build.