agentleFS
GDvegaGDvega/super-android-kotlin-firebase-skill/skills/firebase-ai-logic/SKILL.md

firebase-ai-logic

Skill2 starsChanged 5 months agoMITView on GitHub

Use for Firebase AI Logic and Gemini integration in Android, safe prompts, privacy boundaries, model selection, fallback behavior and not exposing private keys.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add Gemini/AI features to Android apps safely, with clear privacy and fallback behavior.

    line 8
  2. Distinctive:

    Add fakes/tests for AI boundaries.

    line 30
  3. Distinctive:

    Do not expose private API keys in the client.

    line 34
  4. Distinctive:

    Do not rely on AI for critical irreversible decisions without review.

    line 36
  5. Distinctive:

    Do not assume these companion skills are installed.

    line 52
  6. Distinctive:

    No fallback or error UX.

    line 77
  7. Distinctive:

    Use $super-android-kotlin-firebase to add Gemini summaries for user notes.

    line 89
  8. Distinctive:

    Use $super-android-kotlin-firebase to review this AI feature for privacy.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Add Gemini/AI features to Android apps safely, with clear privacy and fallback behavior.

When to use

  • Adding Firebase AI Logic or Gemini features.
  • Designing prompts or multimodal input.
  • Choosing cloud vs on-device AI.
  • Handling model errors, limits and fallback UX.

Inputs to inspect

  • AI use case and user value.
  • Data sent to model and privacy classification.
  • Firebase/Google AI provider choice.
  • Fallback and human review requirements.

Required workflow

  1. Classify data and decide if AI is appropriate.
  2. Choose Firebase AI Logic, backend proxy or on-device path.
  3. Design prompts and output validation.
  4. Handle rate limits, safety and offline fallback.
  5. Add fakes/tests for AI boundaries.

Rules

  • Do not expose private API keys in the client.
  • Minimize sensitive data sent to models.
  • Do not rely on AI for critical irreversible decisions without review.
  • Validate structured outputs.
  • Provide deterministic fallback.

Related existing skills

Local skills to invoke

  • firebase-core
  • security-privacy
  • networking-retrofit-ktor
  • ui-state-design
  • testing

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.

  • firebase/agent-skills — use for deeper Firebase product, Firestore, Security Rules or emulator workflow guidance when installed.

Files commonly touched

  • AI repository/service
  • prompt templates
  • ViewModel state
  • Firebase setup
  • tests/fakes

Commands to validate

./gradlew test
./gradlew assembleDebug
firebase emulators:start

Common mistakes to avoid

  • Hardcoding secret keys.
  • Sending unnecessary PII.
  • Trusting AI output without validation.
  • No fallback or error UX.

Checklist

  • Privacy reviewed.
  • Provider chosen.
  • Prompt/output validated.
  • Fallback exists.
  • Tests/fakes included.

Example prompts

  • Use $super-android-kotlin-firebase to add Gemini summaries for user notes.
  • Use $super-android-kotlin-firebase to review this AI feature for privacy.

Expected response style

Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.

References

  • ../../docs/audits/FUENTES_LOCALES.md
  • references/firebase-ai-logic-android.md
  • templates/ai-feature-boundary-template.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.