Environment Bootstrap
Use this skill when
Use when first cloning a fork to a fresh machine, after rotating secrets in Vercel, when running into missing/undefined env errors locally, or before invoking bun run dev for the first time on a fork.
Workflow
- Make sure the working tree is linked to the right Vercel project (
vercel link). - Run
scripts/bootstrap-env.shto pull.env.localfrom Vercel and validate it against the env contract insetup-product/assets/env-contract.json. - Confirm there are no raw
process.env.*fallbacks in code viabun run env:check. - Run integration-specific inspectors (
stripe-setup,resend-domain-setup,db-health) to spot missing secrets per integration. - Run
bun run factory:checkto confirm the fork still satisfies its contracts.
Skill graph
Read references/graph.md for routing. Related skills: setup-product, vercel-deployment, db-health, stripe-setup, resend-domain-setup.
References
- references/workflow.md: workflow details and decision points.
- references/graph.md: related skills and handoff boundaries.
- references/original-guide.md: full prior guide for deeper context.
Scripts
See scripts/README.md. Execute scripts when the workflow calls for deterministic inspection or validation.
Assets
See assets/README.md for templates/checklists.