🛡️
QualityShell

Web Best Practices

by addyosmani

Web Best Practices is a Quality skill for Claude Code, published by addyosmani in web-quality-skills.

2.6K stars239 forkson addyosmani/web-quality-skillsAdded 2026/08/18+1% in starsRepository updated 2026/06/14
accessibilityagent-skillsclaude-skillscore-web-vitalslighthouseskillstestingweb-performance
Install in seconds
Install Web Best Practices
Copy Web Best Practices into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/addyosmani/web-quality-skills/tree/main/skills/best-practices ~/.claude/skills/best-practices

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/addyosmani/web-quality-skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/best-practices/SKILL.md in addyosmani/web-quality-skills
Installs to
~/.claude/skills/best-practices
Collection
One of 6 skills cataloged from this repository
Category
Quality1354 skills

What Web Best Practices does

Web Best Practices applies modern web development best practices for security, compatibility, and code quality. Use it when asked to apply best practices, audit security, modernize code, review code quality, or check for vulnerabilities.

Web Best Practices is cataloged under Quality on DirSkills. Web Best Practices comes from a repository tagged accessibility, agent-skills, claude-skills, core-web-vitals and lighthouse.

Documentation

README

Best practices

Modern web development standards based on Lighthouse best practices audits. Covers security, browser compatibility, and code quality patterns.

Security

HTTPS everywhere

Enforce HTTPS:

<!-- ❌ Mixed content -->
<img src="http://example.com/image.jpg">
<script src="http://cdn.example.com/script.js"></script>

<!-- ✅ HTTPS only -->
<img src="https://example.com/image.jpg">
<script src="https://cdn.example.com/script.js"></script>

Avoid protocol-relative URLs (//example.com/...) — they're an HTTP-era pattern with no benefit on HTTPS-only sites and hide the actual scheme from reviewers.

HSTS Header:

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

Content Security Policy (CSP)

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Web Best Practices

  • What else does addyosmani publish alongside Web Best Practices?

    Web Best Practices is one of 6 skills that DirSkills catalogs from addyosmani/web-quality-skills, the repository it ships in. Its siblings there include Accessibility, Core Web Vitals and SEO. Each one is a separate skill with its own page in this directory, installs the same way Web Best Practices does, and is maintained by addyosmani in that same repository. The rest of the collection is listed on the addyosmani/web-quality-skills page.

  • How does Web Best Practices compare to other Quality skills?

    Web Best Practices ranks #491 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Web Best Practices against them. Open each page to compare what they document and how they install.