# Publish to Peerless

A skill for Claude Code, Cursor, Codex and similar agents. It helps a creator add optional Peerless SDK features that actually exist, package a browser build, and prepare a listing draft for [Creator Studio](https://playpeerless.com/creator).

Peerless does **not** ship a `peerless` CLI or a `peerless deploy` command. Do not invent one. These are checklist steps and official typings, not an uploader.

Updated 19 November 2026. Studio: Taste the Chain Games. Store: https://playpeerless.com

## When to use this skill

- The user has a browser game (static `index.html` build, or an HTTPS play URL they control) and wants a Peerless listing.
- The user asks to hook up Peerless friends, parties, chat, achievements, leaderboards, analytics or sessions.
- The user asks how to zip a build for Peerless upload limits.

Do not use this skill to claim OpenGame-only features (OG Radio, OG character, `opengame deploy`, 4 GiB upload limits) or any SDK method that is not in `https://playpeerless.com/peerless-sdk.d.ts`.

## Hard rules

1. Only mention SDK methods that exist in `peerless-sdk.d.ts`. Read that file before you write integration code.
2. Stay inside upload limits: 100 MB compressed, 500 MB expanded, 5,000 files, with `index.html` at the zip root. Or use an HTTPS play URL the creator controls.
3. A person reviews every listing. There is no public API in this skill that publishes a game without the creator. Prepare a draft; the creator submits in Creator Studio.
4. Do not invent a revenue-share number, an email address, a price, or an audience size.
5. Describe any AI use that materially affects the experience. Do not invent an AI disclosure.
6. Do not deploy to production infrastructure, touch DNS, or send outreach on the creator's behalf.

## CLI-style checks (ordinary shell, not a Peerless CLI)

Run these in the folder that will be zipped:

```bash
test -f index.html || { echo 'missing index.html at the zip root'; exit 1; }

python3 - <<'PY'
import os, sys
files = 0
size = 0
for root, dirs, names in os.walk('.'):
    if '.git' in root.split(os.sep):
        continue
    for name in names:
        path = os.path.join(root, name)
        files += 1
        size += os.path.getsize(path)
print(f'files={files} expanded_bytes={size}')
if files > 5000:
    sys.exit('over 5,000 files')
if size > 500 * 1024 * 1024:
    sys.exit('over 500 MB expanded')
PY

# zip -r ../game.zip . && ls -l ../game.zip
# Confirm the archive is <= 100 MB.
```

Play the build through a local web server, not a `file://` tab, before you zip it.

## SDK features that exist

The optional SDK is loaded from the listing. Typings: https://playpeerless.com/peerless-sdk.d.ts

Present on the global `Peerless` object (see the typings for arguments and return types):

- `init`, `ready`, `runtime`
- `ui.open` for `menu`, `party`, `friends`, `chat`, `profile`, `settings`, `leaderboards`, `achievements`
- `social` (snapshot, me, friends, chats, party, profile, invite, onChange)
- `asset`, `managed`, `audio`, `fullscreen`
- `analytics.gameplayReady`, `analytics.roundCompleted`
- `leaderboards.submit`, `leaderboards.list`
- `achievements.list`, `achievements.unlock`, `achievements.setProgress`
- `sessions` helpers (`listen`, `bind`, `ready`, `reportState`, `play`, `openRooms`, `queue`, and related)
- `join` / `send` / `leave` relay (up to 16 players)
- `on`, `player.snapshot` / `player.event`
- Colyseus helper types
- Standalone mode, so the game still runs outside Peerless

Leaderboards and achievements are optional and only work when the listing has them enabled. Do not tell a creator that Peerless hosts their multiplayer game servers for them: the relay and session helpers exist; a custom backend is still the creator's.

## Listing draft to collect

Leave the final submit to the creator. Collect, and do not invent:

- Title, pitch, description
- Genres and tags
- Cover, hero, at least one screenshot
- ZIP with `index.html` at the root, or an HTTPS play URL
- Plain-language AI disclosure
- Engine type if known (Three.js / plain JS, Godot 4, Unity Web, Unreal HTML5)
- Link to any jam page, if the game was a jam entry

Then point the creator to https://playpeerless.com/creator

## Further reading

- Guide: https://playpeerless.com/learn/publish-to-peerless-with-an-agent
- AGENTS.md (same folder): /skills/publish-to-peerless/AGENTS.md
- Publish overview: https://playpeerless.com/publish
- Jam entries: https://playpeerless.com/jam
