Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问clear审计提醒

using-firebaseusing Firebase 命令行

Agent Skill

using-firebase 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

599

周安装

24

GitHub Stars

2

下载量

194
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:using-firebase(using Firebase 命令行)
来源仓库:https://github.com/spillwavesolutions/using-firebase
仓库路径:skills/using-firebase
安装命令:
npx skills add https://github.com/spillwavesolutions/using-firebase --skill using-firebase
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/spillwavesolutions/using-firebase --skill using-firebase

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • using-firebase 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Firebase Development Skill

Table of Contents

Quick Start

  1. New project: Run scripts/init_project.sh [project-id]
  2. Local development: Run scripts/start_emulators.sh
  3. Deploy: Run scripts/deploy.sh

Scope

Use this skill for: Firebase development including Firestore CRUD/queries, Cloud Functions (1st/2nd gen), Firebase CLI, emulator setup, security rules, authentication, hosting, and GCP integration.

Do not use for: Pure GCP without Firebase, AWS/Azure services, non-serverless architectures, self-hosted solutions, or complex relational queries (use Cloud SQL instead).

Task Navigation

TaskAction
Initialize Firebase projectscripts/init_project.sh
Start local emulatorsscripts/start_emulators.sh
Deploy to productionscripts/deploy.sh
Deploy functions onlyscripts/deploy_functions.sh
Set up Python functionspython scripts/setup_python_functions.py
Manage secretsscripts/manage_secrets.sh
Export Firestore datascripts/export_firestore.sh
Import Firestore datascripts/import_firestore.sh
TopicReference
CLI commandsreferences/cli-commands.md
Firestore CRUD, queries, modelingreferences/firestore.md
Cloud Functions triggersreferences/functions-triggers.md
Error handling, optimizationreferences/functions-patterns.md
Security rulesreferences/security-rules.md
Authenticationreferences/auth-integration.md
Hosting configurationreferences/hosting-config.md
GCP integrationreferences/gcp-integration.md

Scripts

For complete CLI reference, see references/cli-commands.md.

init_project.sh

Initialize Firebase project with Firestore, Functions, Hosting, Storage, Emulators.

./scripts/init_project.sh              # Interactive
./scripts/init_project.sh my-project   # Specific project

start_emulators.sh

Start emulator suite with data persistence.

./scripts/start_emulators.sh                    # Auto-persistence
./scripts/start_emulators.sh --debug            # Enable debugging
./scripts/start_emulators.sh --import ./backup  # Import data
./scripts/start_emulators.sh --only functions,firestore

deploy.sh

Deploy with safety confirmations.

./scripts/deploy.sh                     # Full deploy
./scripts/deploy.sh --dry-run           # Preview only
./scripts/deploy.sh --only hosting      # Specific target
./scripts/deploy.sh --force             # Skip confirmation

deploy_functions.sh

Deploy Cloud Functions with granular control.

./scripts/deploy_functions.sh                    # All functions
./scripts/deploy_functions.sh myFunction         # Single function
./scripts/deploy_functions.sh --codebase python  # Specific codebase

manage_secrets.sh

Manage Cloud Functions secrets for 2nd gen functions. Uses GCP Secret Manager for secure storage. Prefer this script over direct gcloud commands for Firebase-integrated secret management with proper function access binding.

Secret lifecycle: Create secrets before first deploy, update via set (creates new version), bind to functions via runWith({secrets: [...]}), and rotate by setting new values.

./scripts/manage_secrets.sh set API_KEY      # Set secret (creates or updates)
./scripts/manage_secrets.sh get API_KEY      # View metadata and versions
./scripts/manage_secrets.sh list             # List all project secrets
./scripts/manage_secrets.sh delete API_KEY   # Delete secret and all versions

export_firestore.sh / import_firestore.sh

Backup and restore Firestore data.

./scripts/export_firestore.sh --emulator              # From emulator
./scripts/export_firestore.sh --output gs://bucket    # Production to GCS
./scripts/import_firestore.sh --input ./data --emulator

setup_python_functions.py

Create Python Cloud Functions project.

python scripts/setup_python_functions.py --path python-functions --codebase python

Cloud Functions Generation

Use 2nd generation (recommended):

  • HTTP, Firestore, Storage, Scheduled, Pub/Sub triggers
  • Higher concurrency, longer timeouts

Use 1st generation only for:

  • Auth onCreate/onDelete triggers (not available in 2nd gen)

2nd Gen Example (TypeScript)

import { onDocumentCreated } from "firebase-functions/v2/firestore";
import { onRequest } from "firebase-functions/v2/https";

export const onUserCreated = onDocumentCreated("users/{userId}", (event) => {
  console.log("New user:", event.params.userId, event.data?.data());
});

export const api = onRequest({ cors: true }, (req, res) => {
  res.json({ status: "ok" });
});

1st Gen Auth Trigger

import * as functions from "firebase-functions/v1";

export const onUserCreate = functions.auth.user().onCreate((user) => {
  console.log("New user:", user.uid);
  return null;
});

See references/functions-triggers.md for all trigger types with TypeScript and Python examples.

Assets

FileUse
assets/firebase.json.templateCopy to firebase.json and customize
assets/firestore.rules.templateCopy to firestore.rules
assets/storage.rules.templateCopy to storage.rules
assets/tsconfig.functions.jsonCopy to functions/tsconfig.json

Common Workflows

New Project Setup

  1. Run scripts/init_project.sh
  2. Copy templates from assets/ directory
  3. Start emulators: scripts/start_emulators.sh

Add Python Functions

  1. Run python scripts/setup_python_functions.py
  2. Update firebase.json with provided config
  3. Deploy: scripts/deploy_functions.sh --codebase python

Security Rules Development

  1. Start with assets/firestore.rules.template
  2. Test with emulator
  3. Deploy: firebase deploy --only firestore:rules

See references/security-rules.md for patterns.

Production Deployment

  1. Set secrets: scripts/manage_secrets.sh set API_KEY
  2. Dry run: scripts/deploy.sh --dry-run
  3. Deploy: scripts/deploy.sh

Pre-Deployment Checklist

Before deploying to production, verify:

  • Security Rules: Tested rules in emulator, no open access patterns
  • Secrets: All required secrets configured via scripts/manage_secrets.sh list
  • Environment: Correct project selected (firebase use)
  • Functions: All functions tested locally with emulator
  • Indexes: Firestore indexes deployed (firebase deploy --only firestore:indexes)
  • Dry Run: scripts/deploy.sh --dry-run shows expected changes
  • App Check: Enabled for production apps (prevents abuse)
  • Billing: Budget alerts configured in GCP Console
  • Monitoring: Cloud Logging and Error Reporting enabled

Emulator Ports

ServicePort
Auth9099
Functions5001
Firestore8080
Storage9199
Hosting5000
UI4000

Key Decisions

Firestore Data Modeling

  • Embed data read together that rarely changes
  • Reference data that changes frequently or is shared
  • Subcollections for parent-child relationships
  • Root collections for cross-document queries

See references/firestore.md for patterns.

TypeScript vs Python Functions

  • TypeScript: JavaScript teams, Firebase client SDK integration
  • Python: ML/data science, Python ecosystem

Both can coexist via multiple codebases in firebase.json.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Antigravity

31.06%
按下载量换算60

Gemini CLI

22.57%
按下载量换算44

Claude Code

18.77%
按下载量换算36

OpenCode

12.15%
按下载量换算24

Cursor

7.45%
按下载量换算14

trae

3.92%
按下载量换算8

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills