Description
Best Practices is an agent skill that checks a website against a checklist of modern web development standards. The checklist covers HTTPS, Content Security Policy headers, input sanitization, avoiding deprecated APIs and HTML validity. It is based on Lighthouse best-practices audits and condenses them together with OWASP guidance into copy-paste fixes, with before-and-after code for each common security and compatibility issue. The page gives examples of when to use it: reviewing a site for mixed HTTP content before a production push, writing a Content Security Policy with nonces for inline scripts, replacing document.write and synchronous XHR in legacy code, adding passive touchstart listeners to fix scroll jank, and running npm audit and patching the dependencies it flags. It is written by Addy Osmani and installed with npx skills add.…
Highlights
- Checklist for HTTPS, CSP and input sanitization
- Before-and-after code fixes
- Based on Lighthouse best-practices audits
- Flags deprecated APIs and HTML validity issues
- Dependency audit and patch guidance
Ratings & Reviews
No ratings yet
Be the first to rate addyosmani/best-practices.
People also visit
addyosmani/best-practices FAQ
What does the Best Practices skill check?
HTTPS and mixed content, Content Security Policy, input sanitization, deprecated web APIs, HTML validity and dependency vulnerabilities.
How do I install it?
Run npx skills add https://github.com/addyosmani/web-quality-skills --skill best-practices, or paste the skill's link into your coding assistant.
Where do the recommendations come from?
The skill condenses Lighthouse best-practices audits and OWASP guidance into concrete fixes.
Does it give code examples?
Yes. Each item has before-and-after code that the agent can apply directly.
What are the best addyosmani/best-practices alternatives?
Popular alternatives to addyosmani/best-practices include best-practices, modern-web-guidance and web-coder. See all addyosmani/best-practices alternatives













