common-firebase-push-setup
БесплатноБез исполняемых скриптовНе проверенSets up first-time server-side push for one mobile app: inventories existing Firebase and APNs assets, isolates dev and prod with distinct projects and…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Firebase Push Setup
Priority: P1 (HIGH)
Establish the server-side prerequisites for one app to receive push. Setup is not a send: no project, API, credential, IAM binding, or message becomes live without explicit approval naming the exact account, project, app identity, and effect.
1. Inventory before registering
- Search the repo, CI config, and documented console state for existing Firebase projects, app registrations,
google-services.json/GoogleService-Info.plist, sender service accounts, APNs keys, and prior push code. - Reuse a matching asset within the same environment; list each missing one explicitly. First-time registration, enabling the
fcm.googleapis.comservice, key upload, and IAM writes are account mutations with separate approvals. - Stop when an existing asset's owner, project, or environment cannot be determined.
2. Isolate dev and prod
- Use a separate Firebase project per environment; separate app registrations inside one project do not isolate credentials, quotas, or audience.
- Keep per-environment client config, sender principals, APNs credentials, and CI secrets apart. Use distinct APNs credentials and trust for dev and prod even when one legacy key technically authorizes both.
- Never fall back to the production project or credential to unblock a dev test.
3. Verify the effective identity
Confirm against the built, signed artifact and the console, not the display name or a config index:
- Firebase project ID/number and the exact registered app.
- Android: the built application ID; match the Google Services client entry by that package, not by list position, and verify the effective runtime Firebase options resolve to the approved project.
- iOS: the extracted signed IPA's bundle ID, signing team, and
aps-environment. Derive the APNs environment from that signature; a TestFlight or production-signed build can use production APNs on a dev Firebase project. - APNs key team ID, Key ID, allowed topics, and actual key environment; the signed build's APNs environment and topics must be covered by the configured key.
Stop on any mismatch and register only after reconciliation. Android-only apps skip all APNs steps.
4. Control credentials and access
- Each owner action needs its own exact-effect approval: enabling the
fcm.googleapis.comservice, creating or uploading an APNs key, and each IAM write. - The owner uploads the APNs key directly in the exact Firebase project's iOS app configuration for the intended environment, and verifies which app registrations that configuration applies to. The
.p8never enters build, release, or sender CI; never accept key bytes, service-account JSON, or device tokens in chat, tickets, source, logs, or artifacts. An approved secret-channel escrow copy is the only exception. - Reuse an APNs key only inside its verified environment and topic scope. Record the allowed topics (a topic-specific key can cover more than one) and the actual environment. Stop and leave the handoff with the owner if scope cannot be verified or exceeds authorization.
- Give the sender a dedicated principal with only
cloudmessaging.messages.createon the target project, and verify effective access including inherited grants — a direct policy check alone is not effective access. Broad roles, topic administration, and notification-admin roles are out of this brief; never use them as a fallback. - Delegate client token registration and handlers to the platform skills: Flutter notifications, React Native notifications, Android notifications, iOS notifications.
5. One approved test send
- Require separate approval naming the dev project, one test device target (FID preferred; a registration token is deprecated but acceptable while supported), the current installation, and the payload. Recheck project, installed build, current target/installation, and payload immediately before dispatch.
- Send exactly one message to that single device. No topic, condition, batch, multicast, broadcast, or production send.
- Keep the states separate:
validate_onlyvalidates the request without delivery and grants no send authority; a message name/ID means the provider accepted the live send; device observation requires the notification seen on the exact installation and correlated to that message. - If dispatch outcome is unknown (timeout, crash after request), record unknown and do not replay. When FCM accepts a message but no device receipt is observed, record accepted/delivery unconfirmed and reconcile the original message and exact-device evidence before considering a separately approved retry. Fresh approval alone is not grounds to retry. Aggregated metrics are not per-message proof.
Evidence and stop
Report project IDs, effective app identity, signing team,
Установить common-firebase-push-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл common-firebase-push-setup?
Sets up first-time server-side push for one mobile app: inventories existing Firebase and APNs assets, isolates dev and prod with distinct projects and credentials, verifies the signed artifact package or bundle, signing team and APNs environment against the exact registration, controls owner upload and project-scoped sender access, and gates one approved single-device send across validated, accepted and observed states. Use for Firebase push setup, FCM or APNs credentials, or server notification setup; defer client notification UI and store release.
Как установить скилл common-firebase-push-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл common-firebase-push-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic