best-practices

Audit web projects against security, compatibility, and code quality best practices.

1|Updated Dec 18, 2015
One-click install
npx skills add https://github.com/mathemagie/mathemagie.github.io --skill best-practices-mathemagie
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: best-practices
Source: https://github.com/mathemagie/mathemagie.github.io/tree/main/bidouille/3615_terre/.agents/skills/best-practices
Command: npx skills add https://github.com/mathemagie/mathemagie.github.io --skill best-practices-mathemagie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Apply modern web development best practices to improve security, compatibility, and code quality across web projects.

Core Features & Use Cases

  • Security hardening: HTTP headers, CSP, proper input sanitization, and secure cookie practices.
  • Compatibility & performance: Doctype, charset, viewport, feature detection, polyfills, and performance-minded patterns.
  • Quality & auditing: Clear guidelines and checklists to support automated audits and code reviews.

Quick Start

Audit your project against the best-practices guidance and implement the suggested security, compatibility, and quality improvements.

Frequently Asked Questions about best-practices

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

FAQPage Schema
How do I configure Content Security Policy and security headers for a web application?▼

Configuring Content Security Policy and security headers involves setting HTTP response headers like CSP, HSTS, and X-Frame-Options. This Skill provides concrete configuration examples and checks to enforce content security policies and prevent vulnerabilities like clickjacking.

What is the best way to audit a web project for security and compatibility issues?▼

The best way to audit a web project is to check against established guidelines for HTTP headers, input sanitization, and browser support. This Skill offers clear checklists to support automated audits and manual code reviews.

Can I integrate web security and quality checks into a CI pipeline?▼

Yes, you can integrate web security and quality checks into a CI pipeline. This Skill provides concrete checks and configuration examples designed to be incorporated directly into developer workflows and continuous integration pipelines.

How do I ensure browser compatibility and implement performance patterns for SPAs?▼

Ensuring browser compatibility and performance for SPAs involves using proper doctype, charset, viewport settings, and feature detection. This Skill provides guidance on polyfills and performance-minded patterns to improve rendering speed.

Do I need input sanitization and secure cookies for a static site security audit?▼

Input sanitization and secure cookies are essential for a security audit if user inputs or client-side data are handled. This Skill provides concrete checks for secure cookie practices and proper input sanitization to protect web applications.