Web Best Practices Audit
Applies modern web security, compatibility, and code-quality best practices based on Lighthouse's Best Practices audits.
Security & ReviewIntermediate★ 2,630⑂ 238AI score 8/10Last updated: Jun 14, 2026
What it does
- Reviews security fundamentals: HTTPS/mixed content, CSP, Trusted Types, Subresource Integrity, security headers, secure cookies — all with ❌/✅ code pairs.
- Flags browser compatibility issues: doctype, charset ordering, viewport meta, feature detection, safe polyfill strategy.
- Calls out deprecated APIs (
document.write, sync XHR, non-passive listeners) and memory-leak patterns. - Supplies a code-quality checklist: exposed production source maps, console errors, semantic HTML, image aspect ratios.
Who it's for
- Frontend developers and agencies doing pre-launch reviews.
- Anyone tasked with raising a Lighthouse "Best Practices" score.
- Teams adopting CSP or Trusted Types for the first time.
Examples
- "Apply best practices to this project" → finds mixed content, vulnerable dependencies, and missing headers, then proposes fixes.
- "Run a security audit" → drafts a CSP header, recommends
npm audit, adds SRI hashes to CDN scripts. - "Modernize this legacy code" → replaces
document.writeand sync XHR with dynamic script loading andfetch, adds AbortController-based listener cleanup.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/addyosmani/web-quality-skills/HEAD/skills/best-practices/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/best-practices folder from the GitHub repo addyosmani/web-quality-skills into my ~/.claude/skills/best-practices/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/addyosmani/web-quality-skills.git && mkdir -p ~/.claude/skills && cp -r web-quality-skills/skills/best-practices ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/addyosmani/web-quality-skills.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r web-quality-skills/skills/best-practices ~/.claude/skills/ - Restart Claude Code, then ask "run a security audit" or "apply best practices" to trigger it.
- (Optional) Also copy the
web-quality-auditskill from the same repo so the cross-reference link resolves.
View source on GitHub ↗License: MIT