[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76SNWS5J2JYJ7EMXA303N63":3,"skill-same:01M76SNWS5J2JYJ7EMXA303N63":71},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M76SNWS5J2JYJ7EMXA303N63","publish-to-production",null,"Maximally autonomous production deployment for NowStack - sets up Convex prod, Vercel project, env vars, build command, deploy keys, and triggers first deploy. Use when shipping the app to production for the first time, when re-syncing env vars after env changes, or when the user says \"deploy to production\", \"publish to prod\", \"ship to prod\".","zuzu59\u002Fz-skills","zuzu59","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15345233?v=4","01M756RFXRYFCM8DCAHTP0F5YW","Christian Zufferey","01M756RFYZRYH7F070CKQRMW38",0,"MIT","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fpublish-to-production\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: publish-to-production\ndescription: Maximally autonomous production deployment for NowStack - sets up Convex prod, Vercel project, env vars, build command, deploy keys, and triggers first deploy. Use when shipping the app to production for the first time, when re-syncing env vars after env changes, or when the user says \"deploy to production\", \"publish to prod\", \"ship to prod\".\n---\n\n# Publish to Production - NowStack Production Deployment\n\n\u003Cobjective>\nSet up and deploy the NowStack app to production with the LEAST manual user intervention possible. The skill provisions the Convex production deployment, puts runtime env in Convex, links\u002Fconfigures the Vercel project, sets the Convex-aware build command, keeps only deploy keys in Vercel, and kicks off the first production deploy. After deploy, it walks the user through the small set of things that genuinely cannot be automated (OAuth callback URLs, Stripe live keys, custom domain).\n\u003C\u002Fobjective>\n\n\u003Cwhen_to_use>\nUse this workflow when:\n\n- Shipping the NowStack app to production for the first time\n- Migrating from a working dev setup (`.env.local` + Convex dev) to a clean production deploy\n- Re-syncing env vars from the local env to Convex prod after key rotation\n- The user types `\u002Fpublish-to-production` or asks to \"deploy to prod\", \"ship to production\", \"publish the app\"\n\nDo NOT use this for:\n\n- Routine pushes to an already-set-up production (just `git push` triggers Vercel)\n- Setting up a fresh dev environment (use `\u002Finit-project` instead)\n- One-off env var changes (just run `npx convex env set --prod KEY value` directly)\n  \u003C\u002Fwhen_to_use>\n\n\u003Cparameters>\n**No arguments** - This workflow is interactive but autonomous. It will:\n\n- Auto-detect existing Convex \u002F Vercel \u002F .vercel \u002F .env.local state\n- Read local dev env vars and propose them as prod values (the user confirms or overrides)\n- Only ask the user for values that genuinely change between dev and prod (live Stripe keys, prod domain, OAuth callback updates)\n\n**Optional flag** the user can pass in their message:\n\n- \"skip postdeploy\" → stop after the first deploy succeeds (don't run the OAuth\u002FStripe webhook walkthrough)\n- \"dry-run\" → print every command but don't execute. Useful to inspect.\n  \u003C\u002Fparameters>\n\n\u003Cstate_variables>\n**Persist across all steps:**\n\n| Variable                   | Type    | Description                                                                                      |\n| -------------------------- | ------- | ------------------------------------------------------------------------------------------------ |\n| `{prod_domain}`            | string  | Production domain, e.g. `app.example.com`. No protocol. Set in step 00.                          |\n| `{prod_url}`               | string  | `https:\u002F\u002F{prod_domain}`. Set in step 00.                                                         |\n| `{convex_prod_deployment}` | string  | Convex prod deployment name, e.g. `discerning-finch-456`. Set in step 01.                        |\n| `{convex_prod_url}`        | string  | `https:\u002F\u002F{convex_prod_deployment}.convex.cloud`. Set in step 01.                                 |\n| `{convex_deploy_key}`      | string  | Convex Production Deploy Key (`prod:...`). User-provided in step 03.                             |\n| `{vercel_project_name}`    | string  | Vercel project name. Read from `.vercel\u002Fproject.json` if linked, else picked.                    |\n| `{vercel_team_slug}`       | string  | Vercel team slug. Read from `.vercel\u002Fproject.json` if linked.                                    |\n| `{stripe_mode}`            | string  | `\"test\"` or `\"live\"`. Detected from local `STRIPE_SECRET_KEY` prefix (`sk_test_` vs `sk_live_`). |\n| `{has_oauth_github}`       | boolean | Whether GitHub OAuth is configured locally. Determines step 04 callback walkthrough.             |\n| `{has_oauth_google}`       | boolean | Whether Google OAuth is configured locally.                                                      |\n| `{dry_run}`                | boolean | If true, every shell call is printed inside a fenced block instead of executed.                  |\n| `{skip_postdeploy}`        | boolean | If true, skip step 04.                                                                           |\n\n\u003C\u002Fstate_variables>\n\n\u003Centry_point>\nLoad `steps\u002Fstep-00-init.md`\n\u003C\u002Fentry_point>\n\n\u003Cstep_files>\n| Step | File | Purpose |\n| ---- | ----------------------------- | ------------------------------------------------------------------------ |\n| 00 | `step-00-init.md` | Preflight: check CLIs, read state, ask only for `{prod_domain}` if missing |\n| 01 | `step-01-convex-prod.md` | Provision Convex prod deployment + mirror all required Convex env vars |\n| 02 | `step-02-vercel-setup.md` | Link Vercel project, write `vercel.json`, prune Vercel env, ensure deploy keys |\n| 03 | `step-03-deploy.md` | Verify deploy keys and trigger first prod deploy |\n| 04 | `step-04-postdeploy.md` | Stripe webhook, OAuth callback URLs, Resend domain, sanity tests |\n\u003C\u002Fstep_files>\n\n\u003Cworkflow_diagram>\n\n```\n┌──────────────┐    ┌──────────────┐    ┌──────────────┐\n│  Step 00     │───►│  Step 01     │───►│  Step 02     │\n│  Preflight   │    │  Convex prod │    │  Vercel      │\n└──────────────┘    └──────────────┘    └──────────────┘\n                                               │\n       ┌───────────────────────────────────────┘\n       ▼\n┌──────────────┐    ┌──────────────┐\n│  Step 03     │───►│  Step 04     │\n│  Deploy      │    │  Postdeploy  │\n└──────────────┘    └──────────────┘\n```\n\n\u003C\u002Fworkflow_diagram>\n\n\u003Cimportant_files>\n**Files this workflow may create or modify (root paths):**\n\n| File                             | Change                                                                                     |\n| -------------------------------- | ------------------------------------------------------------------------------------------ |\n| `.vercel\u002Fproject.json`           | Created by `vercel link` if not present                                                    |\n| `vercel.json`                    | Created\u002Foverwritten with the Convex+Vercel build command and framework settings            |\n| (Convex prod env, NOT a file)    | Mutated via `npx convex env set --prod KEY value` for each required backend secret         |\n| (Vercel project env, NOT a file) | Mutated only for Convex deploy keys; runtime secrets stay in Convex                        |\n| `.env.production` (optional)     | NOT created by default. Only created if user requests a local prod env file for debugging. |\n\n**Files this workflow READS:**\n\n- `.env` and `.env.local` (source of truth for local secrets to mirror)\n- `convex\u002F**\u002F*.ts` (to verify which env vars Convex actually consumes)\n- `src\u002Flib\u002Fenv.ts` (to verify which env vars the Vercel runtime needs)\n- `src\u002Fsite-config.ts` (domain context) and `convex\u002Fhttp.ts` + `convex\u002Fstripe\u002Factions.ts` (Stripe webhook lives in Convex, not in `src\u002Froutes\u002Fapi\u002F`)\n- `package.json` (to confirm `build` script and Convex\u002FVercel CLI availability)\n\n\u003C\u002Fimportant_files>\n\n\u003Cstack_context>\nThis project is **NowStack v2**:\n\n- **Backend**: Convex (no Postgres \u002F no Prisma)\n- **Frontend**: Vite + TanStack Start + Nitro (deployed as a Node.js \u002F serverless app on Vercel)\n- **Auth**: Better Auth via `@convex-dev\u002Fbetter-auth` component (lives entirely in Convex)\n- **Email**: Resend via `@convex-dev\u002Fresend` component (Resend API key in Convex env)\n- **Payments**: Stripe via custom Convex actions (`convex\u002Fstripe\u002Factions.ts`). The webhook is a Convex `httpAction` mounted at `https:\u002F\u002F\u003Cdeployment>.convex.site\u002Fstripe\u002Fwebhook` (registered with Stripe via `node scripts\u002Fsetup-stripe-webhook.mjs`). Webhooks never hit Vercel — there is no TanStack webhook route.\n- **File upload**: Cloudflare R2 via Convex actions in `convex\u002Ffiles\u002Factions.ts`\n\n**TWO places env vars must be set for prod to work:**\n\n1. **Convex prod env** (server-side secrets used inside `convex\u002F**` functions): set via `npx convex env set --prod KEY value`\n2. **Vercel project env** only stores deploy keys: `CONVEX_DEPLOY_KEY` for Production\u002FPreview and `CONVEX_PROD_DEPLOY_KEY` for Preview production snapshot imports.\n\nThe Vercel build command must be `pnpm convex:deploy:vercel`. That script runs `npx convex deploy --cmd 'pnpm build' --cmd-url-env-var-name VITE_CONVEX_URL`, so Convex deploys from the same commit and injects `VITE_CONVEX_URL` into the Vite build.\n\nSee `references\u002Fenv-mapping.md` for the full canonical list of which var lives where and why.\n\u003C\u002Fstack_context>\n\n\u003Cprinciples>\n- **Mirror, don't reinvent.** For most env vars, the prod value is identical to the local dev value. Read `.env` \u002F `.env.local`, propose, confirm. Only ask the user to provide a new value when prod genuinely differs (live Stripe keys, prod domain, prod OAuth client).\n- **Echo what you're about to do BEFORE doing it.** Print the command. Run it. Print the result. Never silently mutate cloud state.\n- **Idempotent by construction.** If Convex prod is already created, skip creation. If `vercel.json` already has the right `buildCommand`, skip. Use `pnpm vercel:setup-convex-env` to prune stale Vercel vars and preserve only deploy keys. Re-runs of this skill should be safe.\n- **Stop on failure.** If `npx convex env set --prod` fails for any var, stop immediately. Don't attempt the Vercel step with a broken Convex prod.\n- **Never log secret values to the terminal.** When echoing what's set, mask values like `sk_live_***...***1234`.\n\u003C\u002Fprinciples>\n\n\u003Ccritical_safety>\n🛑 **NEVER run `vercel --prod` or `vercel deploy --prod` until step 03.** The first deploy must happen AFTER `vercel.json` and Vercel env vars are in place, otherwise Vercel will deploy a broken build and the user has to roll back.\n\n🛑 **NEVER write secrets to git-tracked files.** No secrets in `vercel.json`, `package.json`, `CHANGELOG.md`, or any committed file.\n\n🛑 **NEVER `vercel env add` app\u002Fruntime variables such as `STRIPE_*`, `RESEND_*`, `R2_*`, OAuth secrets, or `VITE_EMAIL_CONTACT`.** Those belong in Convex or static app config, not Vercel.\n\n🛑 **NEVER reuse the dev Convex deployment as production.** A fresh `convex deployment create --prod` (or first `convex deploy`) creates the prod deployment. Conflating dev and prod data is unrecoverable.\n\u003C\u002Fcritical_safety>\n\n\u003Csuccess_metrics>\n✅ A `https:\u002F\u002F{prod_domain}` URL responds with a working app\n✅ Sign up \u002F sign in works end-to-end (Better Auth + Resend email delivery)\n✅ Stripe checkout and webhook end-to-end work\n✅ `npx convex env list --prod` returns every var listed in `references\u002Fenv-mapping.md` (Convex column), with `STRIPE_WEBHOOK_SECRET` added after the Stripe webhook exists\n✅ `vercel env ls` returns only the Vercel deploy keys listed in `references\u002Fenv-mapping.md`\n✅ `git push` to the production branch automatically triggers `pnpm convex:deploy:vercel` on Vercel\n✅ `CHANGELOG.md` has a `FEATURE:` entry for the production launch\n\u003C\u002Fsuccess_metrics>\n\n\u003Cfailure*modes>\n❌ Setting `STRIPE_WEBHOOK_SECRET` only in Vercel. The webhook route is `convex\u002Fhttp.ts`, so the signing secret must live in Convex prod env\n❌ Forgetting `CONVEX_DEPLOY_KEY` in Vercel - the build will fail because `npx convex deploy` has no auth\n❌ Forgetting `CONVEX_PROD_DEPLOY_KEY` in Vercel Preview - preview builds cannot import a production snapshot\n❌ Setting `SITE_URL` to the Vercel auto-URL (`*.vercel.app`) instead of the custom prod domain - OAuth and email links will break\n❌ Not adding `https:\u002F\u002F{prod_url}\u002Fapi\u002Fauth\u002Fcallback\u002F{provider}` to GitHub\u002FGoogle OAuth apps - users get OAuth callback errors\n❌ Leaving `EMAIL_FROM` set to `onboarding@resend.dev` in prod - Resend will silently drop emails to non-test recipients\n❌ Setting test-mode Stripe keys in production (`sk_test*` and `pk_*test*`) - real users cannot pay\n❌ Modifying `.env` for prod values - this file is local-only; production env lives in Convex \u002F Vercel\n\u003C\u002Ffailure_modes>\n\n## NEXT STEP\n\nLoad `steps\u002Fstep-00-init.md`.\n","# Publish to Production - NowStack Production Deployment\n\n\u003Cobjective>\nSet up and deploy the NowStack app to production with the LEAST manual user intervention possible. The skill provisions the Convex production deployment, puts runtime env in Convex, links\u002Fconfigures the Vercel project, sets the Convex-aware build command, keeps only deploy keys in Vercel, and kicks off the first production deploy. After deploy, it walks the user through the small set of things that genuinely cannot be automated (OAuth callback URLs, Stripe live keys, custom domain).\n\u003C\u002Fobjective>\n\n\u003Cwhen_to_use>\nUse this workflow when:\n\n- Shipping the NowStack app to production for the first time\n- Migrating from a working dev setup (`.env.local` + Convex dev) to a clean production deploy\n- Re-syncing env vars from the local env to Convex prod after key rotation\n- The user types `\u002Fpublish-to-production` or asks to \"deploy to prod\", \"ship to production\", \"publish the app\"\n\nDo NOT use this for:\n\n- Routine pushes to an already-set-up production (just `git push` triggers Vercel)\n- Setting up a fresh dev environment (use `\u002Finit-project` instead)\n- One-off env var changes (just run `npx convex env set --prod KEY value` directly)\n  \u003C\u002Fwhen_to_use>\n\n\u003Cparameters>\n**No arguments** - This workflow is interactive but autonomous. It will:\n\n- Auto-detect existing Convex \u002F Vercel \u002F .vercel \u002F .env.local state\n- Read local dev env vars and propose them as prod values (the user confirms or overrides)\n- Only ask the user for values that genuinely change between dev and prod (live Stripe keys, prod domain, OAuth callback updates)\n\n**Optional flag** the user can pass in their message:\n\n- \"skip postdeploy\" → stop after the first deploy succeeds (don't run the OAuth\u002FStripe webhook walkthrough)\n- \"dry-run\" → print every command but don't execute. Useful to inspect.\n  \u003C\u002Fparameters>\n\n\u003Cstate_variables>\n**Persist across all steps:**\n\n| Variable                   | Type    | Description                                                                                      |\n| -------------------------- | ------- | ------------------------------------------------------------------------------------------------ |\n| `{prod_domain}`            | string  | Production domain, e.g. `app.example.com`. No protocol. Set in step 00.                          |\n| `{prod_url}`               | string  | `https:\u002F\u002F{prod_domain}`. Set in step 00.                                                         |\n| `{convex_prod_deployment}` | string  | Convex prod deployment name, e.g. `discerning-finch-456`. Set in step 01.                        |\n| `{convex_prod_url}`        | string  | `https:\u002F\u002F{convex_prod_deployment}.convex.cloud`. Set in step 01.                                 |\n| `{convex_deploy_key}`      | string  | Convex Production Deploy Key (`prod:...`). User-provided in step 03.                             |\n| `{vercel_project_name}`    | string  | Vercel project name. Read from `.vercel\u002Fproject.json` if linked, else picked.                    |\n| `{vercel_team_slug}`       | string  | Vercel team slug. Read from `.vercel\u002Fproject.json` if linked.                                    |\n| `{stripe_mode}`            | string  | `\"test\"` or `\"live\"`. Detected from local `STRIPE_SECRET_KEY` prefix (`sk_test_` vs `sk_live_`). |\n| `{has_oauth_github}`       | boolean | Whether GitHub OAuth is configured locally. Determines step 04 callback walkthrough.             |\n| `{has_oauth_google}`       | boolean | Whether Google OAuth is configured locally.                                                      |\n| `{dry_run}`                | boolean | If true, every shell call is printed inside a fenced block instead of executed.                  |\n| `{skip_postdeploy}`        | boolean | If true, skip step 04.                                                                           |\n\n\u003C\u002Fstate_variables>\n\n\u003Centry_point>\nLoad `steps\u002Fstep-00-init.md`\n\u003C\u002Fentry_point>\n\n\u003Cstep_files>\n| Step | File | Purpose |\n| ---- | ----------------------------- | ------------------------------------------------------------------------ |\n| 00 | `step-00-init.md` | Preflight: check CLIs, read state, ask only for `{prod_domain}` if missing |\n| 01 | `step-01-convex-prod.md` | Provision Convex prod deployment + mirror all required Convex env vars |\n| 02 | `step-02-vercel-setup.md` | Link Vercel project, write `vercel.json`, prune Vercel env, ensure deploy keys |\n| 03 | `step-03-deploy.md` | Verify deploy keys and trigger first prod deploy |\n| 04 | `step-04-postdeploy.md` | Stripe webhook, OAuth callback URLs, Resend domain, sanity tests |\n\u003C\u002Fstep_files>\n\n\u003Cworkflow_diagram>\n\n```\n┌──────────────┐    ┌──────────────┐    ┌──────────────┐\n│  Step 00     │───►│  Step 01     │───►│  Step 02     │\n│  Preflight   │    │  Convex prod │    │  Vercel      │\n└──────────────┘    └──────────────┘    └──────────────┘\n                                               │\n       ┌───────────────────────────────────────┘\n       ▼\n┌──────────────┐    ┌──────────────┐\n│  Step 03     │───►│  Step 04     │\n│  Deploy      │    │  Postdeploy  │\n└──────────────┘    └──────────────┘\n```\n\n\u003C\u002Fworkflow_diagram>\n\n\u003Cimportant_files>\n**Files this workflow may create or modify (root paths):**\n\n| File                             | Change                                                                                     |\n| -------------------------------- | ------------------------------------------------------------------------------------------ |\n| `.vercel\u002Fproject.json`           | Created by `vercel link` if not present                                                    |\n| `vercel.json`                    | Created\u002Foverwritten with the Convex+Vercel build command and framework settings            |\n| (Convex prod env, NOT a file)    | Mutated via `npx convex env set --prod KEY value` for each required backend secret         |\n| (Vercel project env, NOT a file) | Mutated only for Convex deploy keys; runtime secrets stay in Convex                        |\n| `.env.production` (optional)     | NOT created by default. Only created if user requests a local prod env file for debugging. |\n\n**Files this workflow READS:**\n\n- `.env` and `.env.local` (source of truth for local secrets to mirror)\n- `convex\u002F**\u002F*.ts` (to verify which env vars Convex actually consumes)\n- `src\u002Flib\u002Fenv.ts` (to verify which env vars the Vercel runtime needs)\n- `src\u002Fsite-config.ts` (domain context) and `convex\u002Fhttp.ts` + `convex\u002Fstripe\u002Factions.ts` (Stripe webhook lives in Convex, not in `src\u002Froutes\u002Fapi\u002F`)\n- `package.json` (to confirm `build` script and Convex\u002FVercel CLI availability)\n\n\u003C\u002Fimportant_files>\n\n\u003Cstack_context>\nThis project is **NowStack v2**:\n\n- **Backend**: Convex (no Postgres \u002F no Prisma)\n- **Frontend**: Vite + TanStack Start + Nitro (deployed as a Node.js \u002F serverless app on Vercel)\n- **Auth**: Better Auth via `@convex-dev\u002Fbetter-auth` component (lives entirely in Convex)\n- **Email**: Resend via `@convex-dev\u002Fresend` component (Resend API key in Convex env)\n- **Payments**: Stripe via custom Convex actions (`convex\u002Fstripe\u002Factions.ts`). The webhook is a Convex `httpAction` mounted at `https:\u002F\u002F\u003Cdeployment>.convex.site\u002Fstripe\u002Fwebhook` (registered with Stripe via `node scripts\u002Fsetup-stripe-webhook.mjs`). Webhooks never hit Vercel — there is no TanStack webhook route.\n- **File upload**: Cloudflare R2 via Convex actions in `convex\u002Ffiles\u002Factions.ts`\n\n**TWO places env vars must be set for prod to work:**\n\n1. **Convex prod env** (server-side secrets used inside `convex\u002F**` functions): set via `npx convex env set --prod KEY value`\n2. **Vercel project env** only stores deploy keys: `CONVEX_DEPLOY_KEY` for Production\u002FPreview and `CONVEX_PROD_DEPLOY_KEY` for Preview production snapshot imports.\n\nThe Vercel build command must be `pnpm convex:deploy:vercel`. That script runs `npx convex deploy --cmd 'pnpm build' --cmd-url-env-var-name VITE_CONVEX_URL`, so Convex deploys from the same commit and injects `VITE_CONVEX_URL` into the Vite build.\n\nSee `references\u002Fenv-mapping.md` for the full canonical list of which var lives where and why.\n\u003C\u002Fstack_context>\n\n\u003Cprinciples>\n- **Mirror, don't reinvent.** For most env vars, the prod value is identical to the local dev value. Read `.env` \u002F `.env.local`, propose, confirm. Only ask the user to provide a new value when prod genuinely differs (live Stripe keys, prod domain, prod OAuth client).\n- **Echo what you're about to do BEFORE doing it.** Print the command. Run it. Print the result. Never silently mutate cloud state.\n- **Idempotent by construction.** If Convex prod is already created, skip creation. If `vercel.json` already has the right `buildCommand`, skip. Use `pnpm vercel:setup-convex-env` to prune stale Vercel vars and preserve only deploy keys. Re-runs of this skill should be safe.\n- **Stop on failure.** If `npx convex env set --prod` fails for any var, stop immediately. Don't attempt the Vercel step with a broken Convex prod.\n- **Never log secret values to the terminal.** When echoing what's set, mask values like `sk_live_***...***1234`.\n\u003C\u002Fprinciples>\n\n\u003Ccritical_safety>\n🛑 **NEVER run `vercel --prod` or `vercel deploy --prod` until step 03.** The first deploy must happen AFTER `vercel.json` and Vercel env vars are in place, otherwise Vercel will deploy a broken build and the user has to roll back.\n\n🛑 **NEVER write secrets to git-tracked files.** No secrets in `vercel.json`, `package.json`, `CHANGELOG.md`, or any committed file.\n\n🛑 **NEVER `vercel env add` app\u002Fruntime variables such as `STRIPE_*`, `RESEND_*`, `R2_*`, OAuth secrets, or `VITE_EMAIL_CONTACT`.** Those belong in Convex or static app config, not Vercel.\n\n🛑 **NEVER reuse the dev Convex deployment as production.** A fresh `convex deployment create --prod` (or first `convex deploy`) creates the prod deployment. Conflating dev and prod data is unrecoverable.\n\u003C\u002Fcritical_safety>\n\n\u003Csuccess_metrics>\n✅ A `https:\u002F\u002F{prod_domain}` URL responds with a working app\n✅ Sign up \u002F sign in works end-to-end (Better Auth + Resend email delivery)\n✅ Stripe checkout and webhook end-to-end work\n✅ `npx convex env list --prod` returns every var listed in `references\u002Fenv-mapping.md` (Convex column), with `STRIPE_WEBHOOK_SECRET` added after the Stripe webhook exists\n✅ `vercel env ls` returns only the Vercel deploy keys listed in `references\u002Fenv-mapping.md`\n✅ `git push` to the production branch automatically triggers `pnpm convex:deploy:vercel` on Vercel\n✅ `CHANGELOG.md` has a `FEATURE:` entry for the production launch\n\u003C\u002Fsuccess_metrics>\n\n\u003Cfailure*modes>\n❌ Setting `STRIPE_WEBHOOK_SECRET` only in Vercel. The webhook route is `convex\u002Fhttp.ts`, so the signing secret must live in Convex prod env\n❌ Forgetting `CONVEX_DEPLOY_KEY` in Vercel - the build will fail because `npx convex deploy` has no auth\n❌ Forgetting `CONVEX_PROD_DEPLOY_KEY` in Vercel Preview - preview builds cannot import a production snapshot\n❌ Setting `SITE_URL` to the Vercel auto-URL (`*.vercel.app`) instead of the custom prod domain - OAuth and email links will break\n❌ Not adding `https:\u002F\u002F{prod_url}\u002Fapi\u002Fauth\u002Fcallback\u002F{provider}` to GitHub\u002FGoogle OAuth apps - users get OAuth callback errors\n❌ Leaving `EMAIL_FROM` set to `onboarding@resend.dev` in prod - Resend will silently drop emails to non-test recipients\n❌ Setting test-mode Stripe keys in production (`sk_test*` and `pk_*test*`) - real users cannot pay\n❌ Modifying `.env` for prod values - this file is local-only; production env lives in Convex \u002F Vercel\n\u003C\u002Ffailure_modes>\n\n## NEXT STEP\n\nLoad `steps\u002Fstep-00-init.md`.\n",{"name":5,"description":7},"master","46a82833a3f7f6f5f408511246a55e0485c5f7ab","skills\u002Fpublish-to-production",1,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills","https:\u002F\u002Fgithub.com\u002Fzuzu59","2026-09-30 17:58:42",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add zuzu59\u002Fz-skills --skill publish-to-production",{"tool":37,"command":38},"bunx","bunx skills add zuzu59\u002Fz-skills --skill publish-to-production",{"tool":40,"command":41},"pnpm","pnpm dlx skills add zuzu59\u002Fz-skills --skill publish-to-production","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fpublish-to-production\u002FSKILL.md",true,[45,51,55,59,63,67],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fenv-mapping.md","REFERENCE","参考文档",4792,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fpublish-to-production\u002Freferences\u002Fenv-mapping.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"steps\u002Fstep-00-init.md",8989,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fpublish-to-production\u002Fsteps\u002Fstep-00-init.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"steps\u002Fstep-01-convex-prod.md",12000,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fpublish-to-production\u002Fsteps\u002Fstep-01-convex-prod.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"steps\u002Fstep-02-vercel-setup.md",2273,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fpublish-to-production\u002Fsteps\u002Fstep-02-vercel-setup.md",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"steps\u002Fstep-03-deploy.md",7217,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fpublish-to-production\u002Fsteps\u002Fstep-03-deploy.md",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"steps\u002Fstep-04-postdeploy.md",9434,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fpublish-to-production\u002Fsteps\u002Fstep-04-postdeploy.md",[72,79,86,93,100,107],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M76SQGVSKRYNQX4AA4RXV3K0","writing-great-skills","Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-great-skills\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M76SQDSAZSA1272D56JY8Q2G","use-style","Apply named visual style guides to landing pages, app shells, and UI. Use for $use-style, \u002Fuseskill, list styles, or styles like ios-app, grid, vercel, black-grid, stripe, linear, raycast, gumroad, dusk, or luma.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-style\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M76SQAXDVX02V4JH4PF1MC9G","use-goal","Use when the user asks to create, draft, set, start, or refine a Codex or Claude Code `\u002Fgoal` objective for persistent multi-turn work.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-goal\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M76SQ8B11GTTGQ5CZHHGXFXM","use-fable","Orchestrator mode for Fable: Fable thinks, plans, and reviews while Codex CLI and subagents execute all heavy work. Use when the user invokes \u002Fuse-fable, says 'use fable', 'fable mode', 'orchestrator mode', or wants to save Fable tokens\u002Frate limits.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-fable\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M76SQ4SB7Q4CXEGGPA75KGFK","use-delegate","Delegation mode: the host agent (Claude or Codex) plans and reviews while heavy work runs on cheap executors: OpenCode Kimi K3, Codex GPT-5.6 terra\u002Fsol. Use when the user invokes \u002Fuse-delegate, says 'use delegate', 'delegate mode', 'orchestrator mode', or wants to save tokens\u002Frate limits.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-delegate\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M76SQ24836GDGMGGPV6Z2B7N","use-artifacts","Create Claude-style local HTML artifacts under ~\u002F.agents\u002Fartifacts. Use for plans, prototypes, visualizations, dashboards, diagrams, options, or substantial reusable content, with a portable local runtime and no Anthropic API.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-artifacts\u002FSKILL.md",[],[]]