best-practices

Apply web development best practices for security, compatibility, and code quality.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/chapter42/42-SEO-Skills --skill best-practices-chapter42
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: best-practices
Source: https://github.com/chapter42/42-SEO-Skills/tree/main/skills/references/web-quality/best-practices
Command: npx skills add https://github.com/chapter42/42-SEO-Skills --skill best-practices-chapter42

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Modern web development teams often struggle to implement and maintain secure, compatible, and high-quality code across projects; this guide consolidates best practices to address that.

Core Features & Use Cases

  • Security headers, CSP, and secure-by-default configurations for web apps.
  • Cross-browser compatibility, semantic HTML, and accessibility considerations.
  • Code quality and performance improvements through established patterns.
  • Use Case: During security audits or code reviews, apply the best-practices checklist to identify gaps and propose fixes.

Quick Start

Run a Lighthouse-based audit on your project and implement the top improvements.

Frequently Asked Questions about best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement secure web best practices for CSP and security headers?

Secure web best practices involve applying a checklist-based approach to configure Content Security Policy (CSP) and secure-by-default security headers. Teams use this to identify configuration gaps during security audits and code reviews.

What is the best way to audit a web project for accessibility and semantic HTML?

The best way to audit a web project is running a Lighthouse-based audit to identify top improvements. This checklist approach evaluates semantic HTML and accessibility considerations to ensure code quality and compatibility across web projects.

Can I use this best-practices checklist for modernizing legacy web applications?

Yes, you can use this best-practices checklist for modernization efforts across web projects. It guides teams to apply modern web development patterns to security, cross-browser compatibility, and performance during code reviews and modernization.

What security headers and configurations should I check during a web code review?

During a web code review, check security headers, CSP, and secure-by-default configurations for web apps. The checklist approach covers these security requirements alongside accessibility, semantic HTML, and responsive design patterns to ensure comprehensive coverage.

How do I improve web performance and cross-browser compatibility using established patterns?

Improve web performance and cross-browser compatibility by applying established best-practice patterns identified through a Lighthouse audit. This checklist-based guide consolidates code quality improvements, semantic HTML structure, and responsive design considerations.