auth-route-protection-checker
Installation
SKILL.md
Auth Route Protection Checker
To audit and enhance authentication protection across Next.js routes, server components, and API routes, follow these steps systematically.
Step 1: Discover Project Structure
Identify all files that need authentication checks:
-
Use Glob to find all route files:
app/**/page.tsx- Page componentsapp/**/route.ts- API routesapp/**/layout.tsx- Layout componentslib/actions/**/*.ts- Server actions
-
Read middleware configuration:
middleware.ts- Current middleware setupnext.config.js- Route configuration