Redesign an existing website to make it better. Built on top of impeccable.
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
#!/usr/bin/env node
// skills/qa/scripts/test/chrome-check.test.mjs — the qa `chrome` check: without a header contract it reports one info
// finding and launches nothing; with one, the comparer and its decisions are diff's (chrome-compare.test.mjs, and
// chrome-explore.test.mjs for the browser run).
// Run: node plugins/stardust/skills/qa/scripts/test/chrome-check.test.mjs
import assert from 'node:assert/strict';
import { mkdtempSync, readFileSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { run } from '../checks/chrome.mjs';
let failed = 0;
const check = async (name, fn) => { try { await fn(); console.log(`✓ ${name}`); } catch (e) { failed += 1; console.log(`✗ ${name}\n ${e.message.split('\n').join('\n ')}`); } };
await check('no contract: one header-contract-missing info finding', async () => {
const dir = mkdtempSync(join(tmpdir(), 'qa-chrome-'));
const f = await run({ base: 'https://example.com', opts: { headerContract: join(dir, 'none.json'), outDir: dir } });
assert.deepEqual(f.map((x) => [x.check, x.id, x.severity]), [['chrome', 'header-contract-missing', 'info']]);
rmSync(dir, { recursive: true });
});
await check('the live build exploration is unbudgeted and unpaced', () => {
const source = readFileSync(new URL('../checks/chrome.mjs', import.meta.url), 'utf8');
for (const flag of ['--max-requests', '--pace-ms', '--reload-pause-ms']) assert.match(source, new RegExp(`'${flag}', '0'`));
});
process.exit(failed ? 1 : 0);.tessl-plugin
skills
audit
reference
deploy
reference
scripts
test
diff
direct
dynamics
extract
migrate
prepare-migration
prototype
assets
motion
fixtures
reference
qa
replica
reference
scripts
test
reskin
rollout
spec
stardust
uplift
reference