agentleFS
Zulut30Zulut30/dart-mobile-game-studio/AGENTS.md

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…

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
  1. Very specific:

    Read SKILL.md first, then follow its workflow: understand → Mini-GDD → pick mode (Flutter-widgets / Flame / hybrid) → architecture → MVP → …

    line 12
  2. Distinctive:

    Do not assume commands — discover them:

    line 33
  3. Very specific:

    Run .agents/skills/dart-mobile-game-studio/scripts/verify-flutter-project.sh to detect a project and run a safe dart analyze + dart test.

    line 34
  4. Very specific:

    Honesty rule: only report analyze/build/tests as passing if you actually ran them and saw it.

    line 45
  5. Distinctive:

    If you can't run here, say so and provide the exact commands.

    line 46
  6. Very specific:

    Children's apps: no tracking/analytics/ads/AdvertisingId/external-links/accounts.

    line 59

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 gate code-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:

  1. Run .agents/skills/dart-mobile-game-studio/scripts/verify-flutter-project.sh to detect a project and run a safe dart analyze + dart test.
  2. 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
  3. 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:flutter imports) so they are unit-tested with dart test. Widgets / Flame FlameGames 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/. Prefer const constructors; dispose controllers/notifiers.
  • Tests for the model: legal moves, scoring, win/lose, level loading, transitions; seed RNG for deterministic shuffles/spawns. dart test for the core, flutter_test for 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 Semantics on 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.