firebase-remote-config-basics
Skill506 starsChanged 5 months agoApache-2.0View on GitHub
Manages Firebase Remote Config templates, feature flags, loading strategies, and SDKs (Android, iOS). Use when downloading/deploying remoteconfig JSON templates, managing version history/feature flags, setting in-app defaults, fetchAndActivate(), real-time listeners, or SDK setup. Don't use for Firebase Hosting, Auth, Firestore, Data Connect, Crashlytics, or App Hosting.
- Installs packages
4 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- renansouza12/mixtape-edited, first seen Oct 13, 2026
- cuonnd/Claude_skillsedited, first seen Oct 13, 2026
- baliadventours/Tripbone-SaaS-Productionedited, first seen Aug 5, 2026
- VolantTyler/Cognitive-Bridge-Antigravityedited, first seen Jun 5, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- VolantTyler/Cognitive-Bridge-Antigravity★ 191% same
- baliadventours/Tripbone-SaaS-Production★ 093% same
- cuonnd/Claude_skills★ 099% same
- renansouza12/mixtape-★ 091% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- extension-to-functions-codebaseSkill
- firebase-ai-logic-basicsSkill
- firebase-analyticsSkill
- firebase-app-hosting-basicsSkill
- firebase-auth-basicsSkill
- firebase-basicsSkill
- firebase-crashlyticsSkill
- firebase-data-connectSkill
- firebase-firestoreSkill
- firebase-hosting-basicsSkill
- firebase-security-rules-auditorSkill
- firestore-rules-creationSkill
- xcode-project-setupSkill
The file
We split this skill into the rules it gives an agent
10 rules. 7 are common, 1 is distinctive, and 2 are very specific to this project.
7
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
If npx -y firebase-tools@latest fails due to registry permissions (403 error):
- Common: line 38
If a command fails because "no active project is selected":
- Very specific: line 40
Check login: Run npx -y firebase-tools@latest login:list.
- Common: line 41
Prompt for ID: If logged in but no project is active, ask the user: "Please provide your Firebase Project ID to proceed."
- Common: line 55
Follow these guidelines and use the associated CLI tools to ensure efficient and safe use of Remote Config.
- Distinctive: line 67
Real-time Updates: Use the SDK's real-time listener to update the app instantly without a refresh when server-side configuration changes.
- Common: line 72
Use the following commands to manage your Remote Config template and version history through the terminal:
- Common: line 86
MANDATORY: User Review and Verification: : STOP and ask the user to verify your changes before proceeding to deployment.
- Common: line 109
Verification: After deployment, verify the update by listing the version history.
- Common: line 123
Template Management: Use the Firebase CLI to version-control, get, and deploy your config JSON files.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Remote Config
This skill provides a complete guide for getting started with Remote Config on Android or iOS. Remote Config allows you to change the behavior and appearance of your app without publishing an app update by maintaining a cloud-based configuration template.
Prerequisites
Provisioning Remote Config requires both a Firebase project and a Firebase app,
either Android or iOS. To manage the Remote Config template and conditions via
the command line, use the Firebase CLI. See the firebase-basics skill for
references on project initialization.
Troubleshooting Execution
Handling npx 403 Forbidden Errors
If npx -y firebase-tools@latest fails due to registry permissions (403 error):
- Inform the user: "I am unable to fetch the latest Firebase tools via npx due to a registry error."
- Fallback: Attempt to use the local
firebasecommand directly if the user confirms it is installed globally (npm install -g firebase-tools).
Handling Project Context Issues
If a command fails because "no active project is selected":
- Check login: Run
npx -y firebase-tools@latest login:list. - Prompt for ID: If logged in but no project is active, ask the user: "Please provide your Firebase Project ID to proceed."
- Use Flag: Append
--project <PROJECT_ID>to every subsequent command.
SDK Setup
To learn how to set up Remote Config in your application code, choose your platform:
- Android: android_setup.md
- iOS: ios_setup.md
Best Practices and Template Management
Follow these guidelines and use the associated CLI tools to ensure efficient and safe use of Remote Config.
Fetching Strategies
To optimize app performance and user experience, follow these recommended patterns (see Loading Strategies):
- Load new values for next startup: The most effective pattern is to activate previously fetched values immediately on startup and fetch new values in the background to be used next time. This minimizes user wait time.
- Real-time Updates: Use the SDK's real-time listener to update the app instantly without a refresh when server-side configuration changes.
Template Management via CLI
Use the following commands to manage your Remote Config template and version history through the terminal:
Get current template: Save the remote template to a local JSON file for auditing or modification.
npx -y firebase-tools@latest remoteconfig:get -o remote_config.json- Autonomous Editing & Discovery : Modify the local
remote_config.jsondirectly. Determine the correct signal (e.g., device.country or percent) and update the "conditions" array and "parameters" map accordingly. MANDATORY: User Review and Verification : STOP and ask the user to verify your changes before proceeding to deployment.
- Action: Inform the user: "I have prepared the changes in remote_config.json. Please review the file for accuracy. Once you are satisfied, tell me to 'deploy' to make the changes live."
Deployment Orchestration : To push changes, you must ensure the environment is configured for deployment.
- Config Mapping: If a firebase.json file is missing, create one to map the local JSON to the Remote Config service:
{ "remoteconfig": { "template": "remote_config.json" } }Deploy: Execute the partial deployment command
npx -y firebase-tools@latest deploy --only remoteconfig
Verification: After deployment, verify the update by listing the version history.
npx -y firebase-tools@latest remoteconfig:versions:list
The SDK provides a number of features to make your application dynamic and responsive to user segments.
- Set In-App Defaults: Define baseline values to ensure the app functions offline or before the first fetch.
- Fetch and Activate: Retrieve values from the Firebase backend and apply them to the local UI/Logic.
- Template Management: Use the Firebase CLI to version-control, get, and deploy your config JSON files.
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
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.

