Skip to content
Back to skills

Firebase Operations

ASecurity

Performs Firebase Firestore operations. Use when querying collections, creating/updating/deleting documents, using batch writes, or working with Timestamps. Includes pagination, transactions, and security rules patterns.

  • 666 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 8, 2026
developmenttypescriptapisecurity

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill firebase-operations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Firebase Operations?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Firebase Operations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-firebase-operations/badge)](https://www.skillsdirectory.com/skills/majiayu000-firebase-operations)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: firebase-operations
description: Performs Firebase Firestore operations. Use when querying collections, creating/updating/deleting documents, using batch writes, or working with Timestamps. Includes pagination, transactions, and security rules patterns.
---

# Firebase Operations Skill

## Instructions

1. Import `getAdminDb, COLLECTIONS` from `@/lib/firebase-admin`
2. Use `Timestamp.now()` for timestamps
3. Convert to ISO string for API responses: `createdAt.toDate().toISOString()`
4. Use batch writes for multiple operations (max 500)
5. Use transactions for atomic operations

## Quick Reference

```typescript
import { getAdminDb, COLLECTIONS } from '@/lib/firebase-admin'
import { Timestamp, FieldValue } from 'firebase-admin/firestore'

// Get document
const doc = await db.collection(COLLECTIONS.PROJECTS).doc(id).get()

// Create with timestamps
const now = Timestamp.now()
await docRef.set({ ...data, createdAt: now, updatedAt: now })

// Update
await docRef.update({ field: value, updatedAt: Timestamp.now() })

// Increment counter
await docRef.update({ likes: FieldValue.increment(1) })
```

For complete operations (batch writes, transactions, pagination, queries), see [reference.md](reference.md).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.