[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6P345D54FBDQVV74R5XZNSJ":3,"skill-same:01M6P345D54FBDQVV74R5XZNSJ":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":30,"commitSha":52,"skillDirectory":53,"forksCount":13,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M6P345D54FBDQVV74R5XZNSJ","firebase-app-platform",null,"Build and operate apps on Firebase using Auth, Firestore, Cloud Functions, and Hosting. Use when building mobile\u002Fweb backends with managed services, real-time data sync, or serverless APIs.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Ffirebase-app-platform\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"firebase app platform","firebase","app","platform","time","managed","operate","relevant","scripts","apps","critical","auth","main","community","mobile","only","access","devops-security","data","sync","2026-11-10 10:12:30",false,"---\nname: firebase-app-platform\ndescription: Build and operate apps on Firebase using Auth, Firestore, Cloud Functions,\n  and Hosting. Use when building mobile\u002Fweb backends with managed services, real-time\n  data sync, or serverless APIs.\ncategory: devops\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires the relevant OS\u002Fplatform tooling and privileged access where\n  noted. Docs-only; helper scripts and templates not bundled.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# Firebase App Platform\n\nShip mobile and web backends with Firebase managed services.\n\n## When to Use This Skill\n\nUse this skill when:\n- Building mobile or web apps with real-time data sync\n- Need authentication with minimal backend code\n- Prototyping quickly with managed infrastructure\n- Building serverless APIs with Cloud Functions\n- Hosting static sites or SPAs with CDN\n\n## Prerequisites\n\n- Node.js 18+\n- Firebase CLI (`npm install -g firebase-tools`)\n- Google Cloud account (Firebase is part of GCP)\n- A Firebase project (create at console.firebase.google.com)\n\n## Quick Start\n\n```bash\n# Install and authenticate\nnpm install -g firebase-tools\nfirebase login\n\n# Initialize in your project directory\nfirebase init\n# Select: Firestore, Functions, Hosting, Emulators\n\n# Start local emulators\nfirebase emulators:start\n\n# Deploy everything\nfirebase deploy\n\n# Deploy specific services\nfirebase deploy --only functions\nfirebase deploy --only hosting\nfirebase deploy --only firestore:rules\n```\n\n## Firestore Database\n\n### Security Rules\n\n```javascript\n\u002F\u002F firestore.rules\nrules_version = '2';\nservice cloud.firestore {\n  match \u002Fdatabases\u002F{database}\u002Fdocuments {\n    \u002F\u002F Users can only read\u002Fwrite their own data\n    match \u002Fusers\u002F{userId} {\n      allow read, write: if request.auth != null && request.auth.uid == userId;\n    }\n\n    \u002F\u002F Messages: authenticated users can read, only owner can write\n    match \u002Fchannels\u002F{channelId}\u002Fmessages\u002F{messageId} {\n      allow read: if request.auth != null;\n      allow create: if request.auth != null\n        && request.resource.data.userId == request.auth.uid\n        && request.resource.data.body is string\n        && request.resource.data.body.size() \u003C= 5000;\n      allow update, delete: if request.auth != null\n        && resource.data.userId == request.auth.uid;\n    }\n\n    \u002F\u002F Admin-only collection\n    match \u002Fadmin\u002F{document=**} {\n      allow read, write: if request.auth != null\n        && get(\u002Fdatabases\u002F$(database)\u002Fdocuments\u002Fusers\u002F$(request.auth.uid)).data.role == 'admin';\n    }\n\n    \u002F\u002F Default: deny everything\n    match \u002F{document=**} {\n      allow read, write: if false;\n    }\n  }\n}\n```\n\n### Data Operations\n\n```typescript\n\u002F\u002F lib\u002Ffirestore.ts\nimport { getFirestore, collection, doc, setDoc, getDoc,\n         query, where, orderBy, limit, onSnapshot,\n         serverTimestamp, increment } from \"firebase\u002Ffirestore\";\n\nconst db = getFirestore();\n\n\u002F\u002F Create document with auto-ID\nasync function createMessage(channelId: string, body: string, userId: string) {\n  const ref = doc(collection(db, \"channels\", channelId, \"messages\"));\n  await setDoc(ref, {\n    body,\n    userId,\n    createdAt: serverTimestamp(),\n  });\n  return ref.id;\n}\n\n\u002F\u002F Real-time listener\nfunction subscribeToMessages(channelId: string, callback: (msgs: any[]) => void) {\n  const q = query(\n    collection(db, \"channels\", channelId, \"messages\"),\n    orderBy(\"createdAt\", \"desc\"),\n    limit(50)\n  );\n  return onSnapshot(q, (snapshot) => {\n    const messages = snapshot.docs.map(doc => ({ id: doc.id, ...doc.data() }));\n    callback(messages);\n  });\n}\n\n\u002F\u002F Atomic counter\nasync function incrementViews(postId: string) {\n  await setDoc(doc(db, \"posts\", postId), {\n    views: increment(1),\n  }, { merge: true });\n}\n```\n\n### Indexes\n\n```json\n\u002F\u002F firestore.indexes.json\n{\n  \"indexes\": [\n    {\n      \"collectionGroup\": \"messages\",\n      \"queryScope\": \"COLLECTION\",\n      \"fields\": [\n        { \"fieldPath\": \"channelId\", \"order\": \"ASCENDING\" },\n        { \"fieldPath\": \"createdAt\", \"order\": \"DESCENDING\" }\n      ]\n    }\n  ]\n}\n```\n\n## Authentication\n\n```typescript\n\u002F\u002F lib\u002Fauth.ts\nimport { getAuth, signInWithPopup, GoogleAuthProvider,\n         createUserWithEmailAndPassword, signInWithEmailAndPassword,\n         signOut, onAuthStateChanged } from \"firebase\u002Fauth\";\n\nconst auth = getAuth();\n\n\u002F\u002F Google sign-in\nasync function signInWithGoogle() {\n  const provider = new GoogleAuthProvider();\n  const result = await signInWithPopup(auth, provider);\n  return result.user;\n}\n\n\u002F\u002F Email\u002Fpassword registration\nasync function register(email: string, password: string) {\n  const result = await createUserWithEmailAndPassword(auth, email, password);\n  return result.user;\n}\n\n\u002F\u002F Auth state listener\nonAuthStateChanged(auth, (user) => {\n  if (user) {\n    console.log(\"Signed in:\", user.uid, user.email);\n  } else {\n    console.log(\"Signed out\");\n  }\n});\n```\n\n## Cloud Functions\n\n```typescript\n\u002F\u002F functions\u002Fsrc\u002Findex.ts\nimport { onRequest } from \"firebase-functions\u002Fv2\u002Fhttps\";\nimport { onDocumentCreated } from \"firebase-functions\u002Fv2\u002Ffirestore\";\nimport { getFirestore } from \"firebase-admin\u002Ffirestore\";\nimport { initializeApp } from \"firebase-admin\u002Fapp\";\n\ninitializeApp();\nconst db = getFirestore();\n\n\u002F\u002F HTTP function (API endpoint)\nexport const api = onRequest({ cors: true, region: \"us-central1\" }, async (req, res) => {\n  if (req.method !== \"GET\") {\n    res.status(405).send(\"Method not allowed\");\n    return;\n  }\n  const snapshot = await db.collection(\"posts\").orderBy(\"createdAt\", \"desc\").limit(10).get();\n  const posts = snapshot.docs.map(doc => ({ id: doc.id, ...doc.data() }));\n  res.json({ posts });\n});\n\n\u002F\u002F Firestore trigger — runs when a new message is created\nexport const onMessageCreated = onDocumentCreated(\n  \"channels\u002F{channelId}\u002Fmessages\u002F{messageId}\",\n  async (event) => {\n    const data = event.data?.data();\n    if (!data) return;\n\n    \u002F\u002F Update channel's last message timestamp\n    await db.doc(`channels\u002F${event.params.channelId}`).update({\n      lastMessageAt: data.createdAt,\n      messageCount: FieldValue.increment(1),\n    });\n\n    \u002F\u002F Send notification (example)\n    console.log(`New message in ${event.params.channelId}: ${data.body.substring(0, 50)}`);\n  }\n);\n```\n\n## Hosting\n\n```json\n\u002F\u002F firebase.json\n{\n  \"hosting\": {\n    \"public\": \"dist\",\n    \"ignore\": [\"firebase.json\", \"**\u002F.*\", \"**\u002Fnode_modules\u002F**\"],\n    \"rewrites\": [\n      { \"source\": \"\u002Fapi\u002F**\", \"function\": \"api\" },\n      { \"source\": \"**\", \"destination\": \"\u002Findex.html\" }\n    ],\n    \"headers\": [\n      {\n        \"source\": \"**\u002F*.@(js|css|svg|png|jpg|webp|woff2)\",\n        \"headers\": [{ \"key\": \"Cache-Control\", \"value\": \"public, max-age=31536000, immutable\" }]\n      },\n      {\n        \"source\": \"**\",\n        \"headers\": [\n          { \"key\": \"X-Frame-Options\", \"value\": \"DENY\" },\n          { \"key\": \"X-Content-Type-Options\", \"value\": \"nosniff\" },\n          { \"key\": \"Strict-Transport-Security\", \"value\": \"max-age=63072000\" }\n        ]\n      }\n    ]\n  }\n}\n```\n\n## Local Emulators\n\n```bash\n# Start all emulators\nfirebase emulators:start\n\n# Start specific emulators\nfirebase emulators:start --only auth,firestore,functions\n\n# Export emulator data for persistence\nfirebase emulators:export .\u002Femulator-data\nfirebase emulators:start --import=.\u002Femulator-data\n\n# Emulator UI at http:\u002F\u002Flocalhost:4000\n```\n\n```json\n\u002F\u002F firebase.json — emulator config\n{\n  \"emulators\": {\n    \"auth\": { \"port\": 9099 },\n    \"firestore\": { \"port\": 8080 },\n    \"functions\": { \"port\": 5001 },\n    \"hosting\": { \"port\": 5000 },\n    \"ui\": { \"enabled\": true, \"port\": 4000 }\n  }\n}\n```\n\n## Environment Configuration\n\n```bash\n# Set environment variables for functions\nfirebase functions:config:set stripe.key=\"sk_live_xxx\" app.name=\"MyApp\"\n\n# View config\nfirebase functions:config:get\n\n# Use in functions (v1)\nconst stripeKey = functions.config().stripe.key;\n\n# For v2 functions, use .env files\n# functions\u002F.env\nSTRIPE_KEY=sk_live_xxx\n\n# functions\u002F.env.local (for emulators)\nSTRIPE_KEY=sk_test_xxx\n```\n\n## Multi-Environment Setup\n\n```bash\n# Create separate projects for each environment\nfirebase use --add   # Add staging project alias\nfirebase use staging # Switch to staging\nfirebase use production\n\n# Deploy to specific project\nfirebase deploy --project my-app-staging\nfirebase deploy --project my-app-production\n\n# .firebaserc\n{\n  \"projects\": {\n    \"staging\": \"my-app-staging\",\n    \"production\": \"my-app-production\"\n  }\n}\n```\n\n## CLI Reference\n\n```bash\nfirebase projects:list              # List all projects\nfirebase deploy                      # Deploy everything\nfirebase deploy --only functions     # Deploy only functions\nfirebase deploy --only hosting       # Deploy only hosting\nfirebase deploy --only firestore     # Deploy rules + indexes\nfirebase functions:log               # View function logs\nfirebase hosting:channel:create pr-123  # Preview channel\nfirebase hosting:channel:delete pr-123\n```\n\n## Security Best Practices\n\n- Write strict Firestore security rules before any other code\n- Separate environments by Firebase project (staging\u002Fproduction)\n- Enable budget alerts and quota monitoring in GCP console\n- Move privileged logic into Cloud Functions (never trust the client)\n- Use App Check to prevent API abuse from non-app clients\n- Enable Firestore audit logging for compliance\n- Review OAuth consent screen settings\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|---------|\n| Permission denied | Check Firestore rules, verify auth state |\n| Function cold starts | Use min instances (`minInstances: 1`), optimize imports |\n| Emulator won't start | Check port conflicts, run `firebase emulators:start --debug` |\n| Deploy fails | Run `firebase deploy --debug`, check service account permissions |\n| Rules test failing | Use `firebase emulators:exec` to run rules unit tests |\n\n## Related Skills\n\n- gcp-cloud-functions (`gcp-cloud-functions`) — Function runtime patterns\n- vercel-deployments (`vercel-deployments`) — Alternative frontend hosting\n- convex-backend (`convex-backend`) — Alternative managed backend\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n","# Firebase App Platform\n\nShip mobile and web backends with Firebase managed services.\n\n## When to Use This Skill\n\nUse this skill when:\n- Building mobile or web apps with real-time data sync\n- Need authentication with minimal backend code\n- Prototyping quickly with managed infrastructure\n- Building serverless APIs with Cloud Functions\n- Hosting static sites or SPAs with CDN\n\n## Prerequisites\n\n- Node.js 18+\n- Firebase CLI (`npm install -g firebase-tools`)\n- Google Cloud account (Firebase is part of GCP)\n- A Firebase project (create at console.firebase.google.com)\n\n## Quick Start\n\n```bash\n# Install and authenticate\nnpm install -g firebase-tools\nfirebase login\n\n# Initialize in your project directory\nfirebase init\n# Select: Firestore, Functions, Hosting, Emulators\n\n# Start local emulators\nfirebase emulators:start\n\n# Deploy everything\nfirebase deploy\n\n# Deploy specific services\nfirebase deploy --only functions\nfirebase deploy --only hosting\nfirebase deploy --only firestore:rules\n```\n\n## Firestore Database\n\n### Security Rules\n\n```javascript\n\u002F\u002F firestore.rules\nrules_version = '2';\nservice cloud.firestore {\n  match \u002Fdatabases\u002F{database}\u002Fdocuments {\n    \u002F\u002F Users can only read\u002Fwrite their own data\n    match \u002Fusers\u002F{userId} {\n      allow read, write: if request.auth != null && request.auth.uid == userId;\n    }\n\n    \u002F\u002F Messages: authenticated users can read, only owner can write\n    match \u002Fchannels\u002F{channelId}\u002Fmessages\u002F{messageId} {\n      allow read: if request.auth != null;\n      allow create: if request.auth != null\n        && request.resource.data.userId == request.auth.uid\n        && request.resource.data.body is string\n        && request.resource.data.body.size() \u003C= 5000;\n      allow update, delete: if request.auth != null\n        && resource.data.userId == request.auth.uid;\n    }\n\n    \u002F\u002F Admin-only collection\n    match \u002Fadmin\u002F{document=**} {\n      allow read, write: if request.auth != null\n        && get(\u002Fdatabases\u002F$(database)\u002Fdocuments\u002Fusers\u002F$(request.auth.uid)).data.role == 'admin';\n    }\n\n    \u002F\u002F Default: deny everything\n    match \u002F{document=**} {\n      allow read, write: if false;\n    }\n  }\n}\n```\n\n### Data Operations\n\n```typescript\n\u002F\u002F lib\u002Ffirestore.ts\nimport { getFirestore, collection, doc, setDoc, getDoc,\n         query, where, orderBy, limit, onSnapshot,\n         serverTimestamp, increment } from \"firebase\u002Ffirestore\";\n\nconst db = getFirestore();\n\n\u002F\u002F Create document with auto-ID\nasync function createMessage(channelId: string, body: string, userId: string) {\n  const ref = doc(collection(db, \"channels\", channelId, \"messages\"));\n  await setDoc(ref, {\n    body,\n    userId,\n    createdAt: serverTimestamp(),\n  });\n  return ref.id;\n}\n\n\u002F\u002F Real-time listener\nfunction subscribeToMessages(channelId: string, callback: (msgs: any[]) => void) {\n  const q = query(\n    collection(db, \"channels\", channelId, \"messages\"),\n    orderBy(\"createdAt\", \"desc\"),\n    limit(50)\n  );\n  return onSnapshot(q, (snapshot) => {\n    const messages = snapshot.docs.map(doc => ({ id: doc.id, ...doc.data() }));\n    callback(messages);\n  });\n}\n\n\u002F\u002F Atomic counter\nasync function incrementViews(postId: string) {\n  await setDoc(doc(db, \"posts\", postId), {\n    views: increment(1),\n  }, { merge: true });\n}\n```\n\n### Indexes\n\n```json\n\u002F\u002F firestore.indexes.json\n{\n  \"indexes\": [\n    {\n      \"collectionGroup\": \"messages\",\n      \"queryScope\": \"COLLECTION\",\n      \"fields\": [\n        { \"fieldPath\": \"channelId\", \"order\": \"ASCENDING\" },\n        { \"fieldPath\": \"createdAt\", \"order\": \"DESCENDING\" }\n      ]\n    }\n  ]\n}\n```\n\n## Authentication\n\n```typescript\n\u002F\u002F lib\u002Fauth.ts\nimport { getAuth, signInWithPopup, GoogleAuthProvider,\n         createUserWithEmailAndPassword, signInWithEmailAndPassword,\n         signOut, onAuthStateChanged } from \"firebase\u002Fauth\";\n\nconst auth = getAuth();\n\n\u002F\u002F Google sign-in\nasync function signInWithGoogle() {\n  const provider = new GoogleAuthProvider();\n  const result = await signInWithPopup(auth, provider);\n  return result.user;\n}\n\n\u002F\u002F Email\u002Fpassword registration\nasync function register(email: string, password: string) {\n  const result = await createUserWithEmailAndPassword(auth, email, password);\n  return result.user;\n}\n\n\u002F\u002F Auth state listener\nonAuthStateChanged(auth, (user) => {\n  if (user) {\n    console.log(\"Signed in:\", user.uid, user.email);\n  } else {\n    console.log(\"Signed out\");\n  }\n});\n```\n\n## Cloud Functions\n\n```typescript\n\u002F\u002F functions\u002Fsrc\u002Findex.ts\nimport { onRequest } from \"firebase-functions\u002Fv2\u002Fhttps\";\nimport { onDocumentCreated } from \"firebase-functions\u002Fv2\u002Ffirestore\";\nimport { getFirestore } from \"firebase-admin\u002Ffirestore\";\nimport { initializeApp } from \"firebase-admin\u002Fapp\";\n\ninitializeApp();\nconst db = getFirestore();\n\n\u002F\u002F HTTP function (API endpoint)\nexport const api = onRequest({ cors: true, region: \"us-central1\" }, async (req, res) => {\n  if (req.method !== \"GET\") {\n    res.status(405).send(\"Method not allowed\");\n    return;\n  }\n  const snapshot = await db.collection(\"posts\").orderBy(\"createdAt\", \"desc\").limit(10).get();\n  const posts = snapshot.docs.map(doc => ({ id: doc.id, ...doc.data() }));\n  res.json({ posts });\n});\n\n\u002F\u002F Firestore trigger — runs when a new message is created\nexport const onMessageCreated = onDocumentCreated(\n  \"channels\u002F{channelId}\u002Fmessages\u002F{messageId}\",\n  async (event) => {\n    const data = event.data?.data();\n    if (!data) return;\n\n    \u002F\u002F Update channel's last message timestamp\n    await db.doc(`channels\u002F${event.params.channelId}`).update({\n      lastMessageAt: data.createdAt,\n      messageCount: FieldValue.increment(1),\n    });\n\n    \u002F\u002F Send notification (example)\n    console.log(`New message in ${event.params.channelId}: ${data.body.substring(0, 50)}`);\n  }\n);\n```\n\n## Hosting\n\n```json\n\u002F\u002F firebase.json\n{\n  \"hosting\": {\n    \"public\": \"dist\",\n    \"ignore\": [\"firebase.json\", \"**\u002F.*\", \"**\u002Fnode_modules\u002F**\"],\n    \"rewrites\": [\n      { \"source\": \"\u002Fapi\u002F**\", \"function\": \"api\" },\n      { \"source\": \"**\", \"destination\": \"\u002Findex.html\" }\n    ],\n    \"headers\": [\n      {\n        \"source\": \"**\u002F*.@(js|css|svg|png|jpg|webp|woff2)\",\n        \"headers\": [{ \"key\": \"Cache-Control\", \"value\": \"public, max-age=31536000, immutable\" }]\n      },\n      {\n        \"source\": \"**\",\n        \"headers\": [\n          { \"key\": \"X-Frame-Options\", \"value\": \"DENY\" },\n          { \"key\": \"X-Content-Type-Options\", \"value\": \"nosniff\" },\n          { \"key\": \"Strict-Transport-Security\", \"value\": \"max-age=63072000\" }\n        ]\n      }\n    ]\n  }\n}\n```\n\n## Local Emulators\n\n```bash\n# Start all emulators\nfirebase emulators:start\n\n# Start specific emulators\nfirebase emulators:start --only auth,firestore,functions\n\n# Export emulator data for persistence\nfirebase emulators:export .\u002Femulator-data\nfirebase emulators:start --import=.\u002Femulator-data\n\n# Emulator UI at http:\u002F\u002Flocalhost:4000\n```\n\n```json\n\u002F\u002F firebase.json — emulator config\n{\n  \"emulators\": {\n    \"auth\": { \"port\": 9099 },\n    \"firestore\": { \"port\": 8080 },\n    \"functions\": { \"port\": 5001 },\n    \"hosting\": { \"port\": 5000 },\n    \"ui\": { \"enabled\": true, \"port\": 4000 }\n  }\n}\n```\n\n## Environment Configuration\n\n```bash\n# Set environment variables for functions\nfirebase functions:config:set stripe.key=\"sk_live_xxx\" app.name=\"MyApp\"\n\n# View config\nfirebase functions:config:get\n\n# Use in functions (v1)\nconst stripeKey = functions.config().stripe.key;\n\n# For v2 functions, use .env files\n# functions\u002F.env\nSTRIPE_KEY=sk_live_xxx\n\n# functions\u002F.env.local (for emulators)\nSTRIPE_KEY=sk_test_xxx\n```\n\n## Multi-Environment Setup\n\n```bash\n# Create separate projects for each environment\nfirebase use --add   # Add staging project alias\nfirebase use staging # Switch to staging\nfirebase use production\n\n# Deploy to specific project\nfirebase deploy --project my-app-staging\nfirebase deploy --project my-app-production\n\n# .firebaserc\n{\n  \"projects\": {\n    \"staging\": \"my-app-staging\",\n    \"production\": \"my-app-production\"\n  }\n}\n```\n\n## CLI Reference\n\n```bash\nfirebase projects:list              # List all projects\nfirebase deploy                      # Deploy everything\nfirebase deploy --only functions     # Deploy only functions\nfirebase deploy --only hosting       # Deploy only hosting\nfirebase deploy --only firestore     # Deploy rules + indexes\nfirebase functions:log               # View function logs\nfirebase hosting:channel:create pr-123  # Preview channel\nfirebase hosting:channel:delete pr-123\n```\n\n## Security Best Practices\n\n- Write strict Firestore security rules before any other code\n- Separate environments by Firebase project (staging\u002Fproduction)\n- Enable budget alerts and quota monitoring in GCP console\n- Move privileged logic into Cloud Functions (never trust the client)\n- Use App Check to prevent API abuse from non-app clients\n- Enable Firestore audit logging for compliance\n- Review OAuth consent screen settings\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|---------|\n| Permission denied | Check Firestore rules, verify auth state |\n| Function cold starts | Use min instances (`minInstances: 1`), optimize imports |\n| Emulator won't start | Check port conflicts, run `firebase emulators:start --debug` |\n| Deploy fails | Run `firebase deploy --debug`, check service account permissions |\n| Rules test failing | Use `firebase emulators:exec` to run rules unit tests |\n\n## Related Skills\n\n- gcp-cloud-functions (`gcp-cloud-functions`) — Function runtime patterns\n- vercel-deployments (`vercel-deployments`) — Alternative frontend hosting\n- convex-backend (`convex-backend`) — Alternative managed backend\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n",{"name":5,"risk":28,"source":43,"license":14,"category":44,"metadata":45,"date_added":48,"description":7,"source_repo":49,"source_type":31,"compatibility":50,"license_source":51},"https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills","devops",{"author":46,"version":47},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Requires the relevant OS\u002Fplatform tooling and privileged access where noted. Docs-only; helper scripts and templates not bundled.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Ffirebase-app-platform","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill firebase-app-platform",{"tool":63,"command":64},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill firebase-app-platform",{"tool":66,"command":67},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill firebase-app-platform","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Ffirebase-app-platform\u002FSKILL.md",true,[],[72,95,118,143,171,195],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":83,"publishedAt":38},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[78],{"categoryNo":79,"categoryName":80,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[84,85,86,87,88,89,74,90,35,34,91,33,31,30,92,28,93,26,25,94],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","configure","active","scope","implementing",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":38},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[102,103,104,105,106,107,108,109,110,111,112,113,114,33,115,31,116,20,28,117],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","agent-orchestration",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":38},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[125,126,127,128,129,130,131,132,133,134,135,136,137,31,30,138,139,140,141,142],"transcript","youtube transcript","youtube","safe","github","codex","research","license","https","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":160,"publishedAt":38},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[149,152,155],{"categoryNo":150,"categoryName":151,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":153,"categoryName":154,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":156,"categoryName":157,"taxonomyType":158,"taxonomyTypeDesc":159},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[125,126,127,161,128,162,129,130,132,163,164,165,166,135,167,31,30,168,169,170],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":181,"publishedAt":38},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[177,180],{"categoryNo":178,"categoryName":179,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":153,"categoryName":154,"taxonomyType":81,"taxonomyTypeDesc":82},[127,182,183,106,128,184,185,186,187,132,165,188,189,190,191,30,192,138,193,194],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":202,"publishedAt":38},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[201],{"categoryNo":150,"categoryName":151,"taxonomyType":81,"taxonomyTypeDesc":82},[203,127,204,205,128,162,163,206,207,164,165,166,135,208,167,31,30,168,209,141],"youtube full","full","google","server","dlp","credits","automatic"]