security-best-practices

Enforce security best practices in code reviews and CI/CD pipelines.

26|Updated Apr 13, 2017
One-click install
npx skills add https://github.com/thesimonho/dotfiles --skill security-best-practices-thesimonho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-best-practices
Source: https://github.com/thesimonho/dotfiles/tree/main/AI/skills/security-best-practices
Command: npx skills add https://github.com/thesimonho/dotfiles --skill security-best-practices-thesimonho

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Security in software development often lacks consistent standards across teams and environments. This skill provides a comprehensive checklist and practical patterns to standardize and enforce secure coding, configuration, and deployment practices.

Core Features & Use Cases

  • Secrets Management: enforce environment-based secrets, avoid hardcoding, and ensure secret rotation.
  • Input Validation & Data Handling: implement schema-based validation and safe data processing to prevent injection and mishandling.
  • Access Control & Session Security: establish proper authentication/authorization patterns, token handling, and least-privilege access.
  • Threat Mitigation & Verification: codify verification steps for common attack vectors (XSS, CSRF, SQL injection) and secure logging.
  • Security Testing & Compliance: provide automated checks, risk scoring, and regression testing guidance tailored for CI/CD. Real-world example: In a web app, apply the checklist during code reviews to identify secret leaks, insecure inputs, and misconfigurations, then remediate before deployment.

Quick Start

Review the current project and implement the provided security best-practices checklist in the codebase.

Frequently Asked Questions about security-best-practices

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

FAQPage Schema
What security checklists should I use for code reviews and CI/CD pipelines?

Use a security best practices checklist covering secrets management, input validation, SQL injection prevention, authentication, authorization, XSS, CSRF, rate limiting, and dependency security to standardize code reviews and CI/CD guardrails.

How do I prevent secrets from leaking in my codebase and deployments?

Prevent secrets leaks by enforcing environment-based secrets management, avoiding hardcoding, and ensuring secret rotation. Apply these patterns as guardrails in your code reviews and CI/CD pipelines to catch misconfigurations before deployment.

How do I implement input validation and prevent SQL injection in my web app?

Implement input validation by using schema-based validation and safe data processing patterns. Apply explicit verification steps for SQL injection prevention and other common attack vectors like XSS and CSRF during your code review process.

Does this security checklist support automated testing and risk scoring for CI/CD?

Yes, it provides automated checks, risk scoring, and regression testing guidance tailored for CI/CD pipelines. It codifies verification steps and remediation guidance to standardize secure coding and deployment practices across teams.

What is the best way to enforce access control and least-privilege authorization patterns?

The best way to enforce access control is by establishing proper authentication and authorization patterns, secure token handling, and least-privilege access. Codify these as checklists to verify session security and data exposure limits.

When should I apply security best practices in the software development lifecycle?

Apply security best practices during code reviews, PR processes, and CI/CD pipelines. Use the checklists to identify secret leaks, insecure inputs, and misconfigurations early, then remediate threats before deployment.