Skip to content
Back to skills

Qa Readiness

ASecurity

Phase skill of portfolio-orchestrator. Proves the built portfolio is production-ready without deploying it - typecheck, lint, copy gate, verified-data checks, portrait integrity, performance budgets (including the lazy WebGL chunk), Playwright browser tests (the procedural scene draws and follows scroll, no-WebGL and reduced-motion fallbacks, phone low tier, flick test, worst-frame legibility, the hold interaction, axe; video-hero tests when an external clip is used), Lighthouse, then the QA ...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
developmentgobashnodeawsperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add Divy547/portfolio-orchestrator --skill qa-readiness --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Qa Readiness?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Qa Readiness
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/divy547-qa-readiness/badge)](https://www.skillsdirectory.com/skills/divy547-qa-readiness)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qa-readiness
description: Phase skill of portfolio-orchestrator. Proves the built portfolio is production-ready without deploying it - typecheck, lint, copy gate, verified-data checks, portrait integrity, performance budgets (including the lazy WebGL chunk), Playwright browser tests (the procedural scene draws and follows scroll, no-WebGL and reduced-motion fallbacks, phone low tier, flick test, worst-frame legibility, the hold interaction, axe; video-hero tests when an external clip is used), Lighthouse, then the QA report and a manual deploy handoff. Use when the orchestrator reaches qa-static, qa-browser or handoff, or when the user asks to test, audit or check the portfolio.
---

# QA and Production Readiness

You audit adversarially and fix what you find before the user sees anything. You never deploy.

**Read first:** `references/checklist.md` (what each check proves, plus the fresh-eyes pass), `references/copy-rules.md`, `references/budgets.json`.

Scripts (`$Q` = this skill's `scripts/`), all run against the existing `out/` (only `build-wire` builds):

```bash
node $Q/qa-static.mjs --root $SITE [--release]   # typecheck, lint, static-checks, copy-gate, verify-data, budgets -> .portfolio/qa/static.json
node $Q/qa-browser.mjs --root $SITE              # Playwright desktop+mobile, Lighthouse -> .portfolio/qa/browser.json
node $Q/report.mjs --root $SITE                  # .portfolio/qa-report.md + DEPLOY-HANDOFF.md
```

Each check also runs alone (`copy-gate.mjs`, `verify-data.mjs`, `check-budgets.mjs`, `static-checks.mjs`, `lighthouse.mjs`) with `--root`.

## qa-static

1. Run `qa-static.mjs`. On failure, fix at the source: copy in `content/*.json` (and the design package), data in the snapshot or projects file, code in the build. Never weaken a check or allowlist a phrase just to pass; brand devices go in `.portfolio/copy-allow.json` only when the design package names them.
2. Every fix that touches the site: `runstate.mjs invalidate build-wire`, rebuild through the build skill, then rerun.
3. Warnings (unsourced numbers, long sentences, `NEXT_PUBLIC_SITE_URL` unset) are resolved or listed for the user. Unsourced numbers: confirm with the repo or the user, or remove them.
4. Pass: `runstate.mjs done qa-static`.

## qa-browser

1. Run `qa-browser.mjs`. It installs `playwright.config.ts` and `tests/portfolio.spec.ts` on first run (edit them freely afterwards; they are part of the site project; an old unversioned copy is backed up as `.bak` and replaced). It runs desktop tests in installed Google Chrome when present (an external video hero is H.264, which open-source Chromium may not decode); mobile runs emulated. The procedural hero needs WebGL: the config passes software-GL flags so headless Chrome draws the scene without a GPU. Software GL is slow, so the tests set `window.__HERO_QA__` to disable the scene's performance guard, and they wait for captions with a poll instead of fixed sleeps.
2. Failures map to fixes:
   - flick test: merge the failing beat into a neighbour or widen its band in `site.json`; never shrink ramps.
   - legibility: raise that band's `--sa` (0.62 to 0.72) or move its text to calmer space; re-run against the same frames.
   - legibility on the procedural scene: raise that band's `--sa`, move its text (`align`), or darken the scene where the text sits (brightness knobs in `procedural-scene.md`). The audit measures the worst pixel under the text with all scrims applied.
   - gates, reduced motion, no-WebGL, video-blocked: restore the template behaviour (see the build skill's troubleshooting).
   - budgets or Lighthouse: trim JS first (client islands, dependencies), then fonts (weights), then media (`media.mjs` profiles).
3. The motion-tier tests skip for `calm`; the role-proof tests skip when no proof is set. Under `matched` or `bold` and with an event-pipeline proof they must run and pass. Skipped tests are not passes. Tests skip by design when they do not apply (video tests under a procedural hero, desktop-only tests on mobile). A skip for a missing capability (no H.264 browser for a video hero) is different: tell the user and ask them to check in real Chrome at Approval B. Software-rendered runs cannot judge real GPU smoothness; ask the user to scroll the hero in their own browser at Approval B.
4. Then the fresh-eyes pass from `checklist.md`. Fix what it finds.
5. Pass: `runstate.mjs done qa-browser`.

## handoff (after Approval B)

1. If the user has given their real URL, set `NEXT_PUBLIC_SITE_URL` in `.env.production.local`, rebuild, and run `qa-static.mjs --release` (which treats a localhost URL as an error). Otherwise leave the release step in the handoff for them.
2. `report.mjs`, then read both files and correct anything the template could not know.
3. `runstate.mjs done handoff`.

## Honesty rules

Report exactly what ran, what passed, what failed and what was skipped, with numbers. Lighthouse numbers are lab numbers from a local server and are the median of 3 runs per mode (`LH_RUNS` to change; single runs varied from 21 to 330 ms TBT on one unchanged build); say so. Never describe a skipped check as passed.

Files in this skill

  • SKILL.md5 KB
  • references/budgets.json1.2 KB
  • references/checklist.md4.9 KB
  • references/copy-rules.md1.9 KB
  • scripts/check-budgets.mjs7.3 KB
  • scripts/common.mjs1.9 KB
  • scripts/copy-gate.mjs3.3 KB
  • scripts/lighthouse.mjs5.9 KB
  • scripts/qa-browser.mjs3.9 KB
  • scripts/qa-static.mjs1.8 KB
  • scripts/report.mjs4.6 KB
  • scripts/static-checks.mjs5.6 KB
  • scripts/verify-data.mjs6.1 KB
  • templates/DEPLOY-HANDOFF.md2.2 KB
  • templates/playwright.config.ts1.3 KB
  • templates/tests/portfolio.spec.ts27.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.