web-testing
Skill0 starsChanged 4 months agoMITView on GitHub
Verify web deliverables in a real browser using Playwright — rendering, interaction, console errors, responsive layout, E2E flows. Use whenever the deliverable is a website, web app, HTML page, dashboard, or artifact that renders in a browser, and before claiming any UI "works", "renders", or "looks right". Static inspection of HTML/JSX is NOT verification of a web deliverable.
- Installs packages
5 other projects use a version of this.
Adopted by
Most recently taken up by
- PracticalSwan/agent-skillstheir own version, first seen Sep 14, 2026
- Ron-dali/vibe-coding-rulestheir own version, first seen Jul 8, 2026
- pyaephyo11979/rent4Utheir own version, first seen Jun 24, 2026
- MRCalderon3D/everything-game-dev-codetheir own version, first seen Mar 27, 2026
- mrgoonie/claudekit-skillstheir own version, first seen Nov 10, 2025
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- mrgoonie/claudekit-skills★ 2.2ksame name
- MRCalderon3D/everything-game-dev-code★ 90same name
- PracticalSwan/agent-skills★ 18same name
- pyaephyo11979/rent4U★ 4same name
- Ron-dali/vibe-coding-rules★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormSkill
- cleanupSkill
- context-managementSkill
- critiqueSkill
- debuggingSkill
- design-decisionsSkill
- diff-managementSkill
- fan-outSkill
- final-checkSkill
- handoverSkill
- loopsSkill
- memorySkill
- orientSkill
- planningSkill
- researchSkill
- roadmapSkill
- verificationSkill
- writing-reviewSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Prefer the MCP for exploratory checking.
- Distinctive: line 21
Run all five — they catch different failures:
- Very specific: line 51
Prefer role/text selectors (getByRole, text=) over brittle CSS chains.
- Distinctive: line 54
No browser available in the environment?
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Web testing (Playwright)
"The code looks right" and "the DOM contains the element" are not evidence for web work — only a real browser rendering, executing JS, and being interacted with is. Playwright is the default tool: headless, scriptable, multi-browser.
Setup (once per environment)
npm init -y && npm i -D playwright && npx playwright install chromium --with-depsPython alternative: pip install playwright && playwright install chromium.
A Playwright MCP server gives interactive browser control instead of scripts. On Claude Code this repo already registers it at project scope (.mcp.json) — nothing to install beyond Node.js; other harnesses register npx @playwright/mcp@latest through their own MCP mechanism (on Claude Code elsewhere: claude mcp add playwright -- npx @playwright/mcp@latest).
Prefer the MCP for exploratory checking; prefer scripts for repeatable verification (scripts become the regression suite).
The minimum gate for ANY web deliverable
Run all five — they catch different failures:
- It loads. Navigate; assert HTTP 200 and no uncaught page errors. Capture
page.on('console')andpage.on('pageerror')— a page can render while the console screams. - It renders. Full-page screenshot; LOOK at it (read the image). Blank page, overlapping text, and unstyled HTML all "pass" DOM assertions.
- It works. Exercise the core interaction(s): click the button, submit the form, apply the filter — assert the observable result, not the absence of an exception.
- It survives sizes. Screenshot at ≥2 viewports (e.g. 1280×800 and 390×844). Mobile breakage is the most common silently-shipped defect.
- It fails visibly. One negative test: invalid input, empty state, or missing data — the page should degrade, not white-screen.
Script skeleton (Node)
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });
const errors = [];
page.on('pageerror', e => errors.push(e.message));
page.on('console', m => m.type() === 'error' && errors.push(m.text()));
await page.goto('http://localhost:8000', { waitUntil: 'networkidle' });
await page.screenshot({ path: 'shot-desktop.png', fullPage: true });
// interactions + assertions here, e.g.:
// await page.click('text=Submit'); await page.waitForSelector('.result');
if (errors.length) { console.error('CONSOLE/PAGE ERRORS:', errors); process.exit(1); }
await browser.close(); console.log('PASS');
})();Serve local files first (python3 -m http.server 8000) — file:// skips CORS/fetch behavior that will differ in production.
Practices
- Screenshots are evidence (verification skill): save them with the verification record; read them, don't just save them.
- Prefer role/text selectors (
getByRole,text=) over brittle CSS chains; they test what the user experiences. - Waits: use
waitForSelector/networkidle, never fixed sleeps — sleeps are flaky AND slow. - E2E flows that matter get saved as
tests/e2e/*.spec.jsand run withnpx playwright test— they join the project's verification path (orient skill). - No browser available in the environment? Say so explicitly and downgrade the claim: "HTML validates and parses; NOT verified in a browser" — never let a rendering claim ride on static checks.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

