Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

deploy-site

FreeRuns bundled scriptsNot checked

Land every site-related fix on main, deploy opentraces.ai to Vercel production, and verify it works across all pages (desktop + mobile) and the email-capture…

JayFareiby JayFarei★ 107 GitHub stars

About this skill

Deploy Site

Deploy the Next.js marketing site (web/site/) to Vercel production, but treat it as a goal, not a single command: land every site-related fix on main, deploy it, prove it works in production across all pages and the email-capture flow on desktop and mobile, and keep fixing + re-deploying until everything is green.

Goal contract

Run this skill as a closed loop. Do not declare success on a clean Vercel deploy alone; a deploy can succeed while a page 500s, a layout breaks on mobile, or the waitlist write silently fails.

  • DONE when: all site-related fixes are committed and pushed to main, the production deploy succeeded, every route below returns 200 and renders correctly on desktop and mobile with no console/network errors, and the email-capture flow accepts a submission and persists it (proven by admin read), with no test rows left behind.
  • NOT DONE (loop again) when: any route fails to render, a layout breaks at a viewport, the console shows errors, or email capture does not round-trip. Fix in source, re-land, re-deploy, re-verify.
  • BLOCKED (stop and report) when: a fix needs a credential/decision you don't have (e.g. KV store down, admin token missing, Vercel auth expired), or the same failure survives 3 fix attempts. Report the exact failure + what you tried; do not loop forever.

Keep a short running log of each iteration (what failed, what you changed, re-verify result) so the loop is auditable. If the user wants this as a persistent /goal, point the goal at this skill and use the same DONE/BLOCKED conditions.

The loop

Phase 0  Scope & land     gather site fixes -> local verify -> commit -> push main
Phase 1  Deploy           build -> npx vercel@latest --prod (from repo root)
Phase 2  Verify (prod)    Workflow fan-out: routes x viewports + email capture
Phase 3  Triage           any red? fix in source -> back to Phase 0
                          all green? -> DONE

Context

  • Project: opentraces on Vercel (scope jayfareis-projects)
  • Framework: Next.js 16 (App Router)
  • Root directory: Vercel is configured with root at web/site/
  • Domain: opentraces.ai (production: https://opentraces.ai)
  • Build: next build (runs from web/site/)
  • Version: Auto-read from src/opentraces/__init__.py at build time via next.config.ts
  • Email capture: EarlyAccessForm posts to /api/waitlist (Upstash/KV in prod). Renders on / (via HubTeaser) and /hub. See the Reference section for selectors + admin read.

Phase 0 — Scope & land the site fixes

  1. Find what is site-related and unlanded. The working tree often holds a mix of site + non-site changes. Land only the site fixes here (the rest is a separate concern).

    git status --short web/site/
    git status --short -- ':!web/site/'   # non-site changes, usually leave these
    git log --oneline origin/main..HEAD -- web/site/   # site commits not yet pushed
    
  2. Local verify before landing (gate). Run the site against the already-running dev server and check the changed surface with agent-browser: light + dark, desktop + mobile, the specific interaction you changed, plus console/network clean. This is the pre-land gate; do not commit a visual regression. (If no dev server is up, cd web/site && npm run dev on a spare port, verify, then stop it.)

  3. Build locally (catches type/build errors the dev server hides):

    cd web/site && npm run build
    

    Fix any build failure before continuing.

  4. Commit to main and push. Per project convention, commit straight to main (do not auto-create a feature branch unless asked). Keep the commit scoped to the site fix; co-author the commit per the repo footer rule.

    git add web/site/   # stage only the site fixes you verified
    git commit -m "fix(site): <what changed>"
    git push origin main
    

Phase 1 — Build & deploy

Deploy from the repo root (not web/site/), because Vercel resolves the root directory from its project settings (rootDirectory=web/site). Running from inside web/site/ double-nests the path. Always pin to the latest CLI (npx vercel@latest).

cd /path/to/repo/root
rm -rf web/site/.next kb/app/.next   # stale build output; bloats the upload
npx vercel@latest --prod --yes

Do NOT use --archive=tgz (measured 2026-06-26, CLI 54.x). --archive=tgz tars the whole working tree and bypasses .vercelignore, so it hauls up .git-minus-nothing-else plus kb/, .otbox/, web/site/.next-test/, etc. — a ~3 GB / 1998-file upload that takes minutes and once hung for ~20 min at "Extracting deployment files" on the build machine (a real prod stall we hit). The default file-by-file path on vercel@latest instead:

  • respects .vercelignore → ~628 files / ~40 MB,
  • uploads in ~2 s and reaches READY in ~60 s end-to-end,
  • does not hit
Full SKILL.md on GitHub

Install deploy-site in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

verify-site-deploy.workflow.js

FAQ

What does the deploy-site skill do?

Land every site-related fix on main, deploy opentraces.ai to Vercel production, and verify it works across all pages (desktop + mobile) and the email-capture flow, fixing and re-deploying until green. Runs as a goal: land -> deploy -> verify -> triage -> repeat until safe. Use when the user says "deploy site", "deploy to vercel", "push site", "ship the site", "deploy-site", or "land and verify the site". For a full coordinated release that also bumps the version and publishes the Python packages, use /release-pack instead.

How do I install the deploy-site skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the deploy-site skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare deploy-site with