VibeGame / src
CLAUDE.md263 starsChanged 2 months agoApache-2.0View on GitHub
You must interact with the user in this way: 1. Always respond and write docs in: **{{language_name}}**. File names, identifiers, code, and engine vocabulary stay in English. 2. DO NOT use AskUserQuestion or other equaliant tools. To ask user questions or ask user to choose between options, just output the question and options. Canonical vocabulary used by all agents when talking to the user and to each other. Use these terms; avoid synonyms. Do not switch terminology between turns. When…
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 4
Read the relevant files before acting on the game project.
- Very specific: line 9
When outputting a file path for user review, always use markdown link format name.
- Very specific: line 10
Never modify files outside the game project directory unless the user explicitly permits it.
- Very specific: line 11
Never use pkill -f 'vibegame'.
- Very specific: line 17
DO NOT: use AskUserQuestion or other equaliant tools.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vibegame Project
- This project uses Phaser 3. Never use Phaser 2 APIs.
- Read the relevant files before acting on the game project. Do not guess game state or asset inventory.
.vibegame/GDD.md— Game design document (mechanics, characters, art needs).vibegame/assets.md— Asset inventory (registered sprites, tilesets, audio).vibegame/spec/— Engine guides, system specs, design theoryindex.html— Game entry point
- When outputting a file path for user review, always use markdown link format
[name](absolute_path). Do not use relative paths or[name](file://absolute_path) - Never modify files outside the game project directory unless the user explicitly permits it. When deleting files, prefer recoverable methods (e.g.
trashon macOS) overrm. - Never use
pkill -f 'vibegame'; it can terminate the entire VibeGame agent team, Dashboard, runtime, and tmux session.
User Interaction
You must interact with the user in this way:
- Always respond and write docs in: {{language_name}}. File names, identifiers, code, and engine vocabulary stay in English.
- DO NOT use
AskUserQuestionor other equaliant tools. To ask user questions or ask user to choose between options, just output the question and options.
Glossary
Canonical vocabulary used by all agents when talking to the user and to each other. Use these terms; avoid synonyms. Do not switch terminology between turns. When introducing a term to a non-developer user, give a plain-language analogy on first mention, then use the canonical term consistently after.
Engine usage lives in .vibegame/spec/engine/index.md. The glossary names concepts; it does not duplicate their API rules.
Engine and assets
- node - A scene-tree unit with optional script, visual and collider. May be placed initially or spawned at runtime.
- scene - A .scene.json file describing an initial node tree.
- .node.json template - A reusable node definition, including config defaults.
- instantiate - Spawn a template as a child of an existing node.
- script - JavaScript that drives node behavior; ordinary helper modules may hold pure game logic.
- project - A user game directory rooted at project.json.
- sprite - A single 2D image or named frame used as a visual.
- sprite sheet - An image containing multiple frames.
- animation - A timed sequence of frames.
- tileset - Equal-sized tiles with metadata registered in a manifest entry.
- tilemap - A grid-based level using a tileset, distinct from a raster background with separate colliders.
- manifest - Asset keys and metadata for runtime loading, normally assets/manifest.json.
- pivot - The fractional anchor used to align a visual or collider.
- collider - The object's physical shape, planned from gameplay dimensions rather than source-image resolution.
- block / trigger - Solid contact versus overlap detection.
- hitbox - An additional collision area, such as an attack zone.
- one-way platform - A platform that blocks from above.
- tag - A label for finding and grouping nodes by purpose.
- input-map - Mappings from physical keys to game actions.
Workflow
- agent — A specialist sub-process with a defined role. Persistent:
designer,artist,reviewer. Spawned per task:architect,programmer,auditor,player. For one-shot codebase exploration the orchestrator uses Claude Code's built-in Task tool with theExploresubagent (or Codex equivalent) — the team backbone is reserved for stateful, multi-turn task work. - task — A bounded unit of feature work tracked under
.vibegame/tasks/<name>/. Created and initialized by the orchestrator viavibegame lead task create/vibegame lead task init. Pipeline: orchestrator writesprd.md→architectproducesplan.mdand configures the per-taskcontext.json→programmerwrites code →auditordoes static review →playerruntime-verifies (state assertions + screenshots) → orchestrator accepts. Optionally runs in its own git worktree for isolation. - prd.md — A task's product specification. Owned by the orchestrator. User-visible outcome, entry conditions, boundaries, acceptance notes. Never holds implementation detail.
- plan.md — A task's technical plan. Owned by
architect. Lists files to touch, technical decisions, reuse points, constraints. The contractprogrammerandauditorexecute against. - log.md — A task's append-only work record. Owned by downstream sprint agents. Each phase appends one H1 section (
# Programmer,# Auditor,# Player) containing files modified, decisions, validation results, evidence pointers. H1 reflects the phase, not the agent identity — Route Aarchitectwrites# Programmerwhen it self-implements. Multi-round rework appends additional sections rather than overwriting. - context.json (per task) —
<task_dir>/context.jsonholds{file, reason}lists keyed byall / programmer / auditor / player. Seeded from sourceconfig/context.json:default_configatvibegame lead task init, edited byarchitectto add task-specific specs. Path resolver tries the task dir first, then the workspace root.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

