Realign the genkit_flutter_gemma / genkit_hybrid packages when flutter_gemma's core API changes — discover changes, fix compilation, support new features, update fakes/tests, bump version. Monorepo-aware.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Realign the genkit_flutter_gemma / genkit_hybrid packages when flutter_gemma's core API changes — discover changes, fix compilation, support new features, update fakes/tests, bump version. Monorepo-aware.
user_invocable
true
Upgrade Genkit packages to the current flutter_gemma API
The Genkit integration packages (packages/genkit_flutter_gemma, packages/genkit_hybrid)
wrap flutter_gemma's public API. When that API changes, they must be realigned or
they break. In the monorepo they consume flutter_gemma as an in-workspace
path dependency, so a core change can break them in the same commit — run this
whenever a PR changes the public InferenceModel / InferenceChat /
EmbeddingModel / Message / ModelResponse / enum surface.
Follow these 5 phases sequentially. Ask the user before deciding which new
features to support (Phase 3).
Paths below are relative to the repo root. Core package =
packages/flutter_gemma; genkit package = packages/genkit_flutter_gemma
(mirror for genkit_hybrid). REPO_ROOT = monorepo root,
PKG_DIR=packages/genkit_flutter_gemma, EXAMPLE_DIR=$PKG_DIR/example.
Phase 1: Reconnaissance
Identify what changed in the core public API. In the monorepo flutter_gemma
is a path dep (not pub), so don't rely on dart pub outdated — instead read
the diff / CHANGELOG of packages/flutter_gemma: