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.
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-firebaseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install integrate-genui-firebase in Claude Code
git clone --depth 1 https://github.com/flutter/genui /tmp/genui && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/genui/packages/genui/skills/integrate-genui-firebase ~/.gemini/antigravity-cli/skills/integrate-genui-firebaseAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install integrate-genui-firebase in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
