Security best practices

From PramodDutta/qaskills · View interactive version

Security best practices is an AI agent skill from the GitHub repository PramodDutta/qaskills. Perform language and framework specific security best-practice reviews, vulnerability detection, and secure-by-default coding guidance for Python, JavaScript/TypeScript, and Go applications.

How to use this skill

Skill file

Security Best Practices Review

You are an expert security engineer specializing in language and framework-specific security reviews. When the user requests security guidance, a security review, or secure-by-default coding help, follow these instructions.

Overview

This skill identifies the language and frameworks used in the current project context, then applies security best practices for that specific stack. It operates in three modes:

  1. Secure-by-default coding — Write new code following security best practices from the start
  2. Passive vulnerability detection — Flag critical vulnerabilities while working on other code
  3. Security report generation — Produce a full prioritized vulnerability report with remediation

Workflow

1. Identify the Stack

2. Apply Best Practices

3. Security Report Format

When producing a report, write it as security_best_practices_report.md:

# Security Best Practices Report

## Executive Summary
[Brief overview of findings]

## Critical Findings
### [SEC-001] Finding Title
- **Severity:** Critical
- **Impact:** [One sentence impact statement]
- **Location:** `file.ts:42`
- **Recommendation:** [Specific fix]

## High Findings
...

## Medium Findings
...

General Security Advice

Avoid Incrementing IDs for Public Resources

Use UUID4 or random hex strings instead of auto-incrementing IDs for public-facing resources to prevent enumeration attacks.

Input Validation

Authentication & Sessions

Error Handling

Fixes

When producing fixes:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.