firestore

Query and manage Google Firestore databases via TypeScript scripts or REST API.

2|1|Updated Jul 19, 2024
One-click install
npx skills add https://github.com/TeamDay-AI/agents --skill firestore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firestore
Source: https://github.com/TeamDay-AI/agents/tree/main/skills/teamday/firestore
Command: npx skills add https://github.com/TeamDay-AI/agents --skill firestore

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires firebase-admin, and includes scripts (resource) components.

What problem does it solve?

Firestore data management and queries are made easy through scripted helpers and REST access, enabling automated data workflows.

Core Features & Use Cases

  • TypeScript scripts for listing collections, getting documents, and executing queries.
  • REST API access as an alternative when Bun/Node is unavailable.
  • Real-world use: audit Firestore data, bulk update documents, or synchronize data across environments.

Quick Start

Use the included TypeScript scripts in the scripts directory with bun to list collections, fetch documents, and run queries, or access the REST API via curl when Bun is not available.

Frequently Asked Questions about firestore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query and manage Firestore data using TypeScript scripts?

You can query and manage Firestore data by running Bun-based TypeScript scripts that list collections, fetch documents, and execute simple queries using the firebase-admin SDK. This approach enables automated data workflows like auditing or synchronizing data across environments.

Can I access Firestore via REST API when Node or Bun is unavailable?

Yes, Firestore REST API access is supported as an alternative when Bun or Node is unavailable. You can use curl to interact with your Firebase project and run queries directly against your Firestore database without needing a local JavaScript runtime.

What environment variables do I need to run Firestore queries with the admin SDK?

To run Firestore queries programmatically, you need to set the GOOGLE_APPLICATION_CREDENTIALS_JSON and FIREBASE_PROJECT_ID environment variables. These provide the authentication credentials and project identifier required by the firebase-admin SDK.

What is the best way to bulk update documents in a Firestore database?

The best way to bulk update documents in Firestore is by using scripted TypeScript helpers. These scripts leverage the firebase-admin SDK to programmatically fetch, modify, and write documents, enabling automated data workflows across environments.

Does this approach support listing all collections in a Firebase project?

Yes, listing collections is a core feature. The TypeScript scripts provided can list all collections within your Firestore database, allowing you to audit data structures or identify targets for bulk updates and synchronization tasks.

When should I use Firestore scripts versus direct REST API calls?

Use Firestore scripts when you have a Bun or Node environment available for structured data workflows. Use REST API calls when you need lightweight access or are operating in an environment where installing Node dependencies is not possible.