What problem does it solve?
This Skill helps you prevent common security failures in modern web apps by standardizing authentication, authorization, input validation, and attack mitigation patterns.
Core Features & Use Cases
- NextAuth.js v5 split-config security architecture: Implements the required Edge-safe
auth.config.ts and Node runtime auth.ts setup to ensure middleware authorization has the data it needs.
- RBAC done in the right place (Route ACL vs Resource Permission): Enforces route-level access via
authorized() and action-level access via server actions/API logic.
- Input validation and attack prevention playbook: Uses Zod validation, safe query building, XSS handling guidance, CSRF checks for API routes, and rate limiting patterns.
Quick Start
Configure your NextAuth v5 auth split-config, implement RBAC in the authorized() callback, and add Zod validation to every entry point to secure authentication and permissions before deploying.