跳到主内容
智客 ZICQ

技能库 智客分类:安全测试 firebase-firestore

Firebase Firestore

设置,管理,查询并配置Cloud Firestore数据库(标准/企业版),包括数据模型,安全规则,索引,以及SDK集成(Web,Python,iOS,Android,Flutter). 在创建/列出Firestore数据库,定义数据模型/索引,写入SDK查询,或整合Firestore SDK时使用. 不要用于火地主机,数据连接,Auth,存储/GCS,崩溃,函数,或大查询.

147579 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

建立、管理、查询和配置Cloud Firestore数据库(标准/企业版),包括数据模型、安全规则、索引和SDK集成(Web、Python、iOS、Android、Flutter)

何时用

创建/列出 Firestore 数据库,定义数据模型/索引,写入 SDK 查询,或整合 Firestore SDKs. 不要用于火地主机、数据连接、 Auth、 存储/ GCS、 崩溃、 函数或大查询

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Cloud Firestore Database and Operations、1. Instance Selection and Edition Detection、A. Instance Found、B. No Instance Found (or New Requested)、2. Specialized Guides、Standard Edition (`references/standard/`)。

文件分析

文件分析:除 SKILL.md 外,正文引用了 references/standard/、references/enterprise/、references/standard/provisioning.md、references/standard/web_sdk_usage.md、references/standard/android_sdk_usage.md、references/standard/ios_setup.md,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

Sets up, manages, queries, and configures Cloud Firestore databases (Standard/Enterprise edition), including data modeling, security rules, indexes, and SDK integrations (Web, Python, iOS, Android, Flutter). Use when creating/listing Firestore databases, defining data models/indexes, writing SDK queries, or integrating Firestore SDKs. Don't use for Firebase Hosting, Data Connect, Auth, Storage/GCS, Crashlytics, Functions, or BigQuery.

Cloud Firestore Database and Operations1. Instance Selection and Edition DetectionA. Instance FoundB. No Instance Found (or New Requested)2. Specialized GuidesStandard Edition (`references/standard/`)Enterprise Edition / Native Mode (`references/enterprise/`)

兼容:This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
firebase-firestore
description
Sets up, manages, queries, and configures Cloud Firestore databases (Standard/Enterprise edition), including data modeling, security rules, indexes, and SDK integrations (Web, Python, iOS, Android, Flutter). Use when creating/listing Firestore databases, defining data models/indexes, writing SDK queries, or integrating Firestore SDKs. Don't use for Firebase Hosting, Data Connect, Auth, Storage/GCS, Crashlytics, Functions, or BigQuery.
compatibility
This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 9
  • references/standard/
  • references/enterprise/
  • references/standard/provisioning.md
  • references/standard/web_sdk_usage.md
  • references/standard/android_sdk_usage.md
  • references/standard/ios_setup.md
  • references/standard/flutter_setup.md
  • references/standard/indexes.md
  • references/enterprise/provisioning.md

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「firebase-firestore」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-37e33b6051853537-%E7%81%AB%E7%82%89.html
请存为 .cursor/skills/firebase-firestore/SKILL.md 或 .claude/skills/firebase-firestore/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/firebase/agent-skills 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/firebase/agent-skills' --list

npx skills add 'https://github.com/firebase/agent-skills' --skill 'firebase-firestore'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: firebase-firestore description: >- Sets up, manages, queries, and configures Cloud Firestore databases (Standard/Enterprise edition), including data modeling, security rules, indexes, and SDK integrations (Web, Python, iOS, Android, Flutter). Use when creating/listing Firestore databases, defining data models/indexes, writing SDK queries, or integrating Firestore SDKs. Don't use for Firebase Hosting, Data Connect, Auth, Storage/GCS, Crashlytics, Functions, or BigQuery. compatibility: This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`. metadata: category: Databases --- # Cloud Firestore Database and Operations Before setting up dependencies, writing data models, or configuring security rules, you MUST always identify the Firestore instance edition. ## 1. Instance Selection and Edition Detection Run the following command to list current Firestore databases: `bash npx -y firebase-tools@latest firestore:databases:list` ### A. Instance Found 1. For each database found, inspect its edition and details: `bash npx -y firebase-tools@latest firestore:databases:get ` 1. Ask the user which database instance they wish to target or if they would prefer to create a new instance. 1. Once the target instance is established: - If the **`edition`** is `STANDARD`, follow the guides under `references/standard/`. - If the **`edition`** is `ENTERPRISE` or native mode, follow the guides under `references/enterprise/`. ### B. No Instance Found (or New Requested) If no databases exist or the user requests a new one, default to provisioning an **Enterprise** edition database and ask the user what location to use. Run `npx -y firebase-tools@latest firestore:locations` to get the list of options. Suggest colocating with other resources if applicable. Once the location is determined, create the database: `bash npx -y firebase-tools@latest firestore:databases:create --edition="enterprise" --location=""` Proceed with using the guides under `references/enterprise/`. ______________________________________________________________________ ## 2. Specialized Guides Based on the identified or created instance edition, open and read the corresponding reference guides: ### Standard Edition (`references/standard/`) - **Provisioning**: Read [provisioning.md](references/standard/provisioning.md) - **Security Rules**: See the `firestore-rules-creation` skill - **SDK Usage**: Read [web_sdk_usage.md](references/standard/web_sdk_usage.md), [android_sdk_usage.md](references/standard/android_sdk_usage.md), [ios_setup.md](references/standard/ios_setup.md), or [flutter_setup.md](references/standard/flutter_setup.md) - **Indexes**: Read [indexes.md](references/standard/indexes.md) ### Enterprise Edition / Native Mode (`references/enterprise/`) - **Provisioning**: Read [provisioning.md](references/enterprise/provisioning.md) - **Data Model**: Read [data_model.md](references/enterprise/data_model.md) - **Security Rules**: See the `firestore-rules-creation` skill - **SDK Usage**: > [!CRITICAL] **Mandatory Reference Reading** Before writing or modifying any > application code for Firestore Enterprise Edition, you **MUST** read at > least one of the relevant reference documents below for the target > platform/language to understand specific architectural requirements and > pipeline initialization patterns. Read [web_sdk_usage.md](references/enterprise/web_sdk_usage.md), [python_sdk_usage.md](references/enterprise/python_sdk_usage.md), [android_sdk_usage.md](references/enterprise/android_sdk_usage.md), [ios_setup.md](references/enterprise/ios_setup.md), or [flutter_setup.md](references/enterprise/flutter_setup.md) - **Indexes**: Read [indexes.md](references/enterprise/indexes.md)

相关技能

安全测试

Skill Vetter

人工智能特工的安全第一技能审查。 在安装来自 ClawdHub, GitHub 或其他来源的任何技能之前使用 。 检查红旗,许可范围,可疑图案.

安全测试

Moltguard

MoltGuard——由OpenGuardrails担任OpenClaw保安. 安装 MoltGuard 以保护你和你的人类免受迅速注射、数据过滤和恶意命令的影响。 资料来源:https://github.com/openguardrails/openguardrails/tre…

安全测试

Security Auditor

用于审查安全漏洞代码,实施认证流,审计OWASP Top 10,配置CORS/CSP头,处理秘密,输入验证,SQL注射预防,XSS保护,或任何与安全相关的代码审查.

安全测试

Skill Vetter

安装任何AI代理技能前的安全审查协议. 红旗侦取入证盗取,疏通密码,放出. 风险分类:低/中/高/高。 编制结构化审查报告。 不先运行此功能, 绝不安装不信任的技能 .