Add a second game to the monorepo (apps/<game>) from the seed game, wired to the gate. Load when asked to create a new game / app / prototype in this repo.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Add Game?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ltruchot-add-game)
---
name: add-game
description: Add a second game to the monorepo (apps/<game>) from the seed game, wired to the gate. Load when asked to create a new game / app / prototype in this repo.
---
# Add a game
1. `cp -r apps/game apps/<game>` without `node_modules`, `dist`.
2. `package.json`: `name` = `<game>` (the directory name), `description`.
3. `vite.config.ts`: `gameApp(<port>)`, next free even port (8080 game, 8082, 8084…); the
preview is port + 1. Same port in `e2e/playwright.config.ts` (`url`, the preview port).
4. `index.html`: `<title>`.
5. Anything two games need (a helper, a Pixi setup) → a new `packages/<name>` with
`"exports": "./index.ts"` (no build step, see `packages/vite-config`), not a copy.
6. `vp install`, then `vp run ready` green: the new game's `ready` runs with the others.
7. Update: AGENTS.md (architecture, ports), `.claude/settings.json` `allow`
(`vp -C apps/<game> test|build|run e2e`), README commands if they name `apps/game`.