---
name: mixel
version: 1.0.0
description: >-
  Open browser-game craft skills, packaging CLI, static preflight verification,
  and hosted MCP publishing for Mixel (https://mixel.games). Use when building, playtesting,
  packaging, or publishing HTML, Canvas, Three.js, Phaser, Godot, or Unity WebGL
  browser games with your own coding agent — zero Mixel AI credits charged.
---

# Mixel

## What this is

Mixel is an open browser-game craft and hosting platform for AI coding agents and indie creators. One CLI package (`@mixel/cli`) and seven craft skills (`@mixel/skills`) give your coding agent:

- **7 Game Craft & Verification Skills**: game feel, spring physics, visual depth, procedural WebAudio SFX, SDK helpers, and independent Playwright playtesting.
- **Static Preflight Checks**: `mixel check` and `mixel validate` verify entry HTML, relative asset paths, ZIP safety, size limits, and secret leakage before upload.
- **Private Preview & Public Arcade Hosting**: upload any static HTML/ZIP/WebGL/Wasm build for free private preview, automated static security clearance, and optional public arcade review.
- **Zero Mixel Credit Burn**: building with your own Claude Code, Codex, Cursor, OpenClaw, or OpenCode subscription consumes **0 Mixel AI credits**.

Talk to the user in plain, concise language. Report verified playtest results honestly and never claim a build is public until the user explicitly asks to submit it for review.

## Where to run this

Keep your game source workspace clean and separate from any exported static build folder (for example `./dist` or `./game`).

- **You are already in the game's folder**: install Mixel skills here with `npx @mixel/cli skills add .`.
- **The user specified another folder**: `cd` into that folder first. If you do not know where the game lives, ask — never scan unrelated directories on disk.
- **There is no game yet**: create a new subfolder (or use the empty folder you are in) and scaffold the game there.

## Never delete or overwrite the user's existing files

Whatever is already in the user's folder belongs to them: source code, art, sketches, notes, or prior builds. You may add files and edit files you created, but never run destructive cleanups (`rm -rf`, `git clean`, `git reset --hard`, or `--force` overwrites) on the user's files without naming the exact files and getting explicit approval first.

## Setup (1 minute)

1. Check Node.js version:
   ```sh
   node --version
   ```
   Mixel CLI requires **Node >= 20**.
2. Install the Mixel Craft Skills into your coding agent workspace (auto-detects Claude Code, Codex, Cursor, OpenCode, and shared `.agents/skills`):
   ```sh
   npx @mixel/cli setup
   npx @mixel/cli skills add .
   ```
   You can target a single client with `--agent claude|codex|cursor|opencode`.
3. Sign in via browser Device Flow (no API keys pasted into chat):
   ```sh
   npx @mixel/cli login
   ```
   This opens `https://mixel.games/account/agents/authorize` (or prints a short URL and code for any browser). **The sign-in and approval belong to the user** — wait for them to approve, then run `npx @mixel/cli doctor` to confirm identity and server capabilities.
4. **Alternative — Hosted MCP Connector** (for Claude, ChatGPT, or MCP-native IDEs):
   - Endpoint: `https://mixel.games/mcp`
   - Supports **OAuth 2.1 PKCE + Dynamic Client Registration** or a scoped Personal Access Token created at `https://mixel.games/account/agents`.

## Build, Verify & Publish Workflow

```sh
npx @mixel/cli doctor                                                # Verify sign-in, server limits, and environment
npx @mixel/cli init --root ./game                                    # Auto-detect Three.js / Phaser / Godot / Unity / HTML
npx @mixel/cli check ./game --json                                   # Fast static preflight check (paths, entry, secrets)
npx @mixel/cli validate ./game --jsonl                               # Strict byte-level upload validation
npx @mixel/cli upload ./game --title "<Title>" --description "<Desc>"# Create private draft + run automated security scan
npx @mixel/cli status --game <GAME_ID>                               # Inspect scan clearance, previewUrl, buildId & revision
npx @mixel/cli submit --game <GAME_ID> --build <BUILD_ID> --revision <REV> --visibility public
npx @mixel/cli withdraw --game <GAME_ID> --build <BUILD_ID> --revision <LATEST_REV>
```

### Rules for publishing

- **Private first**: `upload` always creates a **private** draft. Share the `previewUrl` so the user can playtest in their browser first.
- **Check before upload**: fix every finding reported by `mixel check` and `mixel validate` before uploading.
- **Explicit public review only**: never run `submit --visibility public` unless the user explicitly asks to publish publicly.
- **No SDK required**: plain HTML/CSS/JS, Canvas, Three.js, Phaser, Godot, and Unity WebGL builds run directly in Mixel's isolated player without requiring a proprietary SDK.

## Public API & Reference Guides

- **Development Guide**: `https://mixel.games/backend/api/v1/guides/development`
- **Publishing Guide**: `https://mixel.games/backend/api/v1/guides/publishing`
- **Platform Capabilities & Limits**: `https://mixel.games/backend/api/v1/capabilities`
- **Hosted MCP Endpoint**: `https://mixel.games/mcp`
- **Offline Creator Kit (ZIP)**: `https://mixel.games/backend/api/v1/creator-kit/download`
- **Human Setup Page**: `https://mixel.games/developers`

Re-fetch this file from `https://mixel.games/SKILL.md` whenever you need the latest Mixel agent instructions.
