What problem does it solve?
Security-sensitive code often ships with hardcoded secrets, unvalidated inputs, SQL injection risks, and missing token expiration. This Skill gives the AI a concrete security checklist to follow whenever it writes or reviews code involving authentication, credentials, encryption, permissions, or user input.
Core Features & Use Cases
- Authentication & Secrets Rules: Enforces bcrypt/argon2 password hashing, JWT expiration with RS256/HS256, environment-variable-based API keys, and keeping .env out of version control.
- Input & Output Protection: Requires whitelist-based input validation, parameterized SQL queries, file upload verification, XSS output encoding with CSP headers, and CSRF token checks.
- Permission & Delivery Checks: Applies least-privilege and resource-ownership checks, path traversal prevention, and a final delivery checklist covering secrets, validation, and logging of sensitive data.
- Use Case: When asking the AI to implement a login endpoint with JWT tokens and file upload, the Skill ensures passwords are hashed, tokens expire, uploads are verified, and no secrets are hardcoded.
Quick Start
Ask the AI to implement a user login API with JWT authentication and apply the hello-security rules to the implementation.