home / skills / jeremylongshore / claude-code-plugins-plus-skills / firestore-index-creator

firestore-index-creator skill

/skills/14-gcp-skills/firestore-index-creator

This skill helps streamline firestore index creation by providing step-by-step guidance, production-ready configurations, and validation aligned with best

npx playbooks add skill jeremylongshore/claude-code-plugins-plus-skills --skill firestore-index-creator

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
2.1 KB
---
name: "firestore-index-creator"
description: |
  Create firestore index creator operations. Auto-activating skill for GCP Skills.
  Triggers on: firestore index creator, firestore index creator
  Part of the GCP Skills skill category. Use when working with firestore index creator functionality. Trigger with phrases like "firestore index creator", "firestore creator", "firestore".
allowed-tools: "Read, Write, Edit, Bash(gcloud:*)"
version: 1.0.0
license: MIT
author: "Jeremy Longshore <[email protected]>"
---

# Firestore Index Creator

## Overview

This skill provides automated assistance for firestore index creator tasks within the GCP Skills domain.

## When to Use

This skill activates automatically when you:
- Mention "firestore index creator" in your request
- Ask about firestore index creator patterns or best practices
- Need help with google cloud platform skills covering compute, storage, bigquery, vertex ai, and gcp-specific services.

## Instructions

1. Provides step-by-step guidance for firestore index creator
2. Follows industry best practices and patterns
3. Generates production-ready code and configurations
4. Validates outputs against common standards

## Examples

**Example: Basic Usage**
Request: "Help me with firestore index creator"
Result: Provides step-by-step guidance and generates appropriate configurations


## Prerequisites

- Relevant development environment configured
- Access to necessary tools and services
- Basic understanding of gcp skills concepts


## Output

- Generated configurations and code
- Best practice recommendations
- Validation results


## Error Handling

| Error | Cause | Solution |
|-------|-------|----------|
| Configuration invalid | Missing required fields | Check documentation for required parameters |
| Tool not found | Dependency not installed | Install required tools per prerequisites |
| Permission denied | Insufficient access | Verify credentials and permissions |


## Resources

- Official documentation for related tools
- Best practices guides
- Community examples and tutorials

## Related Skills

Part of the **GCP Skills** skill category.
Tags: gcp, bigquery, vertex-ai, cloud-run, firebase

Overview

This skill automates creation and validation of Firestore composite index configurations for Google Cloud projects. It guides you through index definitions, generates production-ready index.yaml/json entries, and checks for common configuration errors. Use it to speed up index setup and ensure best practices for query performance and cost control.

How this skill works

It inspects your requested query patterns or provided schema and generates the required Firestore index entries in the correct format. It validates configurations against common constraints, highlights missing fields or permission issues, and can produce ready-to-deploy index files. The skill also offers step-by-step instructions to deploy indexes via gcloud or Firebase CLI.

When to use it

  • You need composite indexes for complex Firestore queries (orderBy + where combinations).
  • When preparing index configuration files for deployment or CI pipelines.
  • If you want auto-generated index entries from query examples or schema definitions.
  • When validating index files for missing fields, syntax errors, or permission problems.
  • While optimizing queries to reduce costs and improve latency.

Best practices

  • Define indexes only for queries you run in production to limit costs and index size.
  • Keep index definitions explicit and version-controlled alongside application code.
  • Validate index files locally before deploying using provided checks or emulator testing.
  • Use descriptive names and comments in generated configuration for team clarity.
  • Deploy indexes in stages and monitor build progress to catch permission or quota issues early.

Example use cases

  • Generate composite index entries from a list of common query patterns and export index.yaml for Firebase CLI.
  • Validate an existing index.json for missing fields, invalid directions, or unsupported field types.
  • Produce a deployment-ready index file and step-by-step gcloud/fb CLI commands for CI integration.
  • Recommend index changes to improve a slow query by analyzing its filters and sort order.
  • Troubleshoot permission-denied errors with guidance on required IAM roles and how to obtain them.

FAQ

Can this skill deploy indexes automatically?

I can generate deployment commands and files; explicit deployment requires correct credentials and running the gcloud or Firebase CLI in your environment.

What permissions are needed to create Firestore indexes?

You need roles that allow index management, such as roles/datastore.indexAdmin or a custom role with index create/update permissions. I can point out missing permissions if deployment fails.