---
name: froggy
description: Set up, develop, build and run native GB, GBC and GBA games, or create, edit and publish their Froggy pages with ROMs, artwork and screenshots. Use for handheld game projects and Froggy publishing; not browser recreations or emulator application development.
---

# Froggy

## Check for skill updates

When first using this installed skill in a chat, run `node path/to/froggy/scripts/check-update.mjs` (Node.js 20+). Its read-only JSON compares the installed [version.json](version.json) with the public release. If `update-available`, show both versions and the release notes, then ask whether to update or continue. Respect an existing update request; never replace files without update authorization. After approval, use `node path/to/froggy/scripts/update.mjs --yes`; the updater can also ask directly when run without `--yes`. A decline, missing answer or unavailable check does not block the user's task. Check once per chat unless asked again. Follow [references/updates.md](references/updates.md) for installation, backups and the no-Node fallback. This check needs no Froggy token.

## Choose the requested workflow

- **Publish or edit a page:** use the existing project or finished files. Skip game scaffolding and toolchain setup. Metadata-only edits do not require rebuilding a ROM.
- **Make or develop a game:** read [references/development.md](references/development.md), including its bounded per-frame work guidance. Preserve an existing project's build tools; use the portable starter for a new GB, GBC or GBA project. Local development needs no Froggy account or token.
- **Build and publish:** develop and test the actual game first, then follow the publishing workflow below. A request to set up, build or run a game does not by itself request a page or publication.

Match the target to the user: GB, GBC with a monochrome-compatible path, GBC-only, or GBA. Ask only when the target or requested game behavior cannot be inferred. Keep game design with the user.

## Install from this link

When the user asks to install this skill, download the complete [froggy skill bundle](https://www.froggy.fun/downloads/froggy.zip) and verify it against the [release metadata](https://www.froggy.fun/downloads/froggy-release.json). Install its entire `froggy/` folder in the current agent's user skills directory, preserving all files under `agents/`, `assets/starter/`, `references/` and `scripts/`, plus `SKILL.md` and `version.json`. For Codex, use `$CODEX_HOME/skills/froggy/` when configured, otherwise `~/.codex/skills/froggy/`; for Claude Code use `~/.claude/skills/froggy/`. Preserve local modifications if the skill already exists; use the backup and verification steps in the updates reference.

Installation needs no Froggy API token, downloads no compiler or emulator, and does not upload or publish a game. Report the installed location and whether the agent needs to reload before using the skill.

## Start, build and run a game

The [portable starter](assets/starter/README.md) uses Node.js 22+ with no npm packages or Python. From the user's chosen workspace:

```sh
node path/to/froggy/assets/starter/tools.mjs new gba ./my-game
node ./my-game/tools.mjs build
```

Replace `gba` with `gb`, `gbc` (monochrome/color compatible), or `gbc-only`. Never scaffold over an existing folder. The generated project is standalone: it contains its own source, build helper and checksum-pinned download manifest. Missing tools download locally when needed; compilers and emulators are not bundled in the skill.

Project commands are `setup`, `build`, `check` and `run`. `check` builds and validates ROM headers/checksums; it does not emulate gameplay. `run` builds first and opens mGBA for an explicitly requested manual play session. Use the project's documented headless harness for automated input/rendering checks; do not take over the desktop to run routine checks. The initial sample only changes its background while A is held; implement the requested game before calling it finished. See the development reference for target details and host support.

After every successful local game build or `check`, tell the user the actual ROM path and ask: “Would you like me to launch it in mGBA emulator now for a manual play session?” Only after the user explicitly says yes, run `node tools.mjs run` from the project root. If they decline or do not answer, do not launch an emulator; continue independent work without waiting. If the project does not provide that command, say so rather than inventing one. The internal build in an approved `run` does not trigger another prompt. Automated validation stays non-interactive, and ROM validation is not manual gameplay testing.

## Publish games

Use Froggy's REST API at `https://www.froggy.fun/api/v1`. No MCP server or CLI installation is needed. The user creates a revocable token in [Froggy API tokens](https://www.froggy.fun/account/tokens), then provides it through the `FROGGY_API_TOKEN` environment variable. Never put the token in source code, a manifest, logs or chat. If it is missing, ask the user to configure it in the environment; do not ask them to paste it into the conversation.

## Build and upload

Use the repository's own build instructions to compile a real exported `.gb`, `.gbc` or `.gba` ROM. Test the result with the project's available checks or emulator. Froggy accepts finished artifacts; it does not compile source projects. Do not invent builds or substitute another game's ROM. Use actual gameplay screenshots and original or licensed artwork.

For the common workflow, create a `froggy.json` manifest in the project root and run the included helper with Node.js 20 or newer:

```sh
node path/to/froggy/scripts/publish.mjs froggy.json
```

The helper creates a private page or updates `game_id`, uploads and verifies changed files, and saves the game ID in the manifest. Add `--publish` when the user has authorized publication. New pages start In Development and private. Use `--visibility unlisted` when the user wants a link-only page, `--visibility public` to list it, or `--visibility private` to make it owner-only. An existing unlisted or public page is updated in place and requires publishing permission even without a visibility flag. Unlisted links can be shared with anyone and are excluded from listings and search. A request to prepare a private draft is not permission to change an existing public page. Respect the user's existing authorization; do not require a second confirmation when publication was already requested.

Read [references/api.md](references/api.md) for the manifest fields, exact image dimensions, REST request bodies and error handling. Inspect the manifest and its local file paths before uploading. The helper limits file access to the manifest's project directory and does not run build commands. Build, inspect and test within the user's requested project.

For a generated starter, put `froggy.json` beside `game.json` and point `build` at `build/game.gb`, `build/game.gbc` or `build/game.gba`. Scaffolding creates no Froggy manifest or account connection. For an existing page, retain its `game_id` or use its URL to identify it; send only the requested fields and keep existing attachments when they are not being changed.

The long description (`about`) supports CommonMark Markdown: headings, bold/italic, lists, links and code. Raw HTML is disabled. Keep the short description (`summary`) plain text; Markdown is not rendered there.

## Direct API use

Use `Authorization: Bearer <FROGGY_API_TOKEN>` for Froggy API requests. Do not send that header to signed Storage upload URLs. Send raw file bytes to the returned PUT URL, then complete the upload to verify its size, SHA-256, ROM header or image dimensions. Only then attach the asset ID to the page.

Use a stable UUID `Idempotency-Key` when creating a page or preparing an upload. Retry an ambiguous creation with that same UUID. Read the latest game and send its `updated_at` in `If-Match` for edits, publish and unpublish. On a 409 version conflict, read the latest page and reconcile changes; do not blindly overwrite it. Stop after three transient retries and report the operation and request ID without revealing credentials.

Use the user's actual license or distribution permission. Never infer that uploading a ROM grants rights to distribute it. Once the operation succeeds, return the game's URL and whether it is public or private. If compilation, checks, uploading or publication did not finish, state which step remains.
