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

dart-mobile-game-studio

CLAUDE.md1 starsChanged 5 months agoMITView on GitHub

Guidance for Claude Code working in this repository. The skill covers simple 2D games: coloring, jigsaw/sliding puzzles, light platformers, drag-and-drop, memory/matching, lite endless runners, tap-reaction, and educational mini-games. Read its SKILL.md and follow the execution workflow before writing code. Ground decisions in the official Flutter org — flutter/games (Casual Games Toolkit) and flame-engine/flame. Subagents can't spawn each other, so game-coordinator returns a delegation plan. See .agents/agents/README.md. Model tiers. Each agent declares a tier (heavy/medium/light) that routes it to a model…

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
  1. Distinctive:

    After editing, mirror into tool copies:

    line 39
  2. Very specific:

    Assets: no copyrighted material — placeholder vector art (CustomPainter/flutter_svg) or user-owned assets only.

    line 53
  3. Very specific:

    Kids apps: no tracking/analytics/ads/AdvertisingId/external-links/accounts.

    line 58
  4. Very specific:

    Report honestly: Only claim analyze/build/tests passed if you ran them and saw the output.

    line 65
  5. Very specific:

    Run scripts/dart-doctor.py <project> and assets/review-checklist.md before handoff.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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.

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

CLAUDE.md

Guidance for Claude Code working in this repository.

Primary skill

For any Dart / Flutter mobile game task (iOS + Android), use the dart-mobile-game-studio skill — invoke it as /dart-mobile-game-studio. It is installed at .claude/skills/dart-mobile-game-studio/SKILL.md and mirrored from the canonical source at .agents/skills/dart-mobile-game-studio/.

The skill covers simple 2D games: coloring, jigsaw/sliding puzzles, light platformers, drag-and-drop, memory/matching, lite endless runners, tap-reaction, and educational mini-games. Read its SKILL.md and follow the execution workflow before writing code. Ground decisions in the official Flutter org — flutter/games (Casual Games Toolkit) and flame-engine/flame.

Subagents (14 specialist roles)

Fourteen project subagents live in .claude/agents/ (generated from canonical specs in .agents/agents/). Invoke one with @<name> or just describe the need and let Claude route.

  • Build: game-coordinator (PM/decompose) → game-designer → engine-architect → gameplay-programmer (+ art-director, narrative-writer, balance-economist in parallel) → qa-tester.
  • Review & audit (read-only): code-reviewer (diff/PR), and the pre-release gate — code-auditor (whole codebase), security-auditor, performance-auditor, legal-compliance.
  • Release: release-engineer — App Store and Google Play submission readiness.

Subagents can't spawn each other, so game-coordinator returns a delegation plan. See .agents/agents/README.md.

Model tiers. Each agent declares a tier (heavy/medium/light) that routes it to a model — on Claude Code, sync-agents.py resolves it to model: opus|sonnet|haiku in the agent's frontmatter (heavy=Opus 4.8, medium=Sonnet 4.6, light=Haiku 4.5). Run heavy and light roles in parallel on their own models (independent Agent calls in one message, or the assets/parallel-build.workflow.js template). Full policy + the cross-vendor (Codex/GPT) mapping: references/model-routing.md.

Source of truth & sync

  • Canonical skill: .agents/skills/dart-mobile-game-studio/. Edit it there.
  • Canonical agents: .agents/agents/. Edit there, then regenerate tool copies.
  • After editing, mirror into tool copies:
    .agents/skills/dart-mobile-game-studio/scripts/sync-skill.sh   # skill -> .claude/.cursor
    .agents/agents/sync-agents.py                                  # agents -> .claude/.cursor

Project conventions

  • Logic vs rendering: pure Dart model (no package:flutter imports) holds all rules and is unit-tested with dart test; Flutter widgets and Flame FlameGames stay thin.
  • State machine: menu → playing → paused → win/lose → menu (sealed classes / enums).
  • Layout: lib/models/ lib/systems/ lib/game/ lib/widgets/ assets/ test/. Small, focused files; prefer const constructors.
  • Mode choice: Flutter-widgets-only for static/turn-based; Flame for motion/physics; hybrid (GameWidget + overlays) for action games that also need real menus/HUD.
  • Assets: no copyrighted material — placeholder vector art (CustomPainter/flutter_svg) or user-owned assets only. Levels as JSON data, not code.
  • Dependencies: Flutter SDK + Flame preferred; justify any other pub.dev package.
  • Accessibility: Semantics (label/value/button) on every interactive control; text scaling; reduce motion; TalkBack + VoiceOver.
  • Kids apps: no tracking/analytics/ads/AdvertisingId/external-links/accounts; offline-first; no personal data; minimal permissions (no Android INTERNET if offline); parental gate for sensitive actions. Must satisfy both Apple Kids Category and Google Play Families policy.

Verification expectations

  • Discover commands with scripts/verify-flutter-project.sh; build/test with dart analyze, dart test, flutter test, flutter build appbundle/ipa when a project + toolchain exist.
  • Report honestly. Only claim analyze/build/tests passed if you ran them and saw the output. If you can't run here (no toolchain), state that and give the exact commands.
  • Run scripts/dart-doctor.py <project> and assets/review-checklist.md before handoff. No store-compliance guarantees — provide a checklist and a risk list instead.

Handoff format

Finish with: what was built, mode chosen 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.