firebase-basics 是什么?
firebase-basics 帮助Agent完成Firebase CLI基础接入:检查工具和登录状态、选择或创建项目,以及下载Android或iOS应用配置。它是项目上下文的准备流程,不是各项Firebase服务的通用部署教程。
中文说明由本站依据来源整理;英文原文保留在页面下方。
适合用在
- 首次配置Firebase CLI,切换项目,或取得Google应用配置文件。
这些情况不适合
- 直接部署Hosting、编写Firestore查询或接入Crashlytics;这些分别有对应Skill。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
firebase-basics,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 firebase-basics
请在 Codex 的当前工作环境中安装并检查 firebase-basics 这个 Skill。
项目身份:firebase/agent-skills / firebase-basics
来源:https://github.com/firebase/agent-skills/blob/99954a30898bb5ddc8152ee10e124dc3b4106bf7/skills/firebase-basics/SKILL.md
已定位的源文件:skills/firebase-basics/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 firebase-basics
请在 Claude Code 的当前工作环境中安装并检查 firebase-basics 这个 Skill。
项目身份:firebase/agent-skills / firebase-basics
来源:https://github.com/firebase/agent-skills/blob/99954a30898bb5ddc8152ee10e124dc3b4106bf7/skills/firebase-basics/SKILL.md
已定位的源文件:skills/firebase-basics/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 firebase-basics
请在 Cursor Agent 的当前工作环境中安装并检查 firebase-basics 这个 Skill。
项目身份:firebase/agent-skills / firebase-basics
来源:https://github.com/firebase/agent-skills/blob/99954a30898bb5ddc8152ee10e124dc3b4106bf7/skills/firebase-basics/SKILL.md
已定位的源文件:skills/firebase-basics/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 firebase-basics
请在 当前 Agent 的当前工作环境中安装并检查 firebase-basics 这个 Skill。
项目身份:firebase/agent-skills / firebase-basics
来源:https://github.com/firebase/agent-skills/blob/99954a30898bb5ddc8152ee10e124dc3b4106bf7/skills/firebase-basics/SKILL.md
已定位的源文件:skills/firebase-basics/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 准备Node/npm环境、Firebase账号及明确的Project ID;完整Skill目录需包含local-env-setup和对应Agent环境参考。
会得到什么
- 明确的登录用户、选中项目与应用配置文件,及仍缺少的环境条件。
实际使用顺序
- 按来源先读本地环境参考,运行
npx -y firebase-tools@latest --version和login:list检查工具与身份。 - 未登录时用CLI登录;远程终端不能回调本地浏览器时采用
login --no-localhost。核对既有项目,不因目录里有配置就假定目标正确。 - 已有项目用
use选择;需要新项目时确定名称和全局唯一ID后再创建。Android/iOS配置使用apps:sdkconfig获取,写入真实工程需要的位置。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
用 firebase-basics 检查我当前目录的Firebase CLI和登录状态。我会提供现有Project ID,请核对后选择该项目,并列出Android应用配置的取得方式。先不要创建项目、部署服务或覆盖已有配置;缺少上下文就报告真实缺项。预期CLI身份、项目和应用对应关系清楚;本站未执行此教学任务。
使用条件与边界
- 来源要求按实际Agent环境读取不同参考,不应把某个平台的安装路径复制给所有客户端。
- 配置文件下载不代表相应Firebase服务已经启用。
常见问题
浏览器打不开,如何登录?
来源提供login --no-localhost路线,按终端给出的交互认证操作;不能把无法打开浏览器当作已登录。
GoogleService-Info.plist就是服务启用吗?
不是。它是应用配置;具体Auth、AI Logic等服务仍要按各自流程配置或开通。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-19T19:32:10.677Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
skills/firebase-basics/SKILL.md · 抓取时间 2026-11-19T19:32:10.677Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Provides foundational Firebase CLI setup, CLI installation, version checks (`firebase-tools@latest --version`), CLI login (including --no-localhost), project creation, project selection (`firebase use`), and app config file downloads (`google-services.json`, `GoogleService-Info.plist`). Use ONLY for CLI login, project creation/switching, or downloading app config files. Don't use for Firebase Hosting deploy, Firestore, Auth, App Hosting, Data Connect, Crashlytics, or Remote Config.
查看源文件章节 / Source sections
- 前置条件 / Prerequisites
- 原文:Firebase Usage Principles
- 原文:References
- 原文:Common Issues
前置条件 / Prerequisites
Complete these setup steps before proceeding: 1. **Local Environment Setup:** Verify the environment is properly set up so we can use Firebase tools: - Run `npx -y firebase-tools@latest --version` to check if the Firebase CLI is installed. - Verify if the Firebase MCP server is installed using your existing tools. - **CRITICAL**: Before configuring any extensions or agent environments below, you MUST read [references/local-env-setup.md](references/local-env-setup.md). - **DO NOT SKIP** this step: if 'firebase-basics' is the only Firebase skill available to you, you must follow the reference for your agent environment to set up the full suite of Firebase skills: - **Gemini CLI**: Review [references/setup/gemini_cli.md](references/setup/gemini_cli.md) - **Antigravity**: Review [references/setup/antigravity.md](references/setup/antigravity.md) - **Android Studio**: Review [references/setup/android_studio.md](references/setup/android_studio.md) - **Claude Code**: Review [references/setup/claude_code.md](references/setup/claude_code.md) - **Cursor**: Review [references/setup/cursor.md](references/setup/cursor.md) - **GitHub Copilot**: Review [references/setup/github_copilot.md](references/setup/github_copilot.md) - **Other Agents**: Review [references/setup/other_agents.md](references/setup/other_agents.md) 1. **Authentication:** Ensure you are logged in to Firebase so that commands have the correct permissions. Run `npx -y firebase-tools@latest login:list` first; if not logged in, run `npx -y firebase-tools@latest login`. For environments without a browser (e.g., remote shells), use `npx -y firebase-tools@latest login --no-localhost`. - The command should output the current user. - If you are not logged in, follow the interactive instructions from this command to authenticate. 1. **Active Project:** Most Firebase tasks require an active project context.
本段为节选,完整内容见源文件。
原文:Firebase Usage Principles
Adhere to these principles: 1. **Use npx for CLI commands:** To ensure you always use the latest version of the Firebase CLI, always prepend commands with `npx -y firebase-tools@latest` instead of just `firebase`. For example, use `npx -y firebase-tools@latest --version`. NEVER suggest the naked `firebase` command as an alternative. 1. **Prioritize official knowledge:** For any Firebase-related knowledge, consult the `developerknowledge_search_documents` MCP tool before falling back to Google Search or your internal knowledge base. Including "Firebase" in your search query significantly improves relevance. 1. **Follow Agent Skills for implementation guidance:** Skills provide opinionated workflows (CUJs), security rules, and best practices. Always consult them to understand *how* to implement Firebase features correctly instead of relying on general knowledge. 1. **Use Firebase MCP Server tools instead of direct API calls:** Whenever you need to interact with remote Firebase APIs (such as fetching Crashlytics logs or executing Data Connect queries), use the tools provided by the Firebase MCP Server instead of attempting manual API calls. 1. **Keep Plugin / Agent Skills updated:** Since Firebase best practices evolve quickly, regularly check for and install updates to their Firebase plugin or Agent Skills. Similarly, if you encounter issues with outdated tools or commands, follow the steps below based on your agent environment: - **Antigravity**: Follow [references/refresh/antigravity.md](references/refresh/antigravity.md) - **Gemini CLI**: Follow [references/refresh/gemini-cli.md](references/refresh/gemini-cli.md) - **Claude Code**: Follow [references/refresh/claude.md](references/refresh/claude.md) - **Cursor**: Follow [references/refresh/other-agents.md](references/refresh/other-agents.md) - **Android Studio**: Follow [references/refresh/android_studio.md](references/refresh/android_studio.md) - **Others**: Follow [references/refresh/other-agents.md](references/refresh/other-agents.md) 1. **Automate Config File Retrieval:** When setting up iOS or Android apps, do
本段为节选,完整内容见源文件。
原文:References
- **Initialize Firebase:** See [references/firebase-service-init.md](references/firebase-service-init.md) when you need to initialize new Firebase services using the CLI. - **Exploring Commands:** See [references/firebase-cli-guide.md](references/firebase-cli-guide.md) to discover and understand CLI functionality. - **SDK Setup:** For detailed guides on adding Firebase to your app: - **Web**: See [references/web_setup.md](references/web_setup.md) - **Android**: See [references/android_setup.md](references/android_setup.md) - **iOS**: See [references/ios_setup.md](references/ios_setup.md)
原文:Common Issues
- **Login Issues:** If the browser fails to open during the login step, use `npx -y firebase-tools@latest login --no-localhost` instead. - **Genkit:** If using Genkit, install the skills: ```bash npx skills add genkit-ai/skills ```
文件 SHA256:8616611d26f9192a00667ed501d766ce3239e3ae085fd43013c33267c01bb609
仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。
Provides foundational setup, authentication, and project management workflows for Firebase using the Firebase CLI. Use when checking Firebase CLI version (must…
这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。
历史收录数据
| Skill标识 | firebase-basics |
|---|---|
| 来源仓库 | firebase/agent-skills |
| 榜单快照 | 2026-07-28 |
| 榜单口径 | Skills.sh累计安装量 |
| 快照名次 | 205 |
| 快照累计安装量 | 116177 |
历史资料说明
- 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
- 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。
此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。
