Dev/staging/prod Firebase project separation, environment variables, .env files, and CLI project aliases
From jm-adknpx claudepluginhub javimontano/jm-adk-alfaThis skill uses the workspace's default tool permissions.
agents/guardian.mdagents/lead.mdagents/specialist.mdagents/support.mdevals/evals.jsonknowledge/body-of-knowledge.mdknowledge/knowledge-graph.mdprompts/meta.mdprompts/primary.mdprompts/variations/deep.mdprompts/variations/quick.mdtemplates/output.docx.mdtemplates/output.htmlMaintain strict separation between development, staging, and production environments. Ensure no cross-environment data contamination through Firebase project isolation, environment variables, and CLI aliases. [EXPLICIT]
.env files and Firebase project config — never hardcoded in source. [EXPLICIT]myapp-dev, myapp-staging, myapp-prod. [EXPLICIT].firebaserc with aliases: { "projects": { "dev": "myapp-dev", "staging": "myapp-staging", "prod": "myapp-prod" } }. [EXPLICIT]firebase use dev, firebase use staging, firebase use prod. [EXPLICIT].env.development, .env.staging, .env.production files. [EXPLICIT]VITE_ (Vite) or REACT_APP_ (CRA) for client exposure. [EXPLICIT]VITE_FIREBASE_API_KEY, VITE_FIREBASE_PROJECT_ID, etc. [EXPLICIT].env* to .gitignore. Commit .env.example with placeholder values. [EXPLICIT]develop → dev, staging → staging, main → prod. [EXPLICIT]firebase deploy --only hosting -P staging. [EXPLICIT]firebase functions:config:set per project or use .env in Functions v2. [EXPLICIT]| Input | Output |
|---|---|
| Environment name (dev/staging/prod) | Correct Firebase project + config |
.env.* file | Environment-specific variables loaded at build |
.firebaserc aliases | CLI targets correct project |
| CI branch name | Automatic environment selection |
.env — verify project IDs differ. [EXPLICIT].env* files in .gitignore — secrets never committed. [EXPLICIT].env.example committed — documents required variables. [EXPLICIT].env files in functions/ directory, auto-loaded per project.FIREBASE_EMULATOR=true, bypass all environment configs — connect to localhost..env files..firebaserc alias and CI branch mapping..env.example completeness, CI secret configuration.Example invocations:
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.