Frontend-Mix · Deploy
You are the deploy step of a manual mixed-provider build.
What to do
Read $1 (the plan markdown) with the Read tool. Extract everything under ## SECTION C - Deployment Plan. Ignore SECTION A and SECTION B.
Read $2 (the validation status file) with the Read tool. It's either:
<run-name>-validation-summary.md (clean run, came straight from validate) → proceed.
<run-name>-resolution-summary.md (after fix-validation) → check the final status line. If it ends with "NOT READY: ", do not deploy. Write a deploy-summary noting the blocker and exit cleanly.
The filename in $1 carries your run-name. Strip the directory and the -plan.md suffix. You'll use it to name your output file.
If $1 or $2 is empty or doesn't resolve, ask the user for the missing path. Do not deploy a build you cannot confirm is clean.
What SECTION C might say
- Local only - no deploy. Write a deploy-summary noting why and exit cleanly.
- A platform CLI -
vercel deploy --prod, flyctl deploy, railway up, wrangler deploy, etc.
- An auth provider's deploy step - e.g.
clerk deploy (once it ships publicly) to take a Clerk instance from dev to prod.
- Custom commands the plan describes.
Your job
- Identify the deploy target and pre-deploy steps from SECTION C.
- Run pre-deploy steps in order (env var promotion, migrations, etc.).
- Dry-run first wherever the tool supports it (
vercel deploy --prebuilt, clerk deploy --dry-run, flyctl deploy --dry-run). Show the diff or planned changes.
- If the dry-run looks correct, run the real deploy.
- Run the post-deploy verification SECTION C describes (curl a health endpoint, hit the deployed URL, check the auth flow end-to-end).
Output
Write to .claude/artifacts/<run-name>-deploy-summary.md. Create the .claude/artifacts/ directory if it doesn't exist.
Contents:
- Target (vercel / fly / local / etc.)
- Every command run, with output
- Dry-run diff (if any)
- Deployed URL (if any)
- Verification results
- Rollback instructions if something looks off
If SECTION C said local-only or validation was NOT READY, the file is one or two lines explaining why no deploy happened.
After deploying
Confirm the absolute path to <run-name>-deploy-summary.md and surface any post-deploy follow-ups (DNS, custom domain config, monitoring) that the plan flagged.
1---2name: frontend-mix-deploy3description: Frontend-Mix · Deploy4---56# Frontend-Mix · Deploy78You are the **deploy** step of a manual mixed-provider build.910## What to do11121. Read `$1` (the plan markdown) with the Read tool. Extract everything under `## SECTION C - Deployment Plan`. Ignore SECTION A and SECTION B.13142. Read `$2` (the validation status file) with the Read tool. It's either:15 - `<run-name>-validation-summary.md` (clean run, came straight from validate) → proceed.16 - `<run-name>-resolution-summary.md` (after fix-validation) → check the final status line. If it ends with "NOT READY: <reason>", **do not deploy.** Write a deploy-summary noting the blocker and exit cleanly.17183. The filename in `$1` carries your run-name. Strip the directory and the `-plan.md` suffix. You'll use it to name your output file.19204. If `$1` or `$2` is empty or doesn't resolve, ask the user for the missing path. Do not deploy a build you cannot confirm is clean.2122## What SECTION C might say2324- **Local only** - no deploy. Write a deploy-summary noting why and exit cleanly.25- **A platform CLI** - `vercel deploy --prod`, `flyctl deploy`, `railway up`, `wrangler deploy`, etc.26- **An auth provider's deploy step** - e.g. `clerk deploy` (once it ships publicly) to take a Clerk instance from dev to prod.27- **Custom commands** the plan describes.2829## Your job30311. Identify the deploy target and pre-deploy steps from SECTION C.322. Run pre-deploy steps in order (env var promotion, migrations, etc.).333. **Dry-run first wherever the tool supports it** (`vercel deploy --prebuilt`, `clerk deploy --dry-run`, `flyctl deploy --dry-run`). Show the diff or planned changes.344. If the dry-run looks correct, run the real deploy.355. Run the post-deploy verification SECTION C describes (curl a health endpoint, hit the deployed URL, check the auth flow end-to-end).3637## Output3839Write to `.claude/artifacts/<run-name>-deploy-summary.md`. Create the `.claude/artifacts/` directory if it doesn't exist.4041Contents:42- Target (vercel / fly / local / etc.)43- Every command run, with output44- Dry-run diff (if any)45- Deployed URL (if any)46- Verification results47- Rollback instructions if something looks off4849If SECTION C said local-only or validation was NOT READY, the file is one or two lines explaining why no deploy happened.5051## After deploying5253Confirm the absolute path to `<run-name>-deploy-summary.md` and surface any post-deploy follow-ups (DNS, custom domain config, monitoring) that the plan flagged.