Skip to main content
skill CX Codex

firebase-development — Claude Code skill: setup and guidelines

Guides AI agents through Firebase patterns for Firestore, Authentication, Functions, and Storage when writing TypeScript and Angular code.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Mindrally/skills --skill firebase-development -a claude-code
Open on GitHub

What firebase-development does

This skill provides architecture rules for Firebase applications. It organizes code into feature folders with dedicated services and components, keeping separate configurations for staging and production environments. For Firestore, the agent isolates database logic into dedicated collection services and relies on transactions or batch operations to keep data consistent.

The instructions cover backend logic in Cloud Functions and file handling in Storage. File transfers must use signed URLs with centralized key definitions. Naming follows strict rules: camelCase for methods, kebab-case for file paths, PascalCase for classes, and plural nouns for Firestore collections.

Because the guidelines target Angular and TypeScript projects, suggestions regarding UI components and pipes will not fit backend-only Node.js or React setups. The instructions also enforce unit testing for security rules and offline data persistence.

What it helps with

  • structure Firestore collections and dedicated services by feature
  • implement typed serverless logic in Cloud Functions
  • secure file transfers in Firebase Storage using signed URLs
  • write unit tests for Firestore security rules and offline persistence

Example prompts for the agent

  • Create a Firestore service for bookings with transaction support and cursor pagination.
  • Write a typed Cloud Function for user registration with centralized error logging.
  • Set up Firestore security rules and write tests to verify access control.

How to install firebase-development

1Skills CLI (Vercel)

npx skills add Mindrally/skills --skill firebase-development -a claude-code

2Manually: put the files in place

~/.claude/skills/firebase-development/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/firebase-development/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about firebase-development

How to install firebase-development in Claude Code?

Run npx skills add Mindrally/skills --skill firebase-development -a claude-code. The skill file will be placed at ~/.claude/skills/firebase-development/SKILL.md.

What does the firebase-development skill do?

It provides engineering guidelines for Firebase services like Firestore, Cloud Functions, Authentication, and Storage within TypeScript and Angular projects.

What naming conventions does this skill enforce?

Files use kebab-case, classes use PascalCase, and variables use camelCase. Collections must be plural nouns, while booleans require prefixes like is, has, or should.

Source text

SKILL.md · Apache-2.0
---
name: firebase-development
description: Firebase development guidelines for Firestore, Authentication, Functions, and Storage with TypeScript and Angular.
metadata:
  maintainer: Mindrally
  source: https://github.com/Mindrally/skills
---

# Firebase Development

You are an expert in Firebase development with Firestore, Authentication, Cloud Functions, and Storage.

## Project Structure

- Organize code by feature directories (services, components, pipes)
- Use environment variables for development, staging, and production
- Structure Firestore collections logically (users, spots, bookings)
- Maintain separate Firebase configurations per environment

## Code Organization Best Practices

- Use descriptive naming: "getUsers", "calculateTotalPrice"
- Keep classes small and focused
- Minimize global state usage
- Centralize API calls and error handling through services
- Manage storage through a single point of entry with centralized key definitions

## Firebase-Specific Patterns

### Firestore
- Create dedicated services for each Firestore collection type
- Implement centralized Firebase error handling
- Use transactions for data consistency
- Apply Firebase security rules for data protection

### Cloud Functions
- Leverage Firebase Functions for serverless backend logic
- Implement proper error handling and logging
- Use typed function parameters and responses

### Storage
- Handle file uploads/downloads via Firebase Storage
- Implement proper access control
- Use signed URLs for secure file access

### Authentication
- Manage user identity through Firebase Authentication
- Implement proper session management
- Handle auth state changes reactively

## Naming Conventions

- **camelCase**: functions and variables
- **kebab-case**: file names (user-service.ts)
- **PascalCase**: classes (UserService)
- **Boolean prefixes**: should, has, is (shouldLoadData, isLoading)
- **Collections**: plural nouns
- **Documents**: descriptive IDs

## Performance Optimization

- Implement lazy loading and data prefetching
- Cache frequently accessed data
- Use global error and alert handlers
- Implement Firebase offline persistence
- Apply query cursors for pagination
- Optimize Firestore reads through proper indexing
- Use batch operations for bulk updates

## Testing Requirements

- Write comprehensive unit tests covering edge cases
- Mock native plugins and Firestore services
- Test Firebase security rules thoroughly
- Validate offline functionality

© Mindrally · Apache-2.0 · Mindrally/skills

Similar skills

All skills for Cloud: AWS, Azure, GCP →

From the same set236

monitoring-guidelines A skill providing guidelines for application and infrastructure monitoring, SLO burn rates, and symptom-based alerting strategies. CX Codex +1 694installs monorepo A skill that hands your agent a rulebook for monorepos built on TypeScript, React, Next.js and Expo with Turbo. Useful when several apps and shared packages live in one repo. CX Codex +1 694installs less-best-practices This skill guides coding assistants on Less architecture, modular project layout, variable scales, and reusable mixins. Keep stylesheet specificity low and maintainable. CX Codex +1 692installs llamaindex-development Guides coding assistants in building Python RAG applications with LlamaIndex. Helps generate document parsers, vector indexes, and query engines. CX Codex +1 691installs meta-prompt A skill with meta-prompting templates that critique model responses, walk through a solution path and give it a score. Handy when you need to check answer quality. CX Codex +1 691installs localization-l10n Guides AI coding assistants through localization best practices. It helps configure translation files, regional Intl formatting, and RTL layouts. CX Codex +1 689installs cloudflare-development A skill that hands your agent Cloudflare edge practices: Workers, Pages, KV, D1, R2 and Durable Objects. Useful when the agent writes worker code or edits wrangler.toml. CX Codex +1 689installs remix A skill that turns your coding agent into a Remix and TypeScript helper, with ready patterns for data loading, mutations and nested routes. CX Codex +1 686installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor