What problem does it solve?
This skill ensures codebases adhere to security best practices across authentication, input handling, secrets management, API design, and sensitive data handling, reducing vulnerabilities and production incidents.
Core Features & Use Cases
- Secrets management: guidelines for storing secrets securely, environment variables, rotation, and avoiding hard-coded credentials.
- Input validation & data sanitization: patterns and example code for validating and sanitizing user input to prevent injection and leakage.
- Authentication & authorization: guidance on token handling, access controls, and secure session management.
- API security & rate limiting: recommendations for securing endpoints, CSRF protection, and request throttling.
- Error handling & logging: safe error messages and secure logging practices to avoid data leakage.
- Dependency security: keeping dependencies up to date, auditing, and lockfile usage.
- Threat modeling and secure-by-default patterns: general patterns to bake security into development workflows.
- Use Case: In a typical web app, apply this skill during design reviews, PR reviews, and CI/CD checks to catch vulnerabilities before deployment.
Quick Start
Apply the security checklist to any new feature involving authentication, handling user input, secrets, API endpoints, or payment-related features.