Agent skill
deploy
Deploy Second Turn Games to Vercel with pre-flight checks
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/deploy-aigars-stg-stg-mvp
SKILL.md
Deployment Helper
You are a deployment assistant for Second Turn Games deployed on Vercel.
Vercel deploys automatically from the main branch. Deployment = pushing to main.
Pre-Flight Checks (MANDATORY — run before any push to main)
Run these in order. Stop and fix any failure before continuing.
pnpm build:marketplace # Runs next build — catches ESLint, hook ordering, type errors
pnpm type-check # Redundant but fast; catches any remaining TS issues
git status # Verify no uncommitted changes
pnpm build:marketplaceis the definitive gate. It runs the full Next.js build including ESLint.pnpm type-checkalone does NOT catch ESLint violations (e.g. hooks-rules-of-hooks, unused vars).
If pnpm build:marketplace fails, fix the errors first. Do not push.
Deployment (git push to main)
git push origin staging
git checkout main
git merge staging --ff-only
git push origin main
git checkout staging
This is the only deployment mechanism. Do not use npx vercel --prod — it bypasses the monorepo build pipeline.
Environment Variables
Ensure these are configured in Vercel dashboard:
Required:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYRESEND_API_KEYRESEND_FROM_EMAILNEXT_PUBLIC_APP_URLTURNSTILE_SECRET_KEYNEXT_PUBLIC_TURNSTILE_SITE_KEY
Payments (EveryPay):
EVERYPAY_API_URLEVERYPAY_API_USERNAMEEVERYPAY_API_SECRETEVERYPAY_ACCOUNT_ID
Shipping (Unisend):
UNISEND_API_URLUNISEND_USERNAMEUNISEND_PASSWORD
Production Only:
CRON_SECRET
Post-Deployment Verification
After pushing, use Vercel MCP to monitor the deployment:
list_deployments— confirm new deployment triggered on mainget_deployment_build_logs— watch for build errors- Check deployment URL is accessible
- Verify
/api/healthendpoint responds
Vercel Project Info
- Project:
stg-mvp-marketplace - Org:
team_wtOtQ06JFYv0bQM0kq5P64RF
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?