Claude Code on FreeGameStore

Build a free game using Claude Code. The agent reads the platform's SKILLS.md and knows the brand rules, the CLI, and the deploy flow before it writes a line of code.

Before you start: install Node 22+ and the FreeGameStore CLI.
npm i -g @freegamestore/cli fgs login

Set up Claude Code

  1. Install Claude Code
    npm i -g @anthropic-ai/claude-code

    Or follow the latest install instructions at claude.com/claude-code.

  2. Scaffold the game
    fgs init my-game --template canvas cd my-game
  3. Add platform context to CLAUDE.md

    From inside the scaffolded directory:

    cat >> CLAUDE.md <<'EOF' # Platform: FreeGameStore Read https://freegamestore.online/skills.md for platform skills, brand mandates, compliance rules, and the publish flow. When this user asks for changes, edit web/src/App.tsx and supporting files. Use the existing Shell layout. Never add trackers, custom display fonts, or third-party scripts beyond Google Fonts. EOF

    Claude Code reads CLAUDE.md automatically at the start of every session — your platform context loads with no extra setup.

  4. Start a session
    claude

Or skip the setup — connect the MCP server

The FreeGameStore MCP server lets Claude Code build, publish, and improve games without leaving the editor. Connect once:

claude mcp add freegamestore -- npx mcp-remote https://mcp.freegamestore.online/mcp

Then there are two ways to build:

Authenticated tools take your fgs login session token via mcp-remote's --header "Authorization: Bearer <token>". Full guide: freegamestore.online/docs/mcp.

Prompt the build

Tell the agent what you want. Some examples:

Build a tip-splitter game: input the bill, tip %, and party size. Show per-person total. Persist the last 5 splits in localStorage. Use the Shell layout and brand tokens.
Add a dark-mode-aware bar chart of the daily lap times to my stopwatch game. Don't break the existing keyboard shortcuts (Space / L / R).
Refactor my game to extract the timer logic into a hook with full unit-test coverage. Use vitest.

Iterate

  1. Run the dev server
    cd my-game && pnpm install && pnpm dev

    The agent will tell you which file it edited; refresh the browser to see the change.

  2. Run compliance checks
    fgs check

    Catches missing brand fonts, tracking SDKs, oversized bundles, and missing PWA manifest before publish.

  3. Publish
    fgs publish --store games

    Provisions github.com/freegamestore-online/my-game, the Cloudflare Pages project, the DNS record, custom subdomain at my-game.freegamestore.online, and the storefront entry — atomically.

  4. Push your code
    git push upstream main

    Auto-deploys via Cloudflare Pages in ~30 seconds. Future commits to main deploy automatically.

What the AI knows (and doesn't ask you for)

Once SKILLS.md is loaded, the agent will:

The compliance suite (fgs check) enforces all of the above on every push, so even if the AI slips, the platform catches it.

Get the source

The CLI, SDK, and compliance package live at https://github.com/freegamestore-online/platform. Reading the source is allowed — and often illuminating when you're trying to coax a difficult prompt.

Tips for Claude Code specifically