Skip to content

Modern web best-practices guide covering security headers, browser compatibility, deprecated APIs, and error handling.

CCM score
59 of 100
skills.sh installs
305
GitHub stars
7.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers security, browser compatibility, deprecated API avoidance, console and error handling, and production source map configuration
  • Includes HTTPS enforcement, CSP and nonce patterns, security headers, npm audit workflows, and XSS-safe input handling with code examples
  • Flags unsafe patterns such as innerHTML with user input, synchronous XHR, document.write, and exposed source maps in production
  • Designed for reviewing web code against Lighthouse best-practices audits, and points accessibility, SEO, and performance work to separate skills

Install

$ npx -y skills add tech-leads-club/agent-skills --skill best-practices -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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>

<!-- ✅ Protocol-relative (will use page's protocol) -->
<img src="//example.com/image.jpg" />

HSTS Header:

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

Content Security Policy (CSP)

<!-- Basic CSP via meta tag -->
<meta
  http-equiv="Content-Security-Policy"
  content="default-src 'self'; 
               script-src 'self' https://trusted-cdn.com; 
               style-src 'self' 'unsafe-inline';
               img-src 'self' data: https:;
               connect-src 'self' https://api.example.com;"
/>

<!-- Better: HTTP header -->

CSP Header (recommended):

Details

Repository
github.com/tech-leads-club/agent-skills
Categories
Frontend & UI Code, Security, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the best-practices skill check for in web code?

The best-practices skill applies modern web development standards covering security, browser compatibility, and code quality. It is based on Lighthouse best practices audits, and its guidance covers HTTPS, Content Security Policy, security headers, and vulnerable libraries.

When should I use the best-practices skill instead of other audit skills?

Use best-practices when you ask an agent to apply best practices, run a security audit, modernize code, do a code quality review, or check for vulnerabilities. Accessibility, SEO, performance and comprehensive multi-area audits are handled by web-accessibility, seo, core-web-vitals and web-quality-audit instead.

How do I install the best-practices skill?

Run npx -y skills add tech-leads-club/agent-skills --skill best-practices -y in a project. The best-practices skill then lets your agent review web code against those security and quality standards.

Where does the best-practices skill rank in its category?

The best-practices skill is listed in the Frontend and UI Code category on Claude Marketplaces, next to vercel-react-best-practices, web-design-guidelines and design-taste-frontend. It sets itself apart by focusing on security headers, CSP and deprecated APIs.

More from tech-leads-club/agent-skills

All 22

Similar to Best Practices

More Frontend & UI Code