best-practices

Audit web projects for security, compatibility, and quality standards.

2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/damacus/agent-skills --skill best-practices-damacus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: best-practices
Source: https://github.com/damacus/agent-skills/tree/main/skills/best-practices
Command: npx skills add https://github.com/damacus/agent-skills --skill best-practices-damacus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Modern web development requires consistently applying security, compatibility, and quality standards across teams and projects to reduce vulnerabilities and UI issues.

Core Features & Use Cases

  • Security hygiene: HTTPS everywhere, CSP, security headers, secure cookies, and input sanitization to prevent common web attacks.
  • Compatibility and performance: Doctype and charset correctness, viewport, feature detection, polyfills, and responsive performance optimizations across browsers.
  • Code quality and governance: Deprecation awareness, accessible semantic HTML, proper error handling, and audit-driven improvement workflows for maintainable codebases.

Quick Start

Run a Lighthouse-based audit to apply security, compatibility, and code-quality best practices to a web project.

Frequently Asked Questions about best-practices

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

FAQPage Schema
How do I enforce security headers and HTTPS in my web project?

To enforce security headers and HTTPS, you apply CSP, secure cookies, and input sanitization rules. This prevents common web attacks by ensuring your project meets required security hygiene standards across all environments.

What is the best way to audit cross-browser compatibility and performance?

The best way to audit cross-browser compatibility is running Lighthouse-style checks. This validates doctype correctness, viewport settings, feature detection, and polyfills to optimize responsive performance across different browsers.

How do I validate HTML semantics and improve code quality?

You validate HTML semantics by checking for accessible HTML structures and proper error handling. This audit-driven workflow identifies deprecation issues and enforces code governance to maintain a highly readable and stable codebase.

Can I integrate Lighthouse-style web security checks into my CI/CD pipeline?

Yes, you can integrate these web security and compatibility checks into developer workflows and CI/CD pipelines. Embedding Lighthouse-style audits automates security header deployment, HTML validation, and performance monitoring during the build process.

Why does my web application fail compatibility and quality standards?

Your web application fails quality standards due to missing security headers, incorrect doctype or charset, and poor HTML semantics. Running a comprehensive audit identifies these deprecation and compatibility gaps for targeted improvement.