clerk-auth-standard
OfficialRBAC-secured Clerk auth with middleware & JWT.
System Documentation
What problem does it solve?
Clerk-based authentication is essential for securing Next.js applications, requiring reliable route protection, sign-in flows, and backend verification. This Skill provides production-ready patterns for implementing Clerk authentication with Next.js middleware, custom sign-in pages (customer and admin), provider setup for Apollo Client, and robust RBAC via publicMetadata roles, plus backend JWT verification for GraphQL resolvers.
Core Features & Use Cases
- Route protection via Next.js middleware to guard protected areas.
- Custom sign-in pages for customer and admin experiences.
- Clerk Provider setup with Apollo Client integration for authenticated requests.
- RBAC integration using publicMetadata roles for authorization.
- Backend JWT verification for secure GraphQL resolvers.
Quick Start
Configure Clerk in your Next.js app, wire up the middleware-protected routes, and point your sign-in pages at the provided Clerk routes.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: clerk-auth-standard Download link: https://github.com/imaginationeverywhere/clara-code/archive/main.zip#clerk-auth-standard Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.