best-practices

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

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/adcuelloa/restaurant-order --skill best-practices-adcuelloa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: best-practices
Source: https://github.com/adcuelloa/restaurant-order/tree/main/.agents/skills/best-practices
Command: npx skills add https://github.com/adcuelloa/restaurant-order --skill best-practices-adcuelloa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers ensure their web applications adhere to modern standards for security, browser compatibility, and overall code quality, preventing vulnerabilities and improving user experience.

Core Features & Use Cases

  • Security Audits: Identifies and suggests fixes for common security flaws like mixed content, weak CSP, and vulnerable dependencies.
  • Compatibility Checks: Ensures proper Doctype, character encoding, and viewport meta tags for broad browser support.
  • Code Quality: Promotes semantic HTML, efficient event handling, and proper error management.
  • Use Case: A developer can use this skill to perform a comprehensive review of their e-commerce site's frontend code before launch, ensuring it's secure, fast, and works across different browsers.

Quick Start

Apply modern web development best practices to the provided code.

Frequently Asked Questions about best-practices

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

FAQPage Schema
How do I audit web application code for security vulnerabilities and best practices?

To audit web application code for security vulnerabilities, you can apply modern best practices to identify mixed content, weak Content Security Policy, vulnerable dependencies, and improper input sanitization. The process suggests fixes for these common flaws to enhance code quality.

What does Content Security Policy enforcement do for secure web development?

Content Security Policy enforcement in secure web development prevents cross-site scripting and data injection attacks by restricting resource loading sources. It identifies weak CSP configurations and suggests fixes to ensure adherence to secure coding patterns.

Can I use this to check browser compatibility and deprecated APIs in my frontend code?

Yes, you can use this to check browser compatibility and deprecated APIs in frontend code. It ensures proper Doctype, character encoding, and viewport meta tags are present while promoting semantic HTML for broad browser support.

What is the best way to configure secure cookies and enforce HTTPS?

The best way to configure secure cookies and enforce HTTPS is by applying modern web development best practices. This approach addresses HTTPS enforcement and secure cookie configurations to prevent unauthorized data access and session hijacking.

Why does my web app fail code quality checks for event handling and error management?

Your web app fails code quality checks when efficient event handling and proper error management are missing. Applying best practices promotes semantic HTML and correct error handling patterns to resolve these quality standards.