跳到正文
Skillpedia
API 与服务器(后端)33k · #8757

firebase-basics

它能做什么

这个技能帮你的 AI 智能体设置和构建使用 Firebase(Google 的应用平台)的项目。适合开发网页或移动应用、并希望使用托管或数据库等 Firebase 服务的开发者。

适用场景

  • ✓当你开始一个应该使用 Firebase 的新网页或移动应用时。
  • ✓当你需要设置 Firebase CLI 并将其连接到项目时。
  • ✓当你想为应用添加 Firebase 服务,例如数据库或登录时。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/firebase-basics/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/firebase-basics/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在我的 React 应用中设置 Firebase,包括托管和一个 Firestore 数据库。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体首先检查是否安装了 Node.js 和 npm,然后安装 Firebase 智能体技能,以便使用最新的模式。之后它会配置项目,并连接你需要的 Firebase 服务。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Firebase Basics

CRITICAL Mandatory prerequisites

Before attempting to fulfill any user request regarding Firebase, you MUST follow these steps in order. Do not proceed to implementation until these are completed. Failure to follow these instructions may result in using outdated patterns and lack of access to essential reference materials.

  1. Leverage the planning phase

    If you use a planning mode (e.g., maintaining a task.md file), you MUST include a task to check and install firebase/agent-skills as your very first item.

  2. Ensure NPM is installed.

    ## Check if NPM is installed
    npm --version
    

    If NPM is not installed, guide the user to download and install the LTS version from https://nodejs.org/en/download.

    Then, request the user to manually install Node.js and to reply with a confirmation that the installation is finished. Stop and wait for the user's confirmation.

  3. Verify and install Agent Skills for Firebase

    You MUST ensure the full set of skills is installed to avoid using outdated patterns. Run this command:

    npx -y skills add firebase/agent-skills -y
    

    If the skills are already installed, this command will ensure they are up to date. Do not skip this step.

Quick start

After completing the mandatory prerequisites above, proceed with these steps to set up your environment:

  1. Log in to the Firebase CLI.

    Run this command:

    npx -y firebase-tools@latest login
    

    Then, ask the user to complete the login flow in the browser.

  2. Set an active project for the CLI.

    Most Firebase tasks require an active project context. Check the current project for the Firebase CLI by running this command:

    npx -y firebase-tools@latest use
    
    • If the command outputs Active Project: <PROJECT_ID>, you can proceed with your task.

    • If the command does not output an active project, ask the user if they have an existing Firebase project ID.

      • If yes: Set the ID as the active project and add a default alias by running:

        npx -y firebase-tools@latest use --add <PROJECT_ID>
        
      • If no: Create a new Firebase project by running:

        npx -y firebase-tools@latest projects:create <PROJECT_ID> --display-name <DISPLAY_NAME>
        

Reference directory

If you need product information that's not found in these references, check the other skills for Firebase that you have installed, or use the search_documents tool of the Developer Knowledge MCP server.

常见问题

我需要先安装 Node.js 吗?

需要。该技能会检查 npm,如果缺少,会请你安装 Node.js 的 LTS 版本。

智能体还会安装别的东西吗?

它会安装 Firebase 智能体技能,以便遵循最新的 Firebase 模式。

它会等待我的输入吗?

会。如果你需要安装 Node.js,智能体会等你确认后再继续。

详情

作者的原始描述

Sets up and develops projects using Firebase products and services, especially for mobile or web apps. Covers Firebase CLI setup, project configuration, and integration with Firebase platform services.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8757
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能