What problem does it solve?
This Skill helps teams design and enforce security controls across the full web stack by providing actionable patterns for authentication, authorization, row-level security, content security policies, input validation, and API secrets management so applications resist common attack vectors and misconfigurations.
Core Features & Use Cases
- Authentication & Session Management: Server Actions pattern, middleware refresh, HTTP-only cookies, and OAuth provider guidance for secure sign-in flows.
- Authorization & RLS: Patterns for enabling RLS, example SQL practices, and role checks using auth.uid() to enforce row-level access.
- API & Deployment Protections: Cron job authorization, CRON_SECRET usage, CSP and security header recommendations, and Zod-based input validation for server-side handlers.
- Use Case: Audit an app to replace client-side checks with Server Actions, enable RLS on sensitive tables, and produce CSP and header configurations for production deployment.
Quick Start
Use the security-hardening skill to audit your codebase for auth, RLS, CSP, and input validation gaps and generate configuration and policy recommendations.