Home / Market / vibecode production qa validator

vibecode production qa validator

13-phase production QA for fullstack Next.js apps: build verification, SEO tags, OG images, favicon, route regression, API auth, page speed, lazy load, vulnerability scan, UI/UX cards, error boundaries, database, secure rendering, and cleanup.

skill★ 508360 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: vibecode-production-qa-validator description: "13-phase production QA for fullstack Next.js apps: build verification, SEO tags, OG images, favicon, route regression, API auth, page speed, lazy load, vulnerability scan, UI/UX cards, error boundaries, database, secure rendering, and cleanup." category: devops risk: critical source: self source_type: self date_added: "2026-05-31" author: Whoisabhishekadhikari tags: [qa, nextjs, production, deployment, seo, authentication, api, performance, favicon, cleanup, lighthouse, database, security, ui-ux] tools: [claude, cursor, gemini, claude-code, opencode] version: 2.0.0

---

Production QA Validator

Use the applicable phases in order and record evidence for each as passed, failed, incomplete or not applicable with a reason. Missing tooling, no tests, failed network calls and unperformed manual checks are incomplete, never success. Confirm project scripts, versions, approved URLs/methods, request limits, credentials and mutation boundaries before running. Builds/tests/lint/plugins can execute project code, write caches or reach services; they are not inherently read-only. Do not install hooks or overwrite existing config without authorization.

When to Use

export PROD_URL="https://yourdomain.com"
export QA_AUTH_HEADER=""       # optional: "Bearer eyJ..."
export PAGESPEED_API_KEY=""    # optional: for auto PageSpeed API

---

Evidence and a Bounded Route Check

The former consolidated qa:* runner returned successful exit codes after warnings, hid tool/network failures and inferred security from grep matches. It has been removed; a checklist is not an implemented automated gate. Use the project's actual checks and parse structured outputs. Keep raw logs private and redact secrets rather than echoing matched credential lines.

# Bash, approved staging target only; expect the exact documented status.
qa_route() {
  local route="$1" expected="$2" code
  code=$(curl --silent --show-error --max-time 15 --connect-timeout 5 \
    --output /dev/null --write-out '%{http_code}' "$PROD_URL$route") || return 1
  printf '%s %s\n' "$code" "$route"
  [ "$code" = "$expected" ]
}
qa_route / 200
qa_route /api/protected 401  # choose401/403 from the actual contract

Do not follow redirects carrying credentials to other origins. A status check proves only that response, not content, authorization, availability, SEO or a complete workflow. Auth probes need real configured endpoints and correct methods; never call logout/login mutations indiscriminately in production. Validate object/tenant isolation with owned synthetic accounts and explicit negative cases.

---

Phase 1: Code Integrity

---

Phase 2: Build Verification

| Symbol | Meaning | |--------|---------| | ○ | Static | | ● | SSG | | λ | Dynamic/serverless | | ⊕ | Partial prerender |

---

Phase 3: API Session & Authentication

---

Phase 4: Route Regression

---

Phase 5: SEO — Tags, Images, Favicon, Slugs

---

Phase 6: API Route Behavior

---

Phase 7: Git Hygiene

---

Phase 8: Post-Deployment Smoke Test

---

Phase 9: Page Speed, Lazy Load & Bundles

---

Phase 10: Cleanup & Vulnerability Scan

---

Phase 11: UI/UX — Cards, Animation, Error Boundaries

---

Phase 12: Database & Data Layer

---

Phase 13: Secure Data Rendering

---

Pre-Commit Hook

Use the project's existing hook manager and preserve installed hooks. Configure only after authorization; local hooks can be bypassed and do not replace CI.

---

CI/CD (GitHub Actions)

Template only: select pinned compatible tools/actions, the actual test runner and explicit permissions. Do not enable production probes or pass secrets to untrusted PR code.

name: QA
on: [push, pull_request]
jobs:
  qa:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
      - run: npm ci
      - run: npx tsc --noEmit
      - run: npm run lint
      - run: npm test # configure zero-test discovery to fail
      - run: npm run build

---

Best Practices

| ✅ Do | ❌ Don't | |-------|----------| | Run full 13-phase flow before deploy | Skip typecheck or lint | | Set PROD_URL in profile/.envrc | Hardcode URLs in scripts | | OG images ≥ 1200×630 | Use small OG images | | Animate with transform+opacity | Animate width/height/top | | Show loading/error/empty states | Leave users on blank screens | | prefers-reduced-motion for animations | Force motion on all users | | HttpOnly + Secure cookies for tokens | localStorage for auth tokens | | Error boundaries at all levels | White screen on crash | | Database indexes + include/populate | N+1 queries in loops | | npm audit before deploy | Deploy with known vulns |

---

Common Pitfalls

| Problem | Solution | |---------|----------| | OG tags missing in raw HTML | Use export const metadata in Next.js | | Disallow: / in robots.txt | Blocks all crawlers — use specific paths | | Cards different heights in grid | Use display: grid with equal-height rows, not flex | | Text overflows card | Add text-overflow: ellipsis + overflow: hidden | | Animation jank | Animate transform not width/height | | Form submits twice | Disable button on first click | | Console errors in prod | Add no-console ESLint rule | | DB connection timeout | Add connection pooling (PgBouncer/Prisma Accelerate) | | Sensitive data in API | Strip passwordHash/secret in response transformer | | App crashes on error | Add app/error.tsx error boundary | | Large JS bundles | Dynamic import heavy components, analyze with next/bundle-analyzer | | Images load slowly | Measure the image; eagerly load/priority the LCP image, lazy-load appropriate below-fold assets |

---

Security Notes

---

Limitations

---

Master Checklist

Phase 1: Code

Phase 2: Build

Phase 3: Auth

Phase 4: Routes

Phase 5: SEO

Phase 6: API

Phase 7: Git

Phase 8: Smoke

Phase 9: Speed

Phase 10: Clean

Phase 11: UI/UX

Phase 12: Database

Phase 13: Secure Rendering