auth-locked

Official

Locked auth pattern for secure Next.js apps.

AuthorWorkSync-Developement
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a locked authentication and authorization pattern for coverage-nextjs, ensuring consistent AuthContext usage, a single source of truth, and enforcing reuse of existing auth helpers. It prevents duplication of auth routes or custom role logic.

Core Features & Use Cases

  • Reuse of AuthContext and withAuth: All API routes and client-side checks must rely on the established context and middleware.
  • Server-side & Client-side consistency: Authentication order and role resolution are derived from existing implementations and the profiles table.
  • Hard rules enforced: Never create new auth routes, never invent roles, always reuse withAuth and the provided helpers.

Quick Start

Follow the guidelines to adopt the locked auth pattern in a Next.js project: verify existing AuthContext.tsx, use withAuth in API routes as shown, and avoid introducing new authentication logic.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: auth-locked
Download link: https://github.com/WorkSync-Developement/developertestrepo/archive/main.zip#auth-locked

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.