best-practices

Audit web code for security, compatibility, and code quality issues.

Updated Mar 11, 2018
One-click install
npx skills add https://github.com/jorgegvalencia/dotfiles --skill best-practices-jorgegvalencia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: best-practices
Source: https://github.com/jorgegvalencia/dotfiles/tree/main/gemini/skills/best-practices
Command: npx skills add https://github.com/jorgegvalencia/dotfiles --skill best-practices-jorgegvalencia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses common pitfalls in web development, ensuring code is secure, compatible with modern browsers, and adheres to high quality standards, reducing vulnerabilities and improving user experience.

Core Features & Use Cases

  • Security Audits: Identifies and helps fix security vulnerabilities like mixed content, weak CSP, and vulnerable dependencies.
  • Compatibility Checks: Ensures adherence to web standards like proper doctype, character encoding, and viewport meta tags.
  • Code Quality: Promotes semantic HTML, efficient event handling, and proper error management.
  • Use Case: A developer can use this skill to review a new feature's code before deployment, ensuring it meets security and compatibility benchmarks.

Quick Start

Use the best-practices skill to audit the provided code for security and compatibility issues.

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 code for security vulnerabilities and mixed content?

Auditing web code for security vulnerabilities involves enforcing HTTPS, applying a strong Content Security Policy (CSP), sanitizing inputs, and detecting vulnerable libraries. This approach mitigates mixed content issues and prevents common web security exploits.

What are the best practices for ensuring browser compatibility in web development?

Browser compatibility best practices require using proper doctype and charset declarations, setting viewport meta tags, and implementing feature detection. These standards ensure your web application renders correctly across modern browsers while avoiding deprecated APIs.

How do I optimize web performance through efficient event handling and memory management?

Optimizing web performance through event handling and memory management requires applying specific code quality best practices. This involves streamlining event delegation and properly cleaning up DOM references to prevent memory leaks in your application.

Does this approach check for deprecated APIs and vulnerable dependencies?

Yes, this approach checks for deprecated APIs and vulnerable dependencies during the security and compatibility audit. It identifies outdated web standards and flags libraries with known vulnerabilities to ensure your codebase remains secure and maintainable.

When should I perform a web code quality and security review before deployment?

You should perform a web code quality and security review before deploying a new feature to production. Running this audit ensures the code meets security benchmarks, enforces HTTPS, and adheres to high compatibility standards, reducing vulnerabilities.