cmp-firebase-connect

cmp-firebase-connect is a skill for Claude Code, Codex from kvdm-co-pilot/create-cmp. It costs 170 tokens per session (3,155 once invoked), scanned A, original, MIT.

A setup guide for connecting a newly generated Kotlin Multiplatform or Compose Multiplatform app to its own Firebase project. Firebase is Google's service for features such as sign-in, databases, and other app back ends.

In plain words
What is it for?
Use it after scaffolding an app to create or select a Firebase project, register the app, obtain its configuration, and connect services such as Firestore. It is designed to keep the setup on Firebase's free Spark plan unless the user chooses otherwise.
Why use it?
It replaces placeholder Firebase settings with real project details and checks that the app builds afterward. It also requires confirmation before commands that create or change cloud resources.

Skill for Claude CodeCodex

Part of the create-cmp plugin — 15 skills, 1 agent, 4 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/kvdm-co-pilot/create-cmp/cmp-firebase-connect
Any agent
npx skills add kvdm-co-pilot/create-cmp --skill cmp-firebase-connect
Clone the repo
git clone --depth 1 https://github.com/kvdm-co-pilot/create-cmp

Made for: Claude Code, Codex.

Or install create-cmp, the plugin that ships this one along with the rest of its 15 skills, 1 agent, 4 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cmp-firebase-connect

README.md
[![agentmods](https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/cmp-firebase-connect.svg)](https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/cmp-firebase-connect)
Your own site
<a href="https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/cmp-firebase-connect"><img src="https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/cmp-firebase-connect.svg" alt="Measured on agentmods" height="20"></a>
Per session 170 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,155 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00170 $0.03155
Opus 5 $0.00085 $0.01577
Sonnet 5 $0.00034 $0.00631
Haiku 4.5 $0.00017 $0.00315

Measured 4d ago against content hash 8225fe679c9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cmp-firebase-connect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cmp-firebase-connect/SKILL.md · 203 lines

How it starts

The opening of the file, as written. The whole thing — 203 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cmp-firebase-connect — wire a stamped CMP app to its own Firebase project

Your job: take a CMP app that create-cmp stamped with a placeholder google-services.json (REPLACE_ME_PROJECT_ID, zeroed app id) and connect it to a real Firebase project on the user's account, using the Firebase CLI — no console clicking for anything the CLI can do. You finish by proving the wiring with a green build.

Consent rule. Every command that creates or mutates a cloud resource on the user's Google account (projects:create, apps:create, firestore:databases:create, apps:android:sha:create) is shown to the user verbatim first and run only after an explicit yes. Read-only commands (--version, login:list, projects:list, apps:list, apps:sdkconfig, firestore:locations, --help) need no gate. Never batch a mutation behind a read.

Cost honesty. A fresh Firebase project starts on the Spark (free) plan. Nothing in this flow enables billing, attaches a card, or upgrades to Blaze — and the CLI cannot silently do so. Auth (email/phone within free quota), Firestore, and the free-tier services all work on Spark. Say this to the user up front so "create a cloud project" doesn't read as "spend money".

1. Preflight

Run these checks before touching anything; fix in order.

  1. CLI presentfirebase --version. If missing, offer (consent-gated — it's a global install on their machine): npm i -g firebase-tools, then re-check.
  2. Logged infirebase login:list. If it reports no accounts, run firebase login. Tell the user first: this opens an interactive browser OAuth flow they must complete themselves; you cannot do it for them. On a headless/remote box use firebase login --no-localhost. Do not proceed until login:list shows an account.
  3. Read the app's identity from the stamped project (never ask the user to retype what the repo already knows):
    • Android applicationId — from composeApp/build.gradle.kts (the applicationId = "..." line inside android { defaultConfig { … } }).
    • iOS bundle id — from iosApp/project.yml (PRODUCT_BUNDLE_IDENTIFIER / bundleIdPrefix). iOS is optional and currently deferred product-wide — do the Android wiring first and only take the iOS branch (§5) if the user explicitly wants it now.
  4. Confirm this is a placeholder situation — open composeApp/google-services.json. If project_id is REPLACE_ME_PROJECT_ID (or mobilesdk_app_id is all zeros), proceed. If it already looks real, stop and ask whether they want to re-point the app at a different project (same flow, but be explicit that you're replacing a live config).

Read the full file on GitHub · 203 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 203 lines · 170 tokens per session scan A 8225fe679c9a

Subscribe to this mod's changes

cmp-firebase-connect is a skill published in the GitHub repository kvdm-co-pilot/create-cmp (0 stars, last pushed today), licensed MIT. It adds 170 tokens to every session and 3,155 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

compose-multiplatform

Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…

ericrisco/rsc-harness · 80 tokens

m3-expressive

Material 3 Expressive design patterns for Jetpack Compose - expressive theming, motion physics, shape morphing, typography emphasis, color emphasis, and all 28 expressive components.

TalissonVitorino/kmp-ios-skills · 41 tokens

liquid-glass

Apple Liquid Glass design patterns for SwiftUI iOS 26 - glass effects, morphing, containers, interactive glass, tinting, accessibility, and cross-platform glass design.

TalissonVitorino/kmp-ios-skills · 40 tokens

cloudkit

Implement, review, or debug iCloud sync in iOS/macOS apps with CloudKit. Covers CKContainer + private/public/shared CKDatabase, CKRecord / CKRecord.Reference / CKAsset, CKQuery + CKQueryOperation, CKSubscription (query/database/recordZone) with silent push, CKSyncEngine (iOS 17+: state serialization…

TalissonVitorino/kmp-ios-skills · 209 tokens

android-device-integrity

Android app/device integrity and anti-fraud for a fintech app — the Play Integrity API (com.google.android.play:integrity): Standard requests (StandardIntegrityManager.prepareIntegrityToken → StandardIntegrityTokenProvider.request with a requestHash → StandardIntegrityToken) vs Classic requests…

TalissonVitorino/kmp-ios-skills · 260 tokens

mobile-session-security

KMP + iOS/Android session hardening for a fintech app — inactivity auto-lock (track last-interaction, idle timeout, biometric/passcode re-auth), biometric re-lock on background/foreground with a grace period, and screen-capture/snapshot protection. Android: WindowManager FLAGSECURE (blocks screenshots + recents…

TalissonVitorino/kmp-ios-skills · 209 tokens