Qa Readiness
ASecurityPhase 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
Works with
Security analysis
100/100Pro scans all 16 files and shows the line behind each finding
npx -y skills add Divy547/portfolio-orchestrator --skill qa-readiness --agent claude-codeAre you the author of Qa Readiness?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/divy547-qa-readiness)---
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.md
- references/budgets.json
- references/checklist.md
- references/copy-rules.md
- scripts/check-budgets.mjs
- scripts/common.mjs
- scripts/copy-gate.mjs
- scripts/lighthouse.mjs
- scripts/qa-browser.mjs
- scripts/qa-static.mjs
- scripts/report.mjs
- scripts/static-checks.mjs
- scripts/verify-data.mjs
- templates/DEPLOY-HANDOFF.md
- templates/playwright.config.ts
- templates/tests/portfolio.spec.ts
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.