Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)33k · #8757

firebase-basics

Skill này làm gì

Skill này giúp AI của bạn thiết lập và xây dựng dự án dùng Firebase, nền tảng ứng dụng của Google. Nó dành cho lập trình viên làm ứng dụng web hoặc di động muốn dùng các dịch vụ như hosting hoặc cơ sở dữ liệu.

Khi nào nên dùng

  • ✓Khi bạn bắt đầu một ứng dụng web hoặc di động mới nên dùng Firebase.
  • ✓Khi bạn cần thiết lập Firebase CLI và kết nối nó với một dự án.
  • ✓Khi bạn muốn thêm một dịch vụ Firebase, chẳng hạn cơ sở dữ liệu hoặc đăng nhập, vào ứng dụng.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/firebase-basics/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy thiết lập Firebase trong ứng dụng React của tôi với hosting và cơ sở dữ liệu Firestore.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent trước tiên kiểm tra Node.js và npm đã được cài chưa, rồi cài các agent skill của Firebase để dùng các mẫu hiện đại. Sau đó nó cấu hình dự án và kết nối các dịch vụ Firebase bạn cần.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Tôi có cần Node.js trước không?

Có. Skill kiểm tra npm và yêu cầu bạn cài phiên bản LTS của Node.js nếu thiếu.

Agent có cài thêm gì khác không?

Nó cài các agent skill của Firebase để theo các mẫu Firebase cập nhật.

Nó có chờ tôi làm gì không?

Có. Nếu bạn cần cài Node.js, agent sẽ đợi bạn xác nhận trước khi tiếp tục.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
33k
Vị trí xếp hạng
#8757
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự