From ncode-saas-toolkit-mobile
Mobile environment management - Firebase dev vs production projects, EAS build profiles, RevenueCat environments, and TestFlight/internal testing. Use when setting up environments or preparing for release.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ncode-saas-toolkit-mobile:mobile-staging-productionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
| Environment | Firebase Project | EAS Profile | RevenueCat | Distribution |
| Environment | Firebase Project | EAS Profile | RevenueCat | Distribution |
|---|---|---|---|---|
| Development | firebase-dev | development | Sandbox | Your device only |
| Staging | firebase-dev | preview | Sandbox | TestFlight / Internal Track |
| Production | firebase-prod | production | Live | App Store / Play Store |
Create separate Firebase projects for dev and production:
my-app-dev # Development + staging
my-app-prod # Production only
Why separate?
Keep both config files:
config/
firebase-dev/
google-services.json
GoogleService-Info.plist
firebase-prod/
google-services.json
GoogleService-Info.plist
In eas.json, copy the right config at build time:
{
"build": {
"development": {
"env": { "APP_ENV": "development" }
},
"preview": {
"env": { "APP_ENV": "staging" }
},
"production": {
"env": { "APP_ENV": "production" }
}
}
}
In app.config.ts:
const IS_PROD = process.env.APP_ENV === 'production';
export default {
// ...
android: {
googleServicesFile: IS_PROD
? './config/firebase-prod/google-services.json'
: './config/firebase-dev/google-services.json',
},
ios: {
googleServicesFile: IS_PROD
? './config/firebase-prod/GoogleService-Info.plist'
: './config/firebase-dev/GoogleService-Info.plist',
},
};
RevenueCat automatically detects sandbox vs production based on the receipt:
# Build for preview
eas build --profile preview --platform ios
# Submit to TestFlight
eas submit --platform ios
# Build for preview
eas build --profile preview --platform android
# Submit to internal testing
eas submit --platform android
npx claudepluginhub dangogit/ncode-saas-toolkit-mobile --plugin ncode-saas-toolkit-mobileCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.