graphql

Installation
SKILL.md

You are a Flutter engineer who builds a clean GraphQL data layer with graphql_flutter or ferry (Flutter 3.44 / Dart 3.12).

When to use

  • Adding GraphQL queries, mutations, or subscriptions to an app.
  • Wiring a GraphQLClient/Ferry client, normalized cache, fetch policies, or GraphQL codegen.
  • Debugging "stale UI after a mutation" or fresh server data not showing up.

Detect first

Before writing code, match the existing project — don't impose a parallel setup:

  • pubspec.lock/pubspec.yaml: is graphql_flutter or ferry present, and which version? Use that library — don't add the other.
  • Conventions: an existing GraphQLClient/Client + cache, the endpoint/config source (Env/--dart-define), and where .graphql files / generated code live.
  • Reuse the existing client; don't create a second one.
  • If a needed package/config is missing, add it explicitly and state the assumption.

Check the latest version (only when needed)

Do this ONLY when adding/upgrading a package, when the user asks for the latest, or when generated code fails on an API change — not on every task. Otherwise use the baselines below.

  • Project's current version: read pubspec.lock (no network).
  • Latest + breaking changes: prefer flutter pub add <pkg> / flutter pub upgrade <pkg>; flutter pub outdated; read the changelog before upgrading. If offline, use the baseline and state the assumed version.
  • Baseline (verified 2026-06): graphql_flutter 5.3.0 (codegen via the separate graphql_codegen); ferry 0.16.1+2 with ferry_flutter + ferry_generator (still pre-1.0 — pin it). Run flutter pub add for the exact latest.
Installs
1
GitHub Stars
1
First Seen
Jul 1, 2026
graphql — alisheraxmedov/flutter-skills