跳到主内容
智客 ZICQ

技能库 智客分类:运维与云 firebase-remote-config-basics

Firebase Remote Config Basics

管理 Firebase 远程配置模板,功能旗,加载策略,以及SDKs(Android,iOS). 下载/部署远程配置 JSON 模板时使用,管理版本历史/地标,设置应用默认,获取AndActivate (),实时收听者,或SDK设置. 不要用于Firebase主机,Auth,Firestore,数据连接,崩溃,或App主机.

132337 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

管理 Firebase 远程配置模板、功能旗、加载策略和 SDKs(Android, iOS)

何时用

下载/部署远程配置 JSON 模板,管理版本历史/地标,设置应用程序默认,获取AndActivate (),实时收听者,或SDK设置. 切勿用于 Firebase 主机、 Auth、 Firestore、 数据连接、 崩溃处理或 App主机

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Remote Config、Prerequisites、Troubleshooting Execution、Handling npx 403 Forbidden Errors、Handling Project Context Issues、SDK Setup。

文件分析

文件分析:除 SKILL.md 外,正文引用了 references/android_setup.md、references/ios_setup.md,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

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.

Remote ConfigPrerequisitesTroubleshooting ExecutionHandling npx 403 Forbidden ErrorsHandling Project Context IssuesSDK SetupBest Practices and Template ManagementFetching StrategiesTemplate Management via CLITemplate Management via CLI

兼容:This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
firebase-remote-config-basics
description
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.
compatibility
This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 2
  • references/android_setup.md
  • references/ios_setup.md

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「firebase-remote-config-basics」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-3f7ffd0b40f0816b-Firebase-%E8%BF%9C%E7%A8%8B%E9%85%8D%E7%BD%AE%E5%9F%BA%E7%A1%80.html
请存为 .cursor/skills/firebase-remote-config-basics/SKILL.md 或 .claude/skills/firebase-remote-config-basics/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/firebase/agent-skills 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/firebase/agent-skills' --list

npx skills add 'https://github.com/firebase/agent-skills' --skill 'firebase-remote-config-basics'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: firebase-remote-config-basics description: >- 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. compatibility: This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`. metadata: category: ApplicationDevelopment --- # 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): 1. **Inform the user**: "I am unable to fetch the latest Firebase tools via npx due to a registry error." 1. **Fallback**: Attempt to use the local `firebase` command 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": 1. **Check login**: Run `npx -y firebase-tools@latest login:list`. 1. **Prompt for ID**: If logged in but no project is active, ask the user: "Please provide your Firebase Project ID to proceed." 1. **Use Flag**: Append `--project ` 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](references/android_setup.md) - **iOS**: [ios_setup.md](references/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](https://firebase.google.com/docs/remote-config/loading)): - **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: ### 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. ```bash npx -y firebase-tools@latest remoteconfig:get -o remote_config.json ``` - **Autonomous Editing & Discovery** : Modify the local `remote_config.json` directly. 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: ```json { "remoteconfig": { "template": "remote_config.json" } } ``` - Deploy: Execute the partial deployment command ```bash npx -y firebase-tools@latest deploy --only remoteconfig ``` - **Verification**: After deployment, verify the update by listing the version history. ```bash 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.

相关技能

运维与云

Docker Essentials

用于容器管理,图像操作,调试的基本道克命令和工作流程.

运维与云

Find Skills

从开放的代理技能生态系统中发现并安装技能. 使用时:(1)用户问"我如何做X",X可能拥有现有技能,(2)用户说"为X找到技能"或"是否为X有技能",(3)用户问"你能否做X",X是专门能力,(4)用户想扩展代理能力,(5)用户想搜索工具,模板,或工作流程,(6)用户提到他们希望…

运维与云

Microsoft Foundry

构建,部署,评价,优化,微调,管理微软创始代理,模型,资源最终结束. 用法:铸造、azd ai代理、azd 提供/部署、托管代理脚手架/开发/运行/部署/拖放、即时代理创建、创建代理、更新代理、添加代理工具、援引代理、代理.yaml、评估代理、批量活化、连续活化、持续监测、代理C…

运维与云

Azure Deploy

执行已有.azure/部署计划.md和基础设施文件的ALREADY-PREPARED应用程序的Azure部署。 当用户向 CREATE 请求新应用程序时, 请不要使用此技能 。 这种技能运行了 azd上行, azd 部署, trarraform 应用, 和 az 部署命令带有内置…