What problem does it solve?
This Skill prevents security bugs by enforcing safe input handling, authorization, secrets management, and vulnerability hygiene throughout development.
Core Features & Use Cases
- Input validation at trust boundaries: Apply strict schema validation to request bodies, query params, and uploaded files to stop injection and malformed-data attacks.
- Secure authentication & authorization: Ensure passwords are hashed, sessions are protected with secure cookie settings, and every protected endpoint performs ownership/role checks.
- Harden web output and integrations: Prevent XSS and sensitive data exposure while configuring security headers, HTTPS, CORS restrictions, and dependency auditing.
Use Case: You are building a web feature that accepts user input and calls third-party APIs; use this Skill to validate data, lock down authZ, mitigate OWASP Top 10 risks, and verify results via npm audit and checklist items.
Quick Start
Use the security-and-hardening Skill when implementing a new endpoint that processes user input, stores data, or integrates with an external service.