F

firebase-basics

by @firebasev1.0.0
4.0(0)

演示Firebase的核心原理和基本工作流程,帮助用户快速入门云服务。

FirebaseBaaS (Backend as a Service)Cloud FunctionsRealtime DatabaseFirestoreGitHub
安装方式
npx skills add firebase/agent-skills --skill firebase-basics
compare_arrows

Before / After 效果对比

1
使用前

初次接触Firebase时,开发者常对核心概念和工作流程感到困惑。难以快速上手,导致云应用开发效率低下,项目进展缓慢。

使用后

此技能清晰阐述Firebase的核心原理和工作流程。它帮助开发者快速理解并运用Firebase各项服务,从而高效构建和部署云端应用。

description SKILL.md


name: firebase-basics description: This skill demonstrates the core principles and workflow of using Firebase with AI agents.

Prerequisites

Make sure you follow firebase-local-env-setup skill first. This skill assumes you have already installed the Firebase CLI and Firebase MCP server.

Core Workflow

1. Authentication

Log in to Firebase:

npx -y firebase-tools@latest login
  • This opens a browser for authentication.
  • For environments where localhost is not available (e.g., remote shell), use npx -y firebase-tools@latest login --no-localhost.

2. Creating a Project

To create a new Firebase project from the CLI:

npx -y firebase-tools@latest projects:create

You will be prompted to:

  1. Enter a Project ID (must be unique globally).
  2. Enter a display name.

3. Initialization

Initialize Firebase services in your project directory:

mkdir my-project
cd my-project
npx -y firebase-tools@latest init

The CLI will guide you through:

  • Selecting features (Firestore, Functions, Hosting, etc.).
  • Associating with an existing project or creating a new one.
  • Configuring files (firebase.json, .firebaserc).

Exploring Commands

The Firebase CLI documents itself. Instruct the user to use help commands to discover functionality.

  • Global Help: List all available commands and categories.

    npx -y firebase-tools@latest --help
    
  • Command Help: Get detailed usage for a specific command.

    npx -y firebase-tools@latest [command] --help
    # Example:
    npx -y firebase-tools@latest deploy --help
    npx -y firebase-tools@latest firestore:indexes --help
    

SDK Setup

Detailed guides for adding Firebase to your app:

Common Issues

  • Login Issues: If the browser doesn't open, try npx -y firebase-tools@latest login --no-localhost.

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量1.5K
评分4.0 / 5.0
版本1.0.0
更新日期2026年3月16日
对比案例1 组

用户评分

4.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月16日
最后更新2026年3月16日