Token导航 LogoToken导航

Agent Skill · 效率

firestore(firestore 命令行)

firestore 用于处理数据库查询、表结构、迁移和数据维护任务,适合在 OpenClaw 中需要分析 schema、编写 SQL 或排查数据问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

firestore 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 6,059。

总安装 9,866周安装 407GitHub Stars 公开资料未说明下载 3,223核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.4

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install firestore

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

Firestore 工具通过 REST API 管理 Google Cloud Firestore 数据库。支持 CRUD 操作与 gcloud 令牌身份验证,适用于 NoSQL 数据维护。通过 clawhub 安装并使用 openclaw skills install firestore 命令部署。

需确保 gcloud 已登录并具有目标数据库读写权限,注意生产环境安全。firestore 属于效率类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install firestore;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

firestore 怎么安装?

在终端执行 openclaw skills install firestore。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

firestore 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

firestore 需要什么权限?

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

firestore 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

firestore 用的人多吗?

公开数据是累计安装 9,866 次,近一周安装 407 次,下载 3,223 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

firestore 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
firestore

firestore 命令行 · 本页

9,866—接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
firestore
description
Manage Google Cloud Firestore databases using the Firestore REST API via curl commands. Authenticate using gcloud CLI tokens to perform CRUD operations on documents and collections.
user-invocable
true
disable-model-invocation
true
metadata
{"clawdbot":{"emoji":"🔥","requires":{"bins":["curl","gcloud"]},"install":[{"id":"gcloud-sdk","kind":"manual","url":"https://docs.cloud.google.com/sdk/docs/install-sdk","bins":["gcloud"],"label":"Install Google Cloud CLI (official)"}]}}

Firestore

Manage Google Cloud Firestore databases via REST API

This skill is built on top of the official Firebase Firestore REST API reference documentation: https://firebase.google.com/docs/firestore/reference/rest

It enables you to interact with Google Cloud Firestore using the Firestore REST API through curl commands. It uses gcloud auth print-access-token to obtain authentication tokens, allowing you to perform Create, Read, Update, and Delete (CRUD) operations on Firestore documents and collections.

For related documentation:

Requirements

This skill requires curl and gcloud CLI.

For full installation and setup instructions, see installation.md.

Credentials & Environment

This skill uses OAuth 2.0 access tokens generated by gcloud auth print-access-token. The token is valid for a limited time (typically 1 hour) and inherits the permissions of the authenticated Google Cloud account.

This skill must run only with a dedicated service account context. Do not use personal user credentials or broad admin identities.

Before any operation, generate a fresh access token:

ACCESS_TOKEN=$(gcloud auth print-access-token)

Before any operation, verify the active identity is a service account:

gcloud config list --format='text(core.account,core.project)'

If the active account is not a service account (for example, it does not end with gserviceaccount.com), stop and ask the user to switch credentials before proceeding.

Security Recommendations:

  • Use a dedicated, least-privilege service account for automation tasks. Never use your personal or admin account.
  • Test in a sandbox or development project before running commands against production.
  • Verify your active project with gcloud config list before executing commands.
  • Tokens expire after approximately 1 hour — regenerate if you encounter 401 Unauthorized errors.
  • The token inherits ALL permissions of the authenticated account, including read access to sensitive data.
  • Revoke tokens immediately if you suspect unauthorized access: gcloud auth revoke
  • Audit activity regularly by reviewing Cloud Audit Logs for the project.

Security Considerations

Important: This skill can access Firestore data with the same permissions as the authenticated Google Cloud account. For safety, this skill requires explicit user approval before executing any operation, including read-only operations.

To minimize risk:

  1. Only use this skill with service accounts that have the minimum required Firestore permissions
  2. Use separate projects for development/testing and production environments
  3. Review the gcloud config list output before allowing any operations
  4. Grant only roles/datastore.viewer for read-only access or roles/datastore.user for limited read/write
  5. Never use roles/datastore.owner or roles/owner with this skill
  6. Monitor Cloud Audit Logs for unexpected Firestore API calls

What You Can Do

You can perform the following operations on Firestore databases:

  • Create — Insert new documents into collections
  • Read — Query documents with filters and conditions
  • Update — Modify specific fields in existing documents using updateMask
  • Delete — Remove documents from collections
  • List — Retrieve all documents in a collection
  • Batch operations — Perform multiple writes in a single atomic transaction

All operations use the Firestore REST API endpoint:

https://firestore.googleapis.com/v1/projects/{PROJECT_ID}/databases/{DATABASE_ID}/documents

Workflow

Before executing any Firestore operation, you MUST follow this workflow:

  1. Check active context — Run gcloud config list --format='text(core.account,core.project)' to display the active account and project. Present this to the user so they are aware of which credentials and project will be used.
  1. Generate access token — Always start by obtaining a fresh access token:
   ACCESS_TOKEN=$(gcloud auth print-access-token)
  1. Construct the curl command — Build the appropriate curl command based on the operation:

- Use the correct HTTP method (POST for create/query, GET for read, PATCH for update, DELETE for delete) - Include the Authorization: Bearer $ACCESS_TOKEN header - Set Content-Type: application/json for requests with body - Use the correct API endpoint for the project and collection

  1. For all operations (read and write) — Present the full curl command to the user and wait for explicit approval before executing. See the Approval Policy section below.
  1. Execute the command and parse the JSON response.

Important Rules

  • Always generate a fresh token first — Run ACCESS_TOKEN=$(gcloud auth print-access-token) before any operation.
  • Use proper JSON formatting — Firestore requires specific field value types (stringValue, booleanValue, integerValue, etc.).
  • Document ID generation — When creating documents, if you don't specify ?documentId=YOUR_ID in the URL, Firestore will automatically generate a unique document ID.
  • Include field paths in updateMask — When updating, use updateMask.fieldPaths to specify which fields to update.
  • Never execute any command autonomously — always present the full curl command to the user and wait for explicit approval before running it, including read-only operations.
  • Parse responses carefully — Firestore returns data in a nested format with typed values.
  • Verify project ID — Always confirm you're targeting the correct project before executing commands.

Approval Policy

All operations require explicit user confirmation before execution.

This includes:

  • Create — Creating new documents in collections
  • Read / Query / Get / List — Retrieving documents or query results
  • Update / Patch — Modifying existing document fields
  • Delete — Removing documents permanently
  • Batch writes — Any batch operation that modifies data

For every operation, the agent must:

  1. Show the full curl command that will be executed.
  2. Display the active account and project context.
  3. Wait for the user to explicitly approve before running the command.

Firestore Data Types

Firestore uses typed field values in JSON. Common types:

  • stringValue — Text strings
  • integerValue — Integer numbers (as strings)
  • doubleValue — Floating-point numbers
  • booleanValue — true/false
  • timestampValue — ISO 8601 timestamps
  • arrayValue — Arrays of values
  • mapValue — Nested objects

Example document structure:

{
  "fields": {
    "name": { "stringValue": "John Doe" },
    "age": { "integerValue": "30" },
    "active": { "booleanValue": true }
  }
}

Few-Shot Prompting Examples

Few-shot prompts and full command examples are available in examples.md.

Common Query Operators

When constructing queries, use these operators in the fieldFilter.op field:

  • EQUAL — Field equals value
  • NOT_EQUAL — Field does not equal value
  • LESS_THAN — Field is less than value
  • LESS_THAN_OR_EQUAL — Field is less than or equal to value
  • GREATER_THAN — Field is greater than value
  • GREATER_THAN_OR_EQUAL — Field is greater than or equal to value
  • ARRAY_CONTAINS — Array field contains value
  • IN — Field value is in the provided array
  • ARRAY_CONTAINS_ANY — Array field contains any of the provided values

Troubleshooting

For dedicated troubleshooting guidance, see troubleshooting.md.

平台分布

OpenClaw

97.68%
按下载量换算3,148

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills