firebase-development
إعداد وتطوير مشاريع Firebase
También disponible en: 2389-research
تتطلب مشاريع Firebase قرارات معمارية محددة وسير عمل CLI. يرشدك هذا المهارة خلال تهيئة المشاريع، وإضافة Cloud Functions، وتصحيح أخطاء المحاكيات، والتحقق من صحة قواعد الأمان باستخدام أنماط مثبتة من التطبيقات الإنتاجية.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "firebase-development". Set up a new Firebase project with Cloud Functions
Resultado esperado:
- Step 1: Verify Firebase CLI is installed and login
- Step 2: Create project directory and initialize git
- Step 3: Run firebase init with Functions, Firestore, Hosting, and Emulators
- Step 4: Choose architecture pattern (Express, Domain-Grouped, or Individual)
- Step 5: Configure firebase.json with emulator settings
- Step 6: Set up TypeScript functions structure with ABOUTME comments
Usando "firebase-development". Debug emulator port conflict
Resultado esperado:
- Check which process is using the port: lsof -i :5001
- Kill the conflicting process if needed
- Restart emulators with: firebase emulators:start
- Access emulator UI at http://127.0.0.1:4000
- Export emulator data before restart to preserve data
Usando "firebase-development". Add new Firestore collection with security rules
Resultado esperado:
- Step 1: Write failing unit test for the handler function
- Step 2: Create handler with {success, message, data} response pattern
- Step 3: Add server-write-only rules to firestore.rules
- Step 4: Export function from index.ts
- Step 5: Run tests with npm test
- Step 6: Verify with emulators and Rules Playground
Auditoría de seguridad
SeguroThis is a documentation/guidance orchestration skill with no executable code. All 302 static findings are false positives - the skill contains documentation examples of Firebase CLI commands, not actual command execution vulnerabilities. Patterns flagged (external commands, network access, credential references) are inherent to Firebase development documentation.
Factores de riesgo
⚙️ Comandos externos (236)
🌐 Acceso a red (11)
📁 Acceso al sistema de archivos (5)
Puntuación de calidad
Lo que puedes crear
إعداد مشروع Firebase جديد
تهيئة مشروع Firebase جديد مع وظائف TypeScript والمحاكيات وأنماط الهيكل المناسبة.
إضافة Cloud Functions
إضافة نقاط نهاية HTTP جديدة أو مشغلات Firestore following TDD workflow and security best practices.
تصحيح مشاكل Firebase
استكشاف أخطاء مشاكل تشغيل المحاكي وانتهاكات القواعد وأخطاء النشر بشكل منهجي.
Prueba estos prompts
أريد البدء في مشروع Firebase جديد. ساعدني في إعداده مع TypeScript وCloud Functions وFirestore والمحاكيات.
أضف نقطة نهاية HTTP جديدة إلى مشروع Firebase الخاص بي تنشئ ملفات تعريف المستخدمين في Firestore.
محاكيات Firebase الخاصة بي لا تبدأ. أحصل على خطأ تعارض المنافذ. ساعدني في تصحيح هذا.
راجع مشروع Firebase الخاص بي بحثًا عن مشاكل الأمان. تحقق من قواعد Firestore وتنفيذ المصادقة.
Mejores prácticas
- استخدم دائمًا محاكيات Firebase أثناء التطوير المحلي قبل النشر
- اتبع نموذج أمان الكتابة من الخادم فقط للتطبيقات ذات الكتابة الخفيفة
- اكتب الاختبارات أولاً باستخدام TDD قبل تنفيذ أي ميزة
- استخدم TypeScript لجميع Cloud Functions مع أمان النوع المناسب
Evitar
- النشر دون الاختبار مع المحاكيات أولاً
- استخدام قواعد الكتابة من العميل دون التحقق المناسب (missing diff().affectedKeys())
- خلط معماريات Express وDomain-Grouped وIndividual function
- تجاهل تعليقات ABOUTME على ملفات الدوال