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

firebase-messaging

Skill2 starsChanged 5 months agoMITView on GitHub

Use for Firebase Cloud Messaging, tokens, notifications, data messages, Android 13+ notification permission, foreground/background handling and push testing.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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 token storage/update strategy.

    line 27
  2. Distinctive:

    Add contextual notification permission flow.

    line 28
  3. Distinctive:

    Test token refresh and message delivery states.

    line 30
  4. Distinctive:

    Do not put sensitive data in push payloads.

    line 34
  5. Distinctive:

    Do not assume tokens are permanent.

    line 35
  6. Distinctive:

    Document backend and topic risks.

    line 38
  7. Distinctive:

    Do not assume these companion skills are installed.

    line 51
  8. Distinctive:

    No fallback when permission is denied.

    line 76
  9. Distinctive:

    Use $super-android-kotlin-firebase to add FCM reminders.

    line 89
  10. Distinctive:

    Use $super-android-kotlin-firebase to debug missing push notifications.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Integrate push messaging with clear permissions, safe payloads and testable token handling.

When to use

  • Adding FCM notifications or data messages.
  • Managing device tokens.
  • Handling POST_NOTIFICATIONS permission.
  • Debugging foreground/background push behavior.

Inputs to inspect

  • Message type and target audience.
  • Payload shape and sensitivity.
  • Token lifecycle code.
  • Permission UX and backend sender.

Required workflow

  1. Define notification vs data message behavior.
  2. Add token storage/update strategy.
  3. Add contextual notification permission flow.
  4. Handle foreground/background display.
  5. Test token refresh and message delivery states.

Rules

  • Do not put sensitive data in push payloads.
  • Do not assume tokens are permanent.
  • Handle Android 13+ notification permission.
  • Avoid duplicate notifications.
  • Document backend and topic risks.

Related existing skills

Local skills to invoke

  • firebase-core
  • firebase-cloud-functions
  • security-privacy
  • ui-state-design

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

  • FirebaseMessagingService
  • notification permission UI
  • backend/functions sender
  • AndroidManifest.xml
  • tests/fakes

Commands to validate

./gradlew assembleDebug
adb shell pm grant <package> android.permission.POST_NOTIFICATIONS
adb logcat
firebase emulators:start

Common mistakes to avoid

  • Sending PHI or secrets in payload.
  • Ignoring token refresh.
  • No fallback when permission is denied.
  • Assuming foreground and background behave the same.

Checklist

  • Permission flow exists.
  • Token lifecycle handled.
  • Payload safe.
  • Foreground/background tested.
  • Backend sender documented.

Example prompts

  • Use $super-android-kotlin-firebase to add FCM reminders.
  • Use $super-android-kotlin-firebase to debug missing push notifications.

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/fcm-android-permissions.md
  • templates/fcm-token-handling-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.