Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill should be used when working with Firebase projects, including initializing projects, adding Cloud Functions or Firestore collections, debugging emulator issues, or reviewing Firebase code. Triggers on "firebase", "firestore", "cloud functions", "emulator", "firebase auth", "deploy to firebase", "firestore rules".
.claude/skills/aiskillstore-firebase-development/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 357% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 51% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 38% | 0% |
| case-07 | ✓→✓ | = Same ✓ | 5% | 0% |
This skill system guides Firebase development using proven patterns from production projects. It routes to specialized sub-skills based on detected intent.
Sub-skills:
firebase-development:project-setup - Initialize new Firebase projectsfirebase-development:add-feature - Add functions/collections/endpointsfirebase-development:debug - Troubleshoot emulator and runtime issuesfirebase-development:validate - Review Firebase code for security/patternsproject-setup:
add-feature:
debug:
validate:
If intent is unclear, ask:
Question: "What Firebase task are you working on?"
Options:
- "Project Setup" (Initialize new Firebase project)
- "Add Feature" (Add functions, collections, endpoints)
- "Debug Issue" (Troubleshoot errors or problems)
- "Validate Code" (Review against patterns)Patterns are extracted from three production Firebase projects:
| Project | Path | Key Patterns | |---------|------|--------------| | oneonone | /Users/dylanr/work/2389/oneonone | Express API, custom API keys, server-write-only | | bot-socialmedia | /Users/dylanr/work/2389/bot-socialmedia-server | Domain-grouped functions, Firebase Auth + roles | | meme-rodeo | /Users/dylanr/work/2389/meme-rodeo | Individual function files, entitlements |
Three options based on needs:
| Option | When to Use | Key Feature | |--------|-------------|-------------| | site: based | Multiple independent URLs | Simple, no build coordination | | target: based | Need predeploy hooks | Build scripts run automatically | | Single + rewrites | Smaller projects | All under one domain |
Details: See docs/examples/multi-hosting-setup.md
| Pattern | When to Use | Example | |---------|-------------|---------| | Custom API keys | MCP tools, server-to-server | oneonone | | Firebase Auth + roles | User-facing apps | bot-socialmedia | | Hybrid | Both patterns needed | Web UI + API access |
Details: See docs/examples/api-key-authentication.md
| Pattern | When to Use | Structure | |---------|-------------|-----------| | Express app | API with middleware, routing | app.post('/mcp', handler) | | Domain-grouped | Feature-rich apps | posts.ts, journal.ts | | Individual files | Maximum modularity | One function per file |
Details: See docs/examples/express-function-architecture.md
| Model | When to Use | Complexity | |-------|-------------|------------| | Server-write-only | Light-write apps, high security | Simple rules | | Client-write + validation | High-volume writes, real-time | Complex rules |
Strongly prefer server-write-only for light-write applications.
Details: See docs/examples/firestore-rules-patterns.md
Always develop locally with emulators:
bashfirebase emulators:start # Access UI at http://127.0.0.1:4000
Key settings in firebase.json:
singleProjectMode: true - Essential for emulators to work togetherui.enabled: true - Access debug UIDetails: See docs/examples/emulator-workflow.md
All Firebase projects follow these standards:
| Tool | Purpose | Config File | |------|---------|-------------| | TypeScript | Type safety | tsconfig.json | | vitest | Testing | vitest.config.ts | | biome | Linting + formatting | biome.json |
Every TypeScript file starts with 2-line ABOUTME comment:
typescript// ABOUTME: Brief description of what this file does // ABOUTME: Second line with additional context
| Issue | Solution | |-------|----------| | Emulator ports in use | lsof -i :5001, kill process | | Admin SDK vs Client SDK | Admin bypasses rules, client respects rules | | Cold start delays | First call takes 5-10s, normal | | Data persistence | Use Ctrl+C (not kill) to export data | | CORS in functions | app.use(cors({ origin: true })) |
This orchestrator routes to specialized sub-skills:
docs/examples/Sub-Skills:
firebase-development:project-setup - Initialize new projectsfirebase-development:add-feature - Add functions/collectionsfirebase-development:debug - Troubleshoot issuesfirebase-development:validate - Review code| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 14,867 | 12,430 | -16% | 1 | 1 | 0% | 2,857 | 3,929 | +38% | 0 | 0 | — |
case-02 | fail→fail | 12,257 | 5,632 | -54% | 1 | 1 | 0% | 2,008 | 2,338 | +16% | 0 | 0 | — |
case-03 | fail→fail | 24,136 | 7,854 | -67% | 1 | 1 | 0% | 2,196 | 2,341 | +7% | 0 | 0 | — |
case-04 | fail→fail | 11,790 | 11,918 | +1% | 1 | 1 | 0% | 2,134 | 3,873 | +81% | 0 | 0 | — |
case-05 | fail→pass | 3,617 | 2,194 | -39% | 1 | 1 | 0% | 398 | 1,817 | +357% | 0 | 0 | — |
case-06 | pass→pass | 12,801 | 7,653 | -40% | 1 | 1 | 0% | 1,981 | 2,727 | +38% | 0 | 0 | — |
case-07 | pass→pass | 16,547 | 4,030 | -76% | 1 | 1 | 0% | 2,108 | 2,211 | +5% | 0 | 0 | — |
case-08 | pass→pass | 7,745 | 5,699 | -26% | 1 | 1 | 0% | 1,226 | 1,948 | +59% | 0 | 0 | — |
case-09 | pass→pass | 11,998 | 8,894 | -26% | 1 | 1 | 0% | 2,139 | 2,946 | +38% | 0 | 0 | — |
case-10 | fail→pass | 10,307 | 2,663 | -74% | 1 | 1 | 0% | 1,458 | 1,987 | +36% | 0 | 0 | — |
case-11 | pass→pass | 14,934 | 3,047 | -80% | 1 | 1 | 0% | 2,394 | 1,995 | -17% | 0 | 0 | — |
case-12 | pass→pass | 9,860 | 2,500 | -75% | 1 | 1 | 0% | 930 | 1,877 | +102% | 0 | 0 | — |
case-13 | pass→pass | 12,597 | 6,764 | -46% | 1 | 1 | 0% | 2,284 | 2,570 | +13% | 0 | 0 | — |
case-14 | fail→pass | 13,146 | 8,697 | -34% | 1 | 1 | 0% | 1,991 | 3,002 | +51% | 0 | 0 | — |
case-15 | pass→pass | 3,920 | 3,108 | -21% | 1 | 1 | 0% | 634 | 2,007 | +217% | 0 | 0 | — |
case-16 | pass→pass | 11,057 | 9,282 | -16% | 1 | 1 | 0% | 1,859 | 2,997 | +61% | 0 | 0 | — |
case-17 | pass→pass | 7,129 | 6,804 | -5% | 1 | 1 | 0% | 1,206 | 2,532 | +110% | 0 | 0 | — |
case-18 | pass→pass | 17,416 | 7,705 | -56% | 1 | 1 | 0% | 2,699 | 2,785 | +3% | 0 | 0 | — |
case-19 | pass→pass | 12,223 | 13,371 | +9% | 1 | 1 | 0% | 2,408 | 4,044 | +68% | 0 | 0 | — |
case-20 | pass→pass | 7,473 | 6,490 | -13% | 1 | 1 | 0% | 1,350 | 2,649 | +96% | 0 | 0 | — |
case-21 | pass→pass | 15,940 | 28,696 | +80% | 1 | 1 | 0% | 2,694 | 4,096 | +52% | 0 | 0 | — |
case-22 | pass→pass | 14,747 | 8,853 | -40% | 1 | 1 | 0% | 2,620 | 3,162 | +21% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +14 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.