From workflow
Switches CampX backend environment config using merge-env.sh. Use PROACTIVELY when user says: 'switch env', 'switch to staging', 'switch to prod', 'switch to dev', 'change environment', 'use staging', 'use production', 'point to prod', 'point to staging'. Do NOT use for frontend env changes or Docker config.
How this skill is triggered — by the user, by Claude, or both
Slash command
/workflow:switch-envThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Announce:** "I'm using the switch-env skill to switch to [environment]."
Announce: "I'm using the switch-env skill to switch to [environment]."
Safely switch environment configuration across CampX backend services using the merge-env.sh script. Includes safety checks and service restart reminders.
NEVER modify .env files directly. ALWAYS use merge-env.sh. This is a safety rule — direct .env edits are blocked by the security hook.If not specified, ask:
Which environment? (dev / staging / prod)
If switching to prod:
⚠️ PRODUCTION ENVIRONMENT
- All API calls will hit production data
- Any database operations affect real users
- Are you sure? (yes/no)
./merge-env.sh [environment]
# or
/Users/ramchanderpeddada/Desktop/CampX/merge-env.sh [environment]
Show the output to user.
Environment switched to [env].
⚠️ RESTART REQUIRED:
Services using the old env are still running with old config.
Restart any running services manually:
- Kill running yarn dev processes
- Restart the services you need
# Show current env to confirm
cat .env | grep -E "DB_HOST|API_URL|NODE_ENV" | head -5
npx claudepluginhub ramchanderpeddada/workflow-plugin --plugin workflowGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.