Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)22k · #10259

firebase-basics

Skill này làm gì

Skill này giúp bạn bắt đầu với công cụ dòng lệnh Firebase và các dự án Firebase. Skill dành cho lập trình viên ứng dụng cần thiết lập dự án trước khi xây dựng.

Khi nào nên dùng

  • ✓Khi bạn cần cài hoặc kiểm tra phiên bản Firebase CLI.
  • ✓Khi bạn muốn đăng nhập, tạo một dự án Firebase hoặc chuyển sang dự án khác.
  • ✓Khi bạn cần tải file cấu hình ứng dụng google-services.json hoặc GoogleService-Info.plist.

Liên kết skill

https://github.com/google/skills/blob/main/skills/cloud/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/google/skills/blob/main/skills/cloud/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

“Thiết lập Firebase CLI trên máy tính của tôi, đăng nhập giúp tôi, và tải file cấu hình cho ứng dụng Android của tôi.”

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

Cách hoạt động

Skill kiểm tra xem Firebase CLI đã được cài chưa, rồi đi qua các bước đăng nhập, dự án và cấu hình theo thứ tự. Skill cũng chỉ môi trường agent của bạn đến các skill Firebase khác.

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

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Prerequisites

Complete these setup steps before proceeding:

  1. Local Environment Setup: Verify the environment is properly set up so we can use Firebase tools:

  2. Authentication: Ensure you are logged in to Firebase so that commands have the correct permissions. 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.
  3. Active Project: Most Firebase tasks require an active project context.

    [!IMPORTANT] For Agents: Before proceeding with project configuration, you MUST pause and ask the developer if they prefer to:

    1. Provide an existing Firebase Project ID, or
    2. Create a new Firebase project.
    • If using an existing Project ID:

      1. Check the current project by running npx -y firebase-tools@latest use.
      2. If the command outputs Active Project: <project-id>, confirm with the user if this is the intended project.
      3. If not, or if no project is active, set the project provided by the user:
      npx -y firebase-tools@latest use <PROJECT_ID>
      
    • If creating a new project: Run the following command to create it:

      npx -y firebase-tools@latest projects:create <project-id> --display-name "<display-name>"
      

      Note: The <project-id> must be 6-30 characters, lowercase, and can contain digits and hyphens. It must be globally unique.

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.
  2. 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.
  3. 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.
  4. 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
Câu hỏi thường gặp

Skill có lưu trữ website của tôi không?

Không. Skill chỉ giới hạn ở đăng nhập CLI, tạo hoặc chuyển dự án và tải cấu hình ứng dụng.

Skill tải những file cấu hình nào?

google-services.json cho Android và GoogleService-Info.plist cho iOS.

Skill có cần Firebase MCP server không?

Skill kiểm tra xem MCP server đã được cài chưa và chỉ bạn đến hướng dẫn thiết lập cho agent.

Chi tiết

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

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.

repo: google/skills

Độ phổ biến

Sao GitHub
22k
Vị trí xếp hạng
#10259
Giấy phép
Apache-2.0
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ự