qa-audit
Skill4 starsChanged 8 months agoMITView on GitHub
This skill should be used when the user asks to 'run QA', 'quality audit', 'test the website', 'run E2E tests', 'lighthouse audit', 'check accessibility', 'visual regression test', 'run Playwright tests', 'quality gate check', or wants comprehensive quality verification of a web project. Use case-by-case when generated sites need validation beyond basic checks.
- Installs packages
6 other projects use a version of this.
Adopted by
Most recently taken up by
- ask-marcel/ask-marcel-office-clitheir own version, first seen Sep 2, 2026
- ngreenwall/claude-skillstheir own version, first seen Jul 9, 2026
- BlueprintOS/analysis-to-deliverytheir own version, first seen Jun 22, 2026
- 4444J99/a-i--skillstheir own version, first seen Jun 7, 2026
- kienbui1995/magic-powerstheir own version, first seen Apr 10, 2026
- florian101010/awesome-agentic-AI-coding-templatetheir own version, first seen Feb 27, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- BlueprintOS/analysis-to-delivery★ 26same name
- 4444J99/a-i--skills★ 17same name
- ask-marcel/ask-marcel-office-cli★ 9same name
- florian101010/awesome-agentic-AI-coding-template★ 4same name
- ngreenwall/claude-skills★ 2same name
- kienbui1995/magic-powers★ 0same 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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- concord-microtask-routerSkill
- deploy-checkSkill
- fix-and-testSkill
- flow-validateSkill
- refactorSkill
- tddSkill
- write-flowSkill
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 12
Run a comprehensive quality audit on a web project: E2E tests, Lighthouse scores, code complexity, and visual snapshots.
- Distinctive: line 14
Use this after building or generating a website to verify it meets production quality standards.
- Distinctive: line 21
Run Lighthouse audit for performance, accessibility, best practices, SEO.
- Very specific: line 79
Only unit tests are needed (use /fix-and-test instead)
“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
QA Audit
Run a comprehensive quality audit on a web project: E2E tests, Lighthouse scores, code complexity, and visual snapshots. Fix failures automatically with retry loops.
Use this after building or generating a website to verify it meets production quality standards. The agent should decide case-by-case whether to invoke this skill based on the project context.
What to do
- Detect the target file (argument or
index.htmlin current directory). - Install testing dependencies if not present.
- Generate and run Playwright E2E tests.
- Run Lighthouse audit for performance, accessibility, best practices, SEO.
- Measure code complexity of inline JS/CSS.
- Capture visual snapshots at desktop, tablet, and mobile viewports.
- Fix any failures and re-run until green.
- Report a consolidated QA scorecard.
Flow
flow:
# Phase 1: E2E Test Generation & Execution
run: npm init -y 2>/dev/null; npm install --save-dev @playwright/test 2>/dev/null; npx playwright install chromium 2>/dev/null
let e2e_tests = prompt "Write a Playwright E2E test file (e2e.spec.js) for the website at index.html. Test: (1) page loads with correct title, (2) navigation links exist and are clickable, (3) all major sections are visible (hero, features, pricing, testimonials, FAQ, footer), (4) responsive layout at 375px, 768px, and 1024px viewports, (5) interactive elements work (accordion toggle, button clicks), (6) accessibility basics (lang attribute, alt text, ARIA labels). Save to e2e.spec.js."
retry max 3
run: npx playwright test e2e.spec.js --reporter=list 2>&1
if command_failed
let test_errors = run "npx playwright test e2e.spec.js --reporter=json 2>/dev/null | node -e \"const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); const fails=d.suites?.[0]?.specs?.filter(s=>s.ok===false).map(s=>s.title+': '+s.tests?.[0]?.results?.[0]?.error?.message?.slice(0,200))||[]; console.log(fails.join('\\n'))\""
prompt: Playwright tests failed. Errors: ${test_errors}. Fix the issues in index.html or e2e.spec.js. Do not remove passing tests. Make minimal targeted fixes.
end
end
# Phase 2: Lighthouse Audit
run: npm install --save-dev lighthouse 2>/dev/null
let lighthouse_scores = run "node -e \"const lh=require('lighthouse'); const chromeLauncher=require('chrome-launcher'); (async()=>{let c; try{c=await chromeLauncher.launch({chromeFlags:['--headless','--no-sandbox']}); const r=await lh('file://'+process.cwd()+'/index.html',{port:c.port,output:'json',onlyCategories:['performance','accessibility','best-practices','seo']}); const s=r.lhr.categories; console.log(JSON.stringify({perf:Math.round(s.performance.score*100),a11y:Math.round(s.accessibility.score*100),bp:Math.round(s['best-practices'].score*100),seo:Math.round(s.seo.score*100)}))}catch(e){console.log(JSON.stringify({error:e.message}))}finally{if(c)await c.kill()}})()\""
if ${lighthouse_scores} contains "error"
prompt: Lighthouse audit could not run (Chrome may not be available). Skip this phase and note in the report.
else
if ${lighthouse_scores} contains "\"a11y\":10" or ${lighthouse_scores} contains "\"a11y\":2" or ${lighthouse_scores} contains "\"a11y\":3" or ${lighthouse_scores} contains "\"a11y\":4"
prompt: Lighthouse accessibility score is below 50. Read index.html and fix critical accessibility issues: add lang attribute, alt text on images, ARIA labels on interactive elements, proper heading hierarchy, sufficient color contrast. Do not remove existing content.
end
end
# Phase 3: Code Complexity Metrics
let complexity = run "node -e \"const h=require('fs').readFileSync('index.html','utf8'); const scripts=(h.match(/<script[^>]*>([\\s\\S]*?)<\\/script>/gi)||[]).map(s=>s.replace(/<\\/?script[^>]*>/gi,'')).join(''); const css=(h.match(/<style[^>]*>([\\s\\S]*?)<\\/style>/gi)||[]).map(s=>s.replace(/<\\/?style[^>]*>/gi,'')).join(''); const branches=(scripts.match(/\\bif\\b|\\belse\\b|\\bfor\\b|\\bwhile\\b|\\bswitch\\b|\\bcase\\b|\\bcatch\\b|\\?/g)||[]).length; const funcs=(scripts.match(/function\\b|=>/g)||[]).length; const selectors=(css.match(/[^{}]+(?=\\{)/g)||[]).length; const mediaQueries=(css.match(/@media/g)||[]).length; console.log(JSON.stringify({jsLines:scripts.split('\\n').length,jsBranches:branches,jsFunctions:funcs,avgComplexity:funcs>0?Math.round(branches/funcs*10)/10:0,cssSelectors:selectors,mediaQueries:mediaQueries,totalSize:h.length}))\""
# Phase 4: Visual Snapshots
run: node -e "const{chromium}=require('playwright');(async()=>{const b=await chromium.launch();const p=await b.newPage();await p.goto('file://'+process.cwd()+'/index.html');await p.screenshot({path:'screenshot-desktop.png',fullPage:true});await p.setViewportSize({width:768,height:1024});await p.screenshot({path:'screenshot-tablet.png',fullPage:true});await p.setViewportSize({width:375,height:812});await p.screenshot({path:'screenshot-mobile.png',fullPage:true});await b.close()})()" 2>/dev/null
# Phase 5: Consolidated Report
run: node -e "const r=['# QA Audit Report','','## E2E Tests','Status: see test output above','','## Lighthouse Scores','${lighthouse_scores}','','## Code Complexity','${complexity}','','## Visual Snapshots','- screenshot-desktop.png','- screenshot-tablet.png','- screenshot-mobile.png'].join('\n'); require('fs').writeFileSync('qa-audit-report.md',r); console.log(r)"
done when:
file_exists index.html
gate e2e_pass: npx playwright test e2e.spec.js --reporter=list 2>&1 | tail -1 | grep -q "passed"Decision Criteria for Agents
An agent should invoke /qa-audit when:
- A website or web application has been generated or significantly modified
- The user asks about quality, testing, accessibility, or performance
- The project has an
index.htmlor build output that can be served - Pre-deployment verification is needed beyond lint/test/build
An agent should NOT invoke /qa-audit when:
- The project is a CLI tool, library, or non-web artifact
- Only unit tests are needed (use
/fix-and-testinstead) - The code hasn't been built yet (build first, then audit)
- The user explicitly asks for a subset (e.g., "just run lighthouse")
Quality Thresholds
| Metric | Green | Yellow | Red |
| E2E pass rate | 100% | 80-99% | <80% |
| Lighthouse Performance | 90+ | 70-89 | <70 |
| Lighthouse Accessibility | 90+ | 80-89 | <80 |
| Lighthouse Best Practices | 90+ | 70-89 | <70 |
| Lighthouse SEO | 90+ | 80-89 | <80 |
| Avg JS complexity | <5 | 5-10 | >10 |
| Total file size | <100KB | 100-500KB | >500KB |
Done Response Template
## QA Audit Results
**E2E Tests:** X/Y passed (Z%)
**Lighthouse:** Perf: XX | A11y: XX | BP: XX | SEO: XX
**Complexity:** X branches / Y functions (avg: Z)
**File Size:** XX KB
**Visual Snapshots:** desktop, tablet, mobile captured
**Overall:** PASS / FAILDoes 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.

