Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

integrate-genui-firebase

Skill by flutter

Integrates the genui package into a Flutter app and sets up a basic conversational agent backed by Firebase AI Logic. It is for Flutter developers who already have Firebase AI Logic working in their project.

  • Score 81
  • 1.8k stars
  • BSD-3-Clause
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install integrate-genui-firebase

Built from the published package, never by AI.

git clone --depth 1 https://github.com/flutter/genui /tmp/genui && mkdir -p ~/.claude/skills && cp -r /tmp/genui/packages/genui/skills/integrate-genui-firebase ~/.claude/skills/integrate-genui-firebase

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install integrate-genui-firebase in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill guides an AI assistant through integrating the genui package into a Flutter app and starting a simple conversation with Firebase AI Logic. It assumes Firebase AI Logic is already set up and working in the project. It checks that firebase_core and firebase_ai are in pubspec.yaml and that Firebase.initializeApp runs in main().

The steps add genui, configure GenUI logging, create a Gemini model and chat session, and wire SurfaceController, A2uiTransportAdapter and Conversation inside a StatefulWidget. A send-and-receive method passes user messages to Firebase and feeds replies back to the transport. The skill also covers a system prompt, rendering surfaces with the Surface widget, and disposing controllers. It is aimed at Flutter developers who want a working GenUI chat base, and it tells the assistant to ask before choosing the host widget or input controls.

Written from the project's SKILL.md and checked against it.

What it can do

  • Verify Firebase setupChecks firebase_core and firebase_ai in pubspec.yaml and Firebase.initializeApp in main().
  • Add GenUI packageAdds the genui package to the pubspec.yaml dependencies and imports it.
  • Configure loggingSets GenUI logging through configureLogging at the start of main().
  • Create chat sessionBuilds a Gemini model with FirebaseAI.googleAI() and starts a chat session.
  • Wire GenUI controllersSets up SurfaceController, A2uiTransportAdapter and Conversation in a State class.
  • Relay messages to FirebaseSends user text to the chat session and returns the response to the transport.
  • Handle conversation eventsProvides stubbed methods for surface added, surface removed, content and errors.
  • Set system promptSends a system message built with PromptBuilder containing basic instructions.
  • Render surfacesUses the Surface widget in build() to render GenUI widgets by surface ID.
  • Dispose controllersCleans up the transport and controller inside the widget's dispose() method.

What you need

  • Firebase AI Logic already set up and working in the project
  • firebase_core and firebase_ai packages in pubspec.yaml
  • The genui package
  • A Flutter app with Firebase initialized in main()

Try asking

  • Integrate genui and set up a simple chat with Firebase AI Logic
  • Add a GenUI conversation to my Flutter app using Firebase AI Logic
  • Wire SurfaceController and Conversation into my StatefulWidget

Good to know

  • Assumes Firebase AI Logic is already set up and working in the project.
  • The assistant must ask which StatefulWidget should hold the GenUI state if unclear.
  • Event handler methods are left as TODO stubs for the developer to implement.
  • Input UI elements are not assumed and must be chosen by the user.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/genui/skills/integrate-genui-firebase/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB

Alternatives to integrate-genui-firebase

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

integrate-genui-firebase: common questions

Does this skill set up Firebase AI Logic from scratch?

No. It assumes Firebase AI Logic is already set up and working in the project.

Which model does the example use?

The example creates a generative model named gemini-3-flash-preview through FirebaseAI.googleAI().

Does it build the chat UI for me?

It sets up the controllers and surface rendering, but the event handler methods are TODO stubs and the input widgets are chosen by the user.

How do I install integrate-genui-firebase?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is integrate-genui-firebase free?

The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.

Is integrate-genui-firebase safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to integrate-genui-firebase?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

integrate-genui-firebase Install

Add to stack

Loading.