security-best-practices

Audit LuxCode AI code for security best practices in VS Code extensions.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/luisitoys12/luxcode-ai --skill security-best-practices-luisitoys12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-best-practices
Source: https://github.com/luisitoys12/luxcode-ai/tree/main/.agent/skills/security-best-practices
Command: npx skills add https://github.com/luisitoys12/luxcode-ai --skill security-best-practices-luisitoys12

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audita el código de LuxCode AI contra las mejores prácticas de seguridad para extensiones VS Code, APIs de IA, manejo de API keys y WebViews.

Core Features & Use Cases

  • Auditoría de manejo de API keys y secrets para evitar filtraciones.
  • Verificación de Content-Security-Policy (CSP) en WebViews y mitigación de XSS.
  • Revisión de almacenamiento seguro de claves y prácticas de consola/logging.
  • Uso de scripts de auditoría para detectar vulnerabilidades y malas prácticas.

Quick Start

Ejecuta el script audit.sh de este directorio para iniciar la auditoría de seguridad.

Frequently Asked Questions about security-best-practices

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

FAQPage Schema
How do I audit VS Code extension code for security vulnerabilities and API key leaks?

To audit VS Code extension code for security vulnerabilities, run the audit.sh script against your codebase. This checks API key handling, secure storage, logging practices, and WebView CSP to prevent secret leaks and XSS risks.

What is Content-Security-Policy in VS Code WebViews and why is it needed?

Content-Security-Policy (CSP) in VS Code WebViews is a security layer that mitigates XSS attacks. Proper CSP usage restricts resource loading and script execution, ensuring malicious code cannot run inside the extension environment.

How do I securely store API keys in a VS Code extension?

Securely store API keys in a VS Code extension by using the provided secret storage mechanisms rather than hardcoding or logging them. The audit verifies that keys are protected and safe error messages are used.

Does this security audit check fetch calls and filesystem access in VS Code extensions?

Yes, this security audit checks fetch calls and filesystem access within VS Code extensions. It enforces safeguards to ensure these operations follow best practices and do not introduce vulnerabilities.

Can I use this audit script for LuxCode AI API usage and secret handling?

Yes, you can use this audit script for LuxCode AI API usage and secret handling. It specifically validates code against best practices for IA API calls, preventing API key leaks and improper logging.