
best-practices
Apply modern web development best practices for security, compatibility
by addyosmaniFree
Description
best-practices is an agent skill for checking a web app against modern best practices, based on the Lighthouse best practices audits. It covers security, browser compatibility and code quality. When a rendered page is available, the agent runs a live Lighthouse audit, using navigation mode for a normal page load or snapshot mode when the current state must be kept, then inspects the console and network failures that Lighthouse lists, and checks the related source, dependencies, headers and configuration. Each fix is applied to the implicated code, and the same audit is run again to confirm it. If live tools are not available, the skill falls back to the Lighthouse command-line tool and focused dependency and header checks. The skill separates security findings from style preferences, and it warns that a high Lighthouse score is not proof that an application is secure. A security reference covers HTTPS and HSTS, Content Security Policy and Trusted Types, Subresource Integrity, headers, dependencies, sanitization and cookies. The skill is part of the web quality skills collection by Addy Osmani. The skills.sh listing shows Gen Agent Trust Hub and Socket passed, and Snyk gave a warning.…
Highlights
- Runs Lighthouse best practices audits
- Fixes code and re-runs the same audit
- Security reference for CSP, HSTS and cookies
- Falls back to the Lighthouse CLI
- Install with npx skills add
Ratings & Reviews
No ratings yet
Be the first to rate best-practices.
People also visit
best-practices FAQ
What does the best-practices skill do?
It audits a web app against modern best practices for security, browser compatibility and code quality, using Lighthouse and related checks.
How do I install it?
Run npx skills add https://github.com/addyosmani/web-quality-skills --skill best-practices.
Does a high Lighthouse score mean the app is secure?
No. The skill says Lighthouse is not a complete security assessment, and a high score is not proof of security.
What does the security reference cover?
HTTPS and HSTS, CSP and Trusted Types, Subresource Integrity, headers, dependencies, sanitization and cookies.
What if live tools are not available?
The skill uses the Lighthouse CLI and focused dependency and header checks instead.
What are its security audits?
The skills.sh listing shows Gen Agent Trust Hub and Socket passed, and Snyk gave a warning.
What are the best best-practices alternatives?
Popular alternatives to best-practices include web-coder, modern-web-guidance and web-design-guidelines. See all best-practices alternatives
















