GitHub Copilot on FreeGameStore
Build a free game using GitHub Copilot. 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.
Set up Copilot in VS Code
-
Install GitHub Copilot + Copilot Chat extensions
Open VS Code → Extensions → search "GitHub Copilot" and install both. Sign in with your GitHub account.
-
Scaffold the game
fgs init my-game --template canvas code my-game
-
Add platform context to
.github/copilot-instructions.mdmkdir -p .github && cat > .github/copilot-instructions.md <<'EOF' # Platform: FreeGameStore Always follow the conventions in https://freegamestore.online/skills.md. When editing files in this repo: - Use Manrope (body) + Fraunces (display) — no custom display fonts. - Use brand CSS tokens: var(--accent), var(--ink), var(--paper). Don't redefine them. - Never add Google Analytics, Plausible, Mixpanel, or any tracking SDK. - Use the existing Shell component for layout. - Push to main triggers auto-deploy; no manual deploy commands. EOFCopilot reads
.github/copilot-instructions.mdautomatically and prepends it to every chat turn. -
Open Copilot Chat (Ctrl-Cmd-I)
Start prompting. Use
@workspacein chat to give the agent broader context.
Prompt the build
Iterate
-
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.
-
Run compliance checks
fgs check
Catches missing brand fonts, tracking SDKs, oversized bundles, and missing PWA manifest before publish.
-
Publish
fgs publish --store games
Provisions
github.com/freegamestore-online/my-game, the Cloudflare Pages project, the DNS record, custom subdomain atmy-game.freegamestore.online, and the storefront entry — atomically. -
Push your code
git push upstream main
Auto-deploys via Cloudflare Pages in ~30 seconds. Future commits to
maindeploy automatically.
What the AI knows (and doesn't ask you for)
Once SKILLS.md is loaded, the agent will:
- Use the platform's CSS tokens (
--accent,--ink,--paper, …) — never redefine them. - Use Manrope (body) + Fraunces (display) — never custom display fonts.
- Refuse to add Google Analytics, Plausible, Mixpanel, or any tracker.
- Use
localStoragefor persistence (or@freegamestore/gamesKV for connected games). - Push to
mainfor deploy. Neverwrangler pages deploymanually. - Never ask you for Cloudflare or GitHub tokens.
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 Copilot specifically
@workspacein chat lets the agent see the whole repo. Without it, it sees only the open file.- Copilot's autocomplete (Tab) is tuned for line-level completions; chat is better for multi-file work.
- The web UI version (github.com → "Ask Copilot") works well when you're reviewing a published game's repo without cloning.