diff --git a/plugins/firebase/.cursor/plugin.json b/plugins/firebase/.cursor/plugin.json index 9886b40..3dc7403 100644 --- a/plugins/firebase/.cursor/plugin.json +++ b/plugins/firebase/.cursor/plugin.json @@ -6,9 +6,9 @@ "homepage": "https://github.com/cursor/service-plugin-generation", "repository": "https://github.com/cursor/service-plugin-generation", "license": "MIT", - "keywords": ["firebase", "firestore", "cloud-functions", "authentication", "google-cloud"], + "keywords": ["firebase", "firestore", "cloud-functions", "authentication", "hosting"], "category": "backend", - "tags": ["baas", "google-cloud", "realtime"], + "tags": ["baas", "google-cloud", "real-time"], "agents": "./agents/", "skills": "./skills/", "rules": "./rules/", diff --git a/plugins/firebase/CHANGELOG.md b/plugins/firebase/CHANGELOG.md index 0706dd5..c7e527f 100644 --- a/plugins/firebase/CHANGELOG.md +++ b/plugins/firebase/CHANGELOG.md @@ -5,15 +5,15 @@ All notable changes to the Firebase Cursor Plugin will be documented in this fil The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.0] - 2026-02-07 +## [1.0.0] - 2026-02-08 ### Added -- Firestore best practices rule (`rules/firestore-best-practices.mdc`) covering data modeling, batch writes, transactions, indexes, pagination, timestamps, converters, offline persistence, and cost optimization. +- Firestore best practices rule (`rules/firestore.mdc`) covering data modeling, batch writes, transactions, indexes, pagination, timestamps, converters, offline persistence, and cost optimization. - Firebase security rules guide (`rules/firebase-security-rules.mdc`) covering authentication, data validation, custom claims, RBAC, helper functions, Storage rules, and emulator testing. - Firebase Architect Agent (`agents/firebase-architect-agent.md`) for schema design, Cloud Functions architecture, security rules, authentication strategy, cost optimization, and scaling guidance. -- Setup Firebase Project skill (`skills/setup-firebase-project/SKILL.md`) with CLI installation, project initialization, emulator configuration, SDK setup, and deployment steps. -- Setup Firestore Schema skill (`skills/setup-firestore-schema/SKILL.md`) with data modeling patterns, denormalization, security rules, composite indexes, and typed data access layer. +- Setup Firebase skill (`skills/setup-firebase/SKILL.md`) with CLI installation, project initialization, emulator configuration, SDK setup, and deployment steps. +- Design Firestore Schema skill (`skills/design-firestore-schema/SKILL.md`) with data modeling patterns, denormalization, security rules, composite indexes, and typed data access layer. - Hooks configuration (`hooks/hooks.json`) for validating security rules on save, linting Cloud Functions, running rule tests on commit, and deploying on deploy events. - MCP server configuration (`mcp.json`) for Firebase integration. - Deployment script (`scripts/deploy-firebase.sh`) with target selection and prerequisite validation. diff --git a/plugins/firebase/README.md b/plugins/firebase/README.md index 4cef9bd..71c4283 100644 --- a/plugins/firebase/README.md +++ b/plugins/firebase/README.md @@ -15,23 +15,23 @@ Cursor plugin for **Firebase** — Firestore, Authentication, Cloud Functions, H ``` plugins/firebase/ ├── .cursor/ -│ └── plugin.json # Plugin manifest +│ └── plugin.json # Plugin manifest ├── agents/ -│ └── firebase-architect-agent.md # Architecture & design agent +│ └── firebase-architect-agent.md # Architecture & design agent ├── rules/ -│ ├── firestore-best-practices.mdc # Firestore data modeling & query rules -│ └── firebase-security-rules.mdc # Security rules best practices +│ ├── firestore.mdc # Firestore data modeling & query rules +│ └── firebase-security-rules.mdc # Security rules best practices ├── skills/ -│ ├── setup-firebase-project/ -│ │ └── SKILL.md # Firebase CLI setup & project initialization -│ └── setup-firestore-schema/ -│ └── SKILL.md # Firestore schema design patterns +│ ├── setup-firebase/ +│ │ └── SKILL.md # Firebase CLI setup & project initialization +│ └── design-firestore-schema/ +│ └── SKILL.md # Firestore schema design patterns ├── hooks/ -│ └── hooks.json # Save, commit, and deploy hooks +│ └── hooks.json # Save, commit, and deploy hooks ├── scripts/ -│ └── deploy-firebase.sh # Deployment helper script -├── extensions/ # Extension directory (reserved) -├── mcp.json # MCP server configuration +│ └── deploy-firebase.sh # Deployment helper script +├── extensions/ # Extension directory (reserved) +├── mcp.json # MCP server configuration ├── README.md ├── CHANGELOG.md └── LICENSE @@ -41,6 +41,7 @@ plugins/firebase/ ### Prerequisites +- [Cursor](https://cursor.com/) editor - [Node.js](https://nodejs.org/) 18+ - [Firebase CLI](https://firebase.google.com/docs/cli) (`npm install -g firebase-tools`) - A Firebase project (create one at [Firebase Console](https://console.firebase.google.com)) @@ -51,9 +52,9 @@ This plugin is part of the [service-plugin-generation](https://github.com/cursor ### Usage -1. **Follow the setup skill** — Use `skills/setup-firebase-project/SKILL.md` to initialize a new Firebase project with CLI, emulators, and deployment configuration. +1. **Follow the setup skill** — Use `skills/setup-firebase/SKILL.md` to initialize a new Firebase project with CLI, emulators, and deployment configuration. -2. **Design your schema** — Use `skills/setup-firestore-schema/SKILL.md` for data modeling patterns, security rules, and composite indexes. +2. **Design your schema** — Use `skills/design-firestore-schema/SKILL.md` for data modeling patterns, security rules, and composite indexes. 3. **Ask the architect agent** — Invoke the Firebase Architect Agent for guidance on schema design, Cloud Functions architecture, cost optimization, and scaling. diff --git a/plugins/firebase/rules/firestore-best-practices.mdc b/plugins/firebase/rules/firestore.mdc similarity index 98% rename from plugins/firebase/rules/firestore-best-practices.mdc rename to plugins/firebase/rules/firestore.mdc index b811842..d69be6a 100644 --- a/plugins/firebase/rules/firestore-best-practices.mdc +++ b/plugins/firebase/rules/firestore.mdc @@ -1,6 +1,11 @@ --- description: Firestore best practices for data modeling, queries, and performance -globs: ["**/*.ts", "**/*.tsx", "**/*.js"] +globs: + - "**/*.ts" + - "**/*.tsx" + - "**/*.js" + - "**/*.jsx" +alwaysApply: false --- # Firestore Best Practices diff --git a/plugins/firebase/skills/setup-firestore-schema/SKILL.md b/plugins/firebase/skills/design-firestore-schema/SKILL.md similarity index 99% rename from plugins/firebase/skills/setup-firestore-schema/SKILL.md rename to plugins/firebase/skills/design-firestore-schema/SKILL.md index 996167e..5a12611 100644 --- a/plugins/firebase/skills/setup-firestore-schema/SKILL.md +++ b/plugins/firebase/skills/design-firestore-schema/SKILL.md @@ -1,4 +1,4 @@ -# Setup Firestore Schema +# Design Firestore Schema ## Description diff --git a/plugins/firebase/skills/setup-firebase-project/SKILL.md b/plugins/firebase/skills/setup-firebase/SKILL.md similarity index 100% rename from plugins/firebase/skills/setup-firebase-project/SKILL.md rename to plugins/firebase/skills/setup-firebase/SKILL.md