api-design-security
Installation
SKILL.md
API Design & Security
A comprehensive guide to designing and implementing secure admin APIs in the Vantus Systems Next.js 16 platform, following Fortune-500 security standards with RBAC, CSRF protection, tenant isolation, and comprehensive audit logging.
Quick Start
Create a secure admin API route in 5 steps:
- Choose the right wrapper: Use
adminReadfor GET operations,adminMutationfor writes - Define Zod schema: Validate input with strict type checking
- Apply tenant scoping: Ensure multi-tenant data isolation
- Use safe selects: Prevent sensitive data leakage
- Test security: Verify CSRF, RBAC, and audit logging