best-practices

Apply modern web development best practices based on Lighthouse audits.

7|2|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/LuisSambrano/antigravity-config --skill best-practices-luissambrano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: best-practices
Source: https://github.com/LuisSambrano/antigravity-config/tree/main/skills/3-web/wq-best-practices
Command: npx skills add https://github.com/LuisSambrano/antigravity-config --skill best-practices-luissambrano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses common security vulnerabilities, browser compatibility issues, and code quality pitfalls in modern web development, ensuring applications are robust, secure, and performant.

Core Features & Use Cases

  • Security Audits: Identifies and helps mitigate risks like mixed content, weak CSP, and vulnerable dependencies.
  • Compatibility Checks: Ensures adherence to web standards for broader browser support.
  • Code Quality: Promotes semantic HTML, efficient event handling, and proper error management.
  • Use Case: When refactoring an existing web application, use this Skill to perform a comprehensive audit for security best practices and identify areas for modernization.

Quick Start

Apply modern web development best practices to the current codebase.

Frequently Asked Questions about best-practices

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

FAQPage Schema
How do I audit my web application for security vulnerabilities and code quality?

Audit a web application by applying modern best practices based on Lighthouse audits, checking HTTPS enforcement, Content Security Policy, security headers, and dependency vulnerabilities to ensure robust code quality and security.

What are the best practices for secure cookie configuration and input sanitization?

Secure cookie configuration and input sanitization best practices involve mitigating common web security risks by enforcing strict policies, validating user inputs, and applying modern web development standards to prevent vulnerabilities.

How do I fix browser compatibility issues and ensure broad web support?

Fix browser compatibility issues by adhering to web standards like doctype declarations, viewport meta tags, and feature detection, while avoiding deprecated APIs to ensure broader browser support.

Can I use Lighthouse audits to identify deprecated APIs and memory management issues?

Yes, Lighthouse audits can identify deprecated APIs and memory management issues by applying modern web development best practices, ensuring efficient event handlers, and promoting proper semantic HTML structure.

Why does my web application fail Content Security Policy checks during a security audit?

Content Security Policy checks fail during a security audit due to weak CSP configurations or mixed content, which can be mitigated by applying modern web development best practices for security and compatibility.

What do I need to check before refactoring an existing web application for modernization?

Before refactoring an existing web application, perform a comprehensive audit for security best practices, dependency vulnerabilities, and browser compatibility standards to identify areas for modernization.