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.
npx skills add Mindrally/skills --skill firebase-development -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/firebase-development/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/firebase-development/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill firebase-development -a codex2Manually: put the files in place
.agents/skills/firebase-development/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill firebase-development -a cursor2Manually: put the files in place
.cursor/skills/firebase-development/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills firebase-development2Manually: put the files in place
.github/skills/firebase-development/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill firebase-development -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path firebase-developmentManually: put the files in place
.devin/skills/firebase-development/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill firebase-development -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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