security-best-practices

Review code against language and framework security best practices and generate prioritized vulnerability reports.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/pchemguy/AISandbox --skill security-best-practices-pchemguy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: security-best-practices
Source: https://github.com/pchemguy/AISandbox/tree/main/docs/AgentSkills/openai/skills/skills/.curated/security-best-practices
Command: npx skills add https://github.com/pchemguy/AISandbox --skill security-best-practices-pchemguy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing secure code requires deep knowledge of language- and framework-specific security pitfalls, and manually auditing a codebase for vulnerabilities is slow and error-prone. This Skill loads curated security guidance for your stack and applies it to write secure-by-default code, passively flag critical issues, or produce a full prioritized security report. ## Core Features & Use Cases - Secure-by-default code generation: Automatically loads reference guidance for detected languages and frameworks (Python, JavaScript/TypeScript, Go) so new code follows security best practices from the start. - Passive vulnerability detection: Notices critical issues like SQL injection, XSS sinks, missing CSRF protection, or hardcoded secrets while working in your project and flags them with safe fixes. - Prioritized security reports: On request, produces a markdown report with severity-rated findings, numeric IDs, line-number references, and impact statements, then offers to fix findings one at a time without breaking existing functionality. - Use Case: Ask for a security review of your Express.js backend, and receive a report identifying missing Helmet headers, unsafe session cookie flags, and unvalidated redirect targets, each with a concrete minimal fix. ## Quick Start Review this project for security best practices and write a prioritized vulnerability report.

Frequently Asked Questions about security-best-practices

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

FAQPage Schema
How do I run a security review on my codebase?▼

Ask for a security review or report, and the Skill identifies your languages and frameworks, loads matching reference guidance, and scans for violations. It writes a markdown report with severity-rated findings, line numbers, and offers to fix issues one at a time.

What languages and frameworks does this security review support?▼

The Skill ships reference guidance for Python, JavaScript/TypeScript, and Go, including Express web servers, general frontend JavaScript, and Go net/http backends. For unsupported stacks it falls back to well-known security best practices.

Can it detect vulnerabilities automatically while writing code?▼

Yes, a passive review mode runs while editing code and flags critical issues like SQL injection, XSS sinks, or missing CSRF protection as they appear. It focuses on high-impact findings and suggests safe fixes without disrupting your workflow.

Does the security report include fixes for each finding?▼

The report lists findings with severity, evidence, and impact, then you can request fixes. Fixes are applied one finding at a time with clear comments, following your existing commit and testing flows to avoid regressions.

When should I not rely on this security guidance?▼

Project-specific requirements may legitimately override best practices, and the Skill respects documented overrides rather than fighting them. It also avoids flagging TLS or secure-cookie issues in local development environments where they do not apply.