dart-mobile-game-studio
AGENTS.md1 starsChanged 5 months agoMITView on GitHub
Guidance for coding agents (Codex and any AGENTS.md-aware tool) working in this repo. Read SKILL.md first, then follow its workflow: understand → Mini-GDD → pick mode (Flutter-widgets / Flame / hybrid) → architecture → MVP → tests → build/test → review (kids/privacy/a11y/perf) → handoff. Ground decisions in the official Flutter org — flutter/games (Casual Games Toolkit) and flame-engine/flame. Deep-dive references in references/ (+ references/dart/ for Dart mastery), templates in assets/, scripts in scripts/. Model tiers. Each agent declares a tier…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/agents/art-director.mdcCursor rule
- .cursor/rules/agents/balance-economist.mdcCursor rule
- .cursor/rules/agents/code-auditor.mdcCursor rule
- .cursor/rules/agents/code-reviewer.mdcCursor rule
- .cursor/rules/agents/engine-architect.mdcCursor rule
- .cursor/rules/agents/game-coordinator.mdcCursor rule
- .cursor/rules/agents/game-designer.mdcCursor rule
- .cursor/rules/agents/gameplay-programmer.mdcCursor rule
- .cursor/rules/agents/legal-compliance.mdcCursor rule
- .cursor/rules/agents/narrative-writer.mdcCursor rule
- .cursor/rules/agents/performance-auditor.mdcCursor rule
- .cursor/rules/agents/qa-tester.mdcCursor rule
- .cursor/rules/agents/release-engineer.mdcCursor rule
- .cursor/rules/agents/security-auditor.mdcCursor rule
- .cursor/rules/dart-flutter-architecture.mdcCursor rule
- .cursor/rules/dart-flutter-testing.mdcCursor rule
- .cursor/rules/dart-mobile-game-studio.mdcCursor rule
- dart-mobile-game-studioSkill
- dart-mobile-game-studioSkill
- dart-mobile-game-studioSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Very specific: line 12
Read SKILL.md first, then follow its workflow: understand → Mini-GDD → pick mode (Flutter-widgets / Flame / hybrid) → architecture → MVP → …
- Distinctive: line 33
Do not assume commands — discover them:
- Very specific: line 34
Run .agents/skills/dart-mobile-game-studio/scripts/verify-flutter-project.sh to detect a project and run a safe dart analyze + dart test.
- Very specific: line 45
Honesty rule: only report analyze/build/tests as passing if you actually ran them and saw it.
- Distinctive: line 46
If you can't run here, say so and provide the exact commands.
- Very specific: line 59
Children's apps: no tracking/analytics/ads/AdvertisingId/external-links/accounts.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.md
Guidance for coding agents (Codex and any AGENTS.md-aware tool) working in this repo.
Primary skill
For any Dart / Flutter mobile game task (iOS + Android), use the dart-mobile-game-studio
skill. Canonical location:
.agents/skills/dart-mobile-game-studio/SKILL.md.
It covers simple 2D games: coloring, puzzles, platformers, drag-and-drop, memory/matching, lite
runners, tap-reaction, and educational mini-games.
Read SKILL.md first, then follow its workflow: understand → Mini-GDD → pick mode (Flutter-widgets /
Flame / hybrid) → architecture → MVP → tests → build/test → review (kids/privacy/a11y/perf) → handoff.
Ground decisions in the official Flutter org — flutter/games (Casual Games Toolkit) and
flame-engine/flame. Deep-dive references in references/ (+ references/dart/ for Dart mastery),
templates in assets/, scripts in scripts/.
Subagents (14 specialist roles)
For larger work, play the roles in .agents/agents/ ("act as the <role> agent"):
- Build:
game-coordinator→game-designer→engine-architect→gameplay-programmer(+art-director,narrative-writer,balance-economist) →qa-tester. - Review & audit (read-only):
code-reviewer(diff/PR) + the pre-release gatecode-auditor,security-auditor,performance-auditor,legal-compliance. - Release:
release-engineer— App Store and Google Play readiness. See.agents/agents/README.md.
Model tiers. Each agent declares a tier (heavy/medium/light) routing it to a model — heavy on a
top model (Opus-class / GPT-5.5 xHigh), medium (Sonnet-class / GPT-5.4), light (Haiku-class /
GPT-5.4-mini). Run heavy + light roles in parallel on their own models. In Codex, resolve the tier to
your GPT line. Policy + mapping: .agents/skills/dart-mobile-game-studio/references/model-routing.md.
Build & test command discovery
Do not assume commands — discover them:
- Run
.agents/skills/dart-mobile-game-studio/scripts/verify-flutter-project.shto detect a project and run a safedart analyze+dart test. - Common commands:
dart pub get # or: flutter pub get dart analyze dart test # pure-Dart core tests (VM, fast, no device) flutter test # widget/golden tests flutter build appbundle # Android release flutter build ipa # iOS release - Honesty rule: only report analyze/build/tests as passing if you actually ran them and saw it. If you can't run here, say so and provide the exact commands.
Coding standards
- Separate logic from rendering. Game rules live in pure Dart (no
package:flutterimports) so they are unit-tested withdart test. Widgets / FlameFlameGames are thin. - State machine: menu → playing → paused → win/lose → menu (sealed classes / enums).
- Small, modular files;
lib/models/ lib/systems/ lib/game/ lib/widgets/ assets/ test/. Preferconstconstructors; dispose controllers/notifiers. - Tests for the model: legal moves, scoring, win/lose, level loading, transitions; seed RNG for
deterministic shuffles/spawns.
dart testfor the core,flutter_testfor widgets. - No copyrighted assets. Placeholder vector art (
CustomPainter/flutter_svg) or user-owned only. - Minimal dependencies — Flutter SDK + Flame preferred; justify any other pub.dev package.
- Accessibility via
Semanticson every interactive control; text scaling; reduce motion. - Children's apps: no tracking/analytics/ads/AdvertisingId/external-links/accounts; offline-first; no personal data; minimal permissions. Must satisfy both Apple Kids and Google Play Families.
- No store-compliance guarantees. Produce checklists and risks.
Handoff format
End with: what was built, mode and why, changed files, commands run + real output (or why none ran), assumptions, and open risks/next steps.
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.

