/gamedev-pl:gamedevplfrom gamedev-pl
Build and publish browser games on the gamedev.pl platform via its MCP server. Covers round lifecycle, auth, and common loop mistakes.
Ships in gamedev-pl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
gamedev.pl publishes small browser games to a public catalog.
Creators connect their own coding agent — you — over the remote MCP server at
https://www.gamedev.pl/api/mcp, which this plugin declares.
Every tool needs an approved creator account. Without one, calls are refused — that is the account check, not an outage. Say so plainly if a creator hits it, rather than retrying or debugging the connection. Accounts start at gamedev.pl.
start returns the round's state and its usual sequence, and every tool description says
what that tool does and when it fits. That text is generated from the live server, so it is
more specific than this file about the current surface.
This skill exists for the part you need before the first call: what kind of thing a round is, and which mistakes cost a whole build.
list_account_games returns every game on your account with its
slug, title, published status, and whether an active build round is open (hasActiveRound).create_game first. start needs a slug and a new game has none.start directly.start is refused — nothing exists for it to bind
to. Open one first: continue_draft({ feedback }) for an unpublished draft,
open_round({ feedback }) for a published game, then start. Quote the creator's own
words in that feedback, in their language: it lands in their Studio thread as something
they said.Authorization: Bearer means you pass only the slug. A legacy
round key from the creator's Studio kickoff prompt goes in the key argument instead.
Durable per-game keys are retired — if a creator offers one, they reconnect with OAuth or
a creator key rather than passing it.start returns a sessionKey. Pass it on every later call, and hold it for the whole
round — it is valid until expiresAt. Re-running start to "refresh" it costs a round
trip and leaves duplicate round cards in the creator's chat.Everything else is in the sequence start returns. These are the ones agents get wrong
often enough to name up front:
mode=preview then end. On a later/resumed run call get_gate_verdict
once (start does not surface preview_passed); if a preview verdict is
already available, then get_gate_media — that is the happy path; the gate
captures with WebGL flags. With a shell: launch headless Chromium with
--use-gl=angle --use-angle=swiftshader-webgl --enable-unsafe-swiftshader --enable-webgl --ignore-gpu-blocklist (never --disable-gpu; Chrome ≥150
may need --use-angle=swiftshader). Capture canvas.toDataURL('image/png')
inside the same render callback (after compositing the default buffer is gone;
preserveDrawingBuffer:true only in a disposable capture harness, never in
shipped game source) — page.screenshot({path:'shot.png'}) writes PNG directly. Decode a data
URL to disk in-process (fs.writeFileSync('shot.png', Buffer.from(dataUrl.split(',')[1], 'base64')); never print or return the
data URL). Keep PNG ≤700 KB, then call screenshot_upload_url and PUT
the PNG bytes to its url with exactly the returned method and headers. A black/blank
frame means those WebGL flags were missing or the drawing buffer was already
discarded. If SwiftShader is unavailable, GAME_CAPTURE_GFX=canvas2d or
?gfx=canvas2d (force2d). There is no base64 screenshot tool — PNG bytes must
never enter the model.stage_source_file for new or fully rewritten paths;
patch_source_file for edits. Then submit_sources({ fromStaged: true, … }), which
overlays onto the latest delivery — so only changed paths need staging. Never re-emit a
whole large module.submit_sources
again. Staging alone does not re-run it, and the creator's card stays stuck on the
rejected delivery.end after your last submit. Do not stop at submit_sources, and do not sit in a
get_gate_verdict loop waiting — Studio shows the gate to the creator on its own.
get_gate_verdict is a one-shot check, never a poll.pendingMessages. When it is
non-empty, read_inbox returns those notes plus their attached images (attachments
counts them), which pendingMessages does not. Notes already read stop counting as
pending; ack_inbox, or end with ackInboxIds, marks them handled. What isn't
needed is scheduled inbox polling.Replies carry round state as data, and each piece is worth resolving before carrying on:
warnings[].code names something about the round — call_end (delivered, session still
open), must_fix_gate (the last delivery was refused; only another submit_sources
re-runs the gate), module_too_large, inbox_pending, progress_stale, seed_unread,
gate_not_started. Each warning's message has the detail.nextSuggestedTool, when present, names a read or a close the round state alone
justifies. It is absent while the next step is your own work, such as finishing or fixing
code — must_deliver means "deliver before you finish", not "deliver now".stop: true means this session can no longer change the round; what is left is wrapping
up with the creator.With a shell, the kit from get_kit's kitUrl (checked against its sha256) ships scripts
that help between deliveries:
npm run typecheck -- <slug> is the only local check worth running while iterating. The
server verifies every mode=preview delivery, which needs no browser, npm ci, capture
or playtest.npm run check:game -- <slug> --preview (typecheck → smoke → build) is optional near
delivery when a browser is available.npm run play -- <slug> --text is a stepped NDJSON session over stdin — a cheap way to
see whether an input did anything before spending a preview.npm run trace -- <slug> --accept records TRACE.json for a mode=publish seal; the
full gate is only worth running right before that seal.Game sources may not write window or __GAME_HARNESS__ (gate check 17): register
Agent-mode surfaces through defineGame().ui() / .observation() / .agentApi(), and reach
anything else through globalThis.
get_sources is the first read of
every round, including the first: a new game arrives with a generated round-0 draft
(origin: seed), a later round with what it delivered (origin: delivery). Either way
you are continuing existing work — do not scaffold over it. A generated draft has never
been run and is expected to be wrong in details; you own the result, not the draft.
seedStatus: pending means the draft is still generating: call get_sources again
rather than starting from a template.
A larger game comes back as manifest[] plus GAME.json and SPEC.md
(truncated: true): read the files you need with read_source_files, or, with a shell,
GET archive once (exact headers) and unpack it. full: true returns everything inline.report_progress before and after long steps. If get_brief.locales[0] is not en, send
textLocalized and locale alongside the English text — otherwise the creator reads
commit-speak in a language they did not choose. When relaying their words back through
open_round or continue_draft feedback, quote them verbatim in their own language: that
text is shown to them as something they said.
show_media is what puts pictures in front of the creator. get_gate_media and
get_reference_images return download URLs for you — fetch and open the file to look;
those never reach the creator.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gamedevpl/www.gamedev.pl --plugin gamedev-plOther plugins' skills for the same job