zer09/pi-config/firebase-ai-logic-basics

Claude Code and agent skill by zer09/pi-config

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Integrate Firebase AI Logic in Web, Android, iOS, Flutter, or Unity apps. Use for Gemini features through Firebase client SDKs, including multimodal input, streaming, and structured output, not generic Gemini API or Genkit work.

Install

npx vskill@latest install zer09/pi-config/firebase-ai-logic-basics

SKILL.md

The same SKILL.md was published earlier as zer09/pi-config/firebase-ai-logic-basics.

Firebase AI Logic Basics

Use Firebase AI Logic when adding Gemini-powered features through Firebase SDKs. Keep runtime guidance compact and load platform references only when needed.

Hosted service safety

  • Firebase and Google Cloud are external hosted services. Reads, local code edits, and local validation are allowed.
  • Do not enable services, change projects, deploy, alter billing/quota, write secrets, or run live model calls unless the user explicitly requests that exact action and target.
  • Never hardcode API keys, app credentials, service account JSON, OAuth tokens, or private keys. Use Firebase config files, environment variables, or placeholders.
  • For sensitive prompts or user data, design server-side mediation or App Check patterns instead of exposing privileged credentials to clients.

Workflow

  1. Identify the target platform: Web, Android, iOS, Flutter, or Unity. For Unity, use the official setup guide.
  2. Reuse existing Firebase config, app initialization, and compatible client dependencies. Use firebase-basics only for a separate setup requirement. Client code changes do not require CLI login, live project discovery, or service enablement. Use installed or repository-pinned tooling; ask before download/install or upgrades.
  3. Load the smallest relevant reference:
  1. Add the minimal SDK initialization and model call needed by the feature.
  2. Validate error handling for auth state, App Check, network failures, quota errors, safety blocks, and unsupported input types.
  3. If structured output, tool use, file input, streaming, or multimodal input is involved, verify current SDK support from local package docs or current Firebase docs before coding.

Implementation reminders

  • Prefer the Gemini Developer API for prototyping and standard use. Use the Agent Platform Gemini API, formerly Vertex AI Gemini API, only for enterprise scale, data-residency, or other explicit requirements; Agent Platform requires Blaze billing.
  • App Check attestation rejects emulators, simulators, and many CI environments. Use registered App Check debug tokens for local or CI validation, pass them through environment variables, and never commit token values.
  • Keep client-side AI features least-privileged. Do not put administrative credentials in mobile or web clients.
  • Select a supported model for the chosen provider and feature from the model documentation. Replace model placeholders in examples; do not assume old model names remain available. Prefer typed response parsing over loose JSON assumptions.
  • Add user-visible fallback states for blocked, empty, partial, or rate-limited responses.
  • Keep large docs, SDK source reads, generated types, and test output bounded; capture only relevant excerpts or save verbose output to temp files.

Maintenance

Update this Local Skill using ../../../docs/skills/firebase-skills-update-process.md. Preserve the local invariants in ../../../docs/skills/local-skill-update-invariants.md.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/zer09/pi-config/firebase-ai-logic-basics/badge)](https://verified-skill.com/skills/zer09/pi-config/firebase-ai-logic-basics)

Something wrong with this skill or its page? Tell us.