[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EHWPQBJ17YV6WYRMPQ2N3M":3,"skill-same:01M6EHWPQBJ17YV6WYRMPQ2N3M":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6EHWPQBJ17YV6WYRMPQ2N3M","firebase-development-project-setup",null,"This skill should be used when initializing a new Firebase project with proven architecture. Triggers on \"new firebase project\", \"initialize firebase\", \"firebase init\", \"set up firebase\", \"create firebase app\", \"start firebase project\". Guides through CLI setup, architecture choices, and emulator configuration.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002F2389-research\u002Ffirebase-development-project-setup\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"firebase development project setup","setup","development","project","firebase","project setup","initialize","guides","app","triggers","configuration","emulator","up","cli","SET","start","create","architecture","init","2026-11-10 10:12:30",false,"---\nname: firebase-development-project-setup\ndescription: This skill should be used when initializing a new Firebase project with proven architecture. Triggers on \"new firebase project\", \"initialize firebase\", \"firebase init\", \"set up firebase\", \"create firebase app\", \"start firebase project\". Guides through CLI setup, architecture choices, and emulator configuration.\n---\n\n# Firebase Project Setup\n\n## Overview\n\nThis sub-skill guides initializing a new Firebase project with proven architecture patterns. It handles Firebase CLI setup, architecture decisions, emulator configuration, and initial project structure.\n\n**Key principles:**\n- Use TypeScript for all functions\n- Configure emulators from the start\n- Choose architecture patterns early (hosting, auth, functions, security)\n- Set up testing infrastructure immediately\n\n## When This Sub-Skill Applies\n\n- Starting a brand new Firebase project\n- Setting up Firebase for the first time in a repository\n- User says: \"new firebase project\", \"initialize firebase\", \"firebase init\", \"set up firebase\"\n\n**Do not use for:**\n- Adding features to existing projects → `firebase-development:add-feature`\n- Debugging existing setup → `firebase-development:debug`\n\n## Architecture Decisions\n\nUse AskUserQuestion to gather these four decisions upfront:\n\n### 1. Hosting Configuration\n- **Single Site** - One hosting site, simple project\n- **Multiple Sites (site:)** - Multiple independent URLs\n- **Multiple with Builds (target:)** - Multiple sites with predeploy hooks\n\n**Reference:** `docs\u002Fexamples\u002Fmulti-hosting-setup.md`\n\n### 2. Authentication Approach\n- **API Keys** - MCP tools, server-to-server, programmatic access\n- **Firebase Auth** - User-facing app with login UI\n- **Both** - Firebase Auth for web + API keys for tools\n\n**Reference:** `docs\u002Fexamples\u002Fapi-key-authentication.md`\n\n### 3. Functions Architecture\n- **Express API** - Many related endpoints, need middleware, RESTful routing\n- **Domain Grouped** - Feature-rich app with distinct areas (posts, admin)\n- **Individual Files** - Independent functions, maximum modularity\n\n**Reference:** `docs\u002Fexamples\u002Fexpress-function-architecture.md`\n\n### 4. Security Model\n- **Server-Write-Only** (Preferred) - Cloud Functions handle all writes\n- **Client-Write** - High-volume writes, need fastest UX, complex rules\n\n**Reference:** `docs\u002Fexamples\u002Ffirestore-rules-patterns.md`\n\n## TodoWrite Workflow\n\nCreate checklist with these 14 steps:\n\n### Step 1: Verify Firebase CLI\n\n```bash\nfirebase --version  # Install via npm install -g firebase-tools if missing\nfirebase login\n```\n\n### Step 2: Create Project Directory\n\n```bash\nmkdir my-firebase-project && cd my-firebase-project\ngit init && git branch -m main\n```\n\nCreate `.gitignore` with: `node_modules\u002F`, `.env`, `.env.local`, `.firebase\u002F`, `lib\u002F`, `dist\u002F`\n\n### Step 3: Run Firebase Init\n\n```bash\nfirebase init\n```\n\nSelect: Firestore, Functions, Hosting, Emulators. Choose TypeScript for functions.\n\n### Step 4: Gather Architecture Decisions\n\nUse AskUserQuestion for the four decisions above.\n\n### Step 5: Configure firebase.json\n\nSet up based on hosting decision. Critical emulator settings:\n```json\n{\n  \"emulators\": {\n    \"singleProjectMode\": true,\n    \"ui\": { \"enabled\": true, \"port\": 4000 }\n  }\n}\n```\n\n**Reference:** `docs\u002Fexamples\u002Fmulti-hosting-setup.md`\n\n### Step 6: Set Up Functions Structure\n\nBased on architecture choice:\n\n**Express:** Create `middleware\u002F`, `tools\u002F`, `services\u002F`, `shared\u002F`\n**Domain-Grouped:** Create `shared\u002Ftypes\u002F`, `shared\u002Fvalidators\u002F`\n**Individual:** Create `functions\u002F`\n\nInstall dependencies: `express`, `cors`, `firebase-admin`, `firebase-functions`, `vitest`, `biome`\n\n### Step 7: Create Initial Functions Code\n\nCreate `functions\u002Fsrc\u002Findex.ts` with ABOUTME comments. Include health check endpoint for Express pattern.\n\n**Reference:** `docs\u002Fexamples\u002Fexpress-function-architecture.md`\n\n### Step 8: Configure Firestore Rules\n\nBased on security model decision. Always include:\n- Helper functions (`isAuthenticated()`, `isOwner()`)\n- Default deny rule at bottom\n\n**Reference:** `docs\u002Fexamples\u002Ffirestore-rules-patterns.md`\n\n### Step 9: Set Up Testing\n\nCreate `vitest.config.ts` and `vitest.emulator.config.ts`. Set up `__tests__\u002F` and `__tests__\u002Femulator\u002F` directories.\n\n### Step 10: Configure Biome\n\nCreate `biome.json` with recommended rules. Run `npm run lint:fix`.\n\n### Step 11: Set Up Environment Variables\n\nCreate `.env.example` template. Copy to `.env` and fill in values.\n\nFor hosting: create `hosting\u002F.env.local` with `NEXT_PUBLIC_USE_EMULATORS=true`.\n\n### Step 12: Initial Git Commit\n\n```bash\ngit add . && git commit -m \"feat: initial Firebase project setup\"\n```\n\n### Step 13: Start Emulators\n\n```bash\nfirebase emulators:start\nopen http:\u002F\u002F127.0.0.1:4000\n```\n\nVerify all services start. Test health endpoint if using Express.\n\n### Step 14: Create Initial Tests\n\nCreate `functions\u002Fsrc\u002F__tests__\u002Fsetup.test.ts` with basic verification. Run `npm test`.\n\n## Verification Checklist\n\nBefore marking complete:\n- [ ] Firebase CLI installed and logged in\n- [ ] TypeScript functions compile: `npm run build`\n- [ ] All tests pass: `npm test`\n- [ ] Linting passes: `npm run lint`\n- [ ] Emulators start without errors\n- [ ] Emulator UI accessible at http:\u002F\u002F127.0.0.1:4000\n- [ ] Git initialized with commits\n- [ ] `.env` files created and gitignored\n- [ ] ABOUTME comments on all files\n- [ ] Architecture decisions documented\n\n## Project Structures\n\n**Express API:**\n```\nfunctions\u002Fsrc\u002F\n├── index.ts\n├── middleware\u002FapiKeyGuard.ts\n├── tools\u002F\n├── services\u002F\n└── __tests__\u002F\n```\n\n**Domain-Grouped:**\n```\nfunctions\u002Fsrc\u002F\n├── index.ts\n├── posts.ts\n├── users.ts\n├── shared\u002Ftypes\u002F\n└── __tests__\u002F\n```\n\n**Individual Files:**\n```\nfunctions\u002F\n├── functions\u002Fupload.ts\n├── functions\u002Fprocess.ts\n└── index.js\n```\n\n## Next Steps\n\nAfter setup complete:\n1. Add first feature → `firebase-development:add-feature`\n2. Review setup → `firebase-development:validate`\n3. Debug issues → `firebase-development:debug`\n\n## Pattern References\n\n- **Hosting:** `docs\u002Fexamples\u002Fmulti-hosting-setup.md`\n- **Auth:** `docs\u002Fexamples\u002Fapi-key-authentication.md`\n- **Functions:** `docs\u002Fexamples\u002Fexpress-function-architecture.md`\n- **Rules:** `docs\u002Fexamples\u002Ffirestore-rules-patterns.md`\n- **Emulators:** `docs\u002Fexamples\u002Femulator-workflow.md`\n","# Firebase Project Setup\n\n## Overview\n\nThis sub-skill guides initializing a new Firebase project with proven architecture patterns. It handles Firebase CLI setup, architecture decisions, emulator configuration, and initial project structure.\n\n**Key principles:**\n- Use TypeScript for all functions\n- Configure emulators from the start\n- Choose architecture patterns early (hosting, auth, functions, security)\n- Set up testing infrastructure immediately\n\n## When This Sub-Skill Applies\n\n- Starting a brand new Firebase project\n- Setting up Firebase for the first time in a repository\n- User says: \"new firebase project\", \"initialize firebase\", \"firebase init\", \"set up firebase\"\n\n**Do not use for:**\n- Adding features to existing projects → `firebase-development:add-feature`\n- Debugging existing setup → `firebase-development:debug`\n\n## Architecture Decisions\n\nUse AskUserQuestion to gather these four decisions upfront:\n\n### 1. Hosting Configuration\n- **Single Site** - One hosting site, simple project\n- **Multiple Sites (site:)** - Multiple independent URLs\n- **Multiple with Builds (target:)** - Multiple sites with predeploy hooks\n\n**Reference:** `docs\u002Fexamples\u002Fmulti-hosting-setup.md`\n\n### 2. Authentication Approach\n- **API Keys** - MCP tools, server-to-server, programmatic access\n- **Firebase Auth** - User-facing app with login UI\n- **Both** - Firebase Auth for web + API keys for tools\n\n**Reference:** `docs\u002Fexamples\u002Fapi-key-authentication.md`\n\n### 3. Functions Architecture\n- **Express API** - Many related endpoints, need middleware, RESTful routing\n- **Domain Grouped** - Feature-rich app with distinct areas (posts, admin)\n- **Individual Files** - Independent functions, maximum modularity\n\n**Reference:** `docs\u002Fexamples\u002Fexpress-function-architecture.md`\n\n### 4. Security Model\n- **Server-Write-Only** (Preferred) - Cloud Functions handle all writes\n- **Client-Write** - High-volume writes, need fastest UX, complex rules\n\n**Reference:** `docs\u002Fexamples\u002Ffirestore-rules-patterns.md`\n\n## TodoWrite Workflow\n\nCreate checklist with these 14 steps:\n\n### Step 1: Verify Firebase CLI\n\n```bash\nfirebase --version  # Install via npm install -g firebase-tools if missing\nfirebase login\n```\n\n### Step 2: Create Project Directory\n\n```bash\nmkdir my-firebase-project && cd my-firebase-project\ngit init && git branch -m main\n```\n\nCreate `.gitignore` with: `node_modules\u002F`, `.env`, `.env.local`, `.firebase\u002F`, `lib\u002F`, `dist\u002F`\n\n### Step 3: Run Firebase Init\n\n```bash\nfirebase init\n```\n\nSelect: Firestore, Functions, Hosting, Emulators. Choose TypeScript for functions.\n\n### Step 4: Gather Architecture Decisions\n\nUse AskUserQuestion for the four decisions above.\n\n### Step 5: Configure firebase.json\n\nSet up based on hosting decision. Critical emulator settings:\n```json\n{\n  \"emulators\": {\n    \"singleProjectMode\": true,\n    \"ui\": { \"enabled\": true, \"port\": 4000 }\n  }\n}\n```\n\n**Reference:** `docs\u002Fexamples\u002Fmulti-hosting-setup.md`\n\n### Step 6: Set Up Functions Structure\n\nBased on architecture choice:\n\n**Express:** Create `middleware\u002F`, `tools\u002F`, `services\u002F`, `shared\u002F`\n**Domain-Grouped:** Create `shared\u002Ftypes\u002F`, `shared\u002Fvalidators\u002F`\n**Individual:** Create `functions\u002F`\n\nInstall dependencies: `express`, `cors`, `firebase-admin`, `firebase-functions`, `vitest`, `biome`\n\n### Step 7: Create Initial Functions Code\n\nCreate `functions\u002Fsrc\u002Findex.ts` with ABOUTME comments. Include health check endpoint for Express pattern.\n\n**Reference:** `docs\u002Fexamples\u002Fexpress-function-architecture.md`\n\n### Step 8: Configure Firestore Rules\n\nBased on security model decision. Always include:\n- Helper functions (`isAuthenticated()`, `isOwner()`)\n- Default deny rule at bottom\n\n**Reference:** `docs\u002Fexamples\u002Ffirestore-rules-patterns.md`\n\n### Step 9: Set Up Testing\n\nCreate `vitest.config.ts` and `vitest.emulator.config.ts`. Set up `__tests__\u002F` and `__tests__\u002Femulator\u002F` directories.\n\n### Step 10: Configure Biome\n\nCreate `biome.json` with recommended rules. Run `npm run lint:fix`.\n\n### Step 11: Set Up Environment Variables\n\nCreate `.env.example` template. Copy to `.env` and fill in values.\n\nFor hosting: create `hosting\u002F.env.local` with `NEXT_PUBLIC_USE_EMULATORS=true`.\n\n### Step 12: Initial Git Commit\n\n```bash\ngit add . && git commit -m \"feat: initial Firebase project setup\"\n```\n\n### Step 13: Start Emulators\n\n```bash\nfirebase emulators:start\nopen http:\u002F\u002F127.0.0.1:4000\n```\n\nVerify all services start. Test health endpoint if using Express.\n\n### Step 14: Create Initial Tests\n\nCreate `functions\u002Fsrc\u002F__tests__\u002Fsetup.test.ts` with basic verification. Run `npm test`.\n\n## Verification Checklist\n\nBefore marking complete:\n- [ ] Firebase CLI installed and logged in\n- [ ] TypeScript functions compile: `npm run build`\n- [ ] All tests pass: `npm test`\n- [ ] Linting passes: `npm run lint`\n- [ ] Emulators start without errors\n- [ ] Emulator UI accessible at http:\u002F\u002F127.0.0.1:4000\n- [ ] Git initialized with commits\n- [ ] `.env` files created and gitignored\n- [ ] ABOUTME comments on all files\n- [ ] Architecture decisions documented\n\n## Project Structures\n\n**Express API:**\n```\nfunctions\u002Fsrc\u002F\n├── index.ts\n├── middleware\u002FapiKeyGuard.ts\n├── tools\u002F\n├── services\u002F\n└── __tests__\u002F\n```\n\n**Domain-Grouped:**\n```\nfunctions\u002Fsrc\u002F\n├── index.ts\n├── posts.ts\n├── users.ts\n├── shared\u002Ftypes\u002F\n└── __tests__\u002F\n```\n\n**Individual Files:**\n```\nfunctions\u002F\n├── functions\u002Fupload.ts\n├── functions\u002Fprocess.ts\n└── index.js\n```\n\n## Next Steps\n\nAfter setup complete:\n1. Add first feature → `firebase-development:add-feature`\n2. Review setup → `firebase-development:validate`\n3. Debug issues → `firebase-development:debug`\n\n## Pattern References\n\n- **Hosting:** `docs\u002Fexamples\u002Fmulti-hosting-setup.md`\n- **Auth:** `docs\u002Fexamples\u002Fapi-key-authentication.md`\n- **Functions:** `docs\u002Fexamples\u002Fexpress-function-architecture.md`\n- **Rules:** `docs\u002Fexamples\u002Ffirestore-rules-patterns.md`\n- **Emulators:** `docs\u002Fexamples\u002Femulator-workflow.md`\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002F2389-research\u002Ffirebase-development-project-setup",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill firebase-development-project-setup",{"tool":58,"command":59},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill firebase-development-project-setup",{"tool":61,"command":62},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill firebase-development-project-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002F2389-research\u002Ffirebase-development-project-setup\u002FSKILL.md",true,[66,72],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"skill-report.json","REFERENCE","参考文档",19203,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002F2389-research\u002Ffirebase-development-project-setup\u002Fskill-report.json",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"SKILL.md.tmpl","OTHER","其他",3544,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Mobile-Dev\u002Ffrom-article-18-ui-ux\u002Fgstack\u002Fios-sync\u002FSKILL.md.tmpl",[79,88,97,106,112,118],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":38},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[85,86,87],"model","model hierarchy","model hierarchy skill",{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":38},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[94,95,96],"MCP","zoom","zoom mcp",{"skillNo":98,"name":99,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":38},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[103,104,105,95],"sdk","zoom apps sdk","apps",{"skillNo":107,"name":108,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":38},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[108],{"skillNo":113,"name":114,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":38},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[114],{"skillNo":119,"name":120,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":38},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[120]]