A technical implementation skill for Clerk authentication that addresses Next.js 16 security patterns, API breaking changes, and critical error prevention.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install clerk-auth
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install clerk-auth using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides an advanced framework for implementing Clerk authentication, specifically optimized for the latest framework updates and security standards. It focuses on the transition to Next.js 16 and the mandatory use of proxy.ts to address historical middleware vulnerabilities. By utilizing Openclaw Skills for your authentication layer, you gain immediate access to battle-tested patterns for API version 2025-11-10, ensuring your application remains resilient against documented breaking changes and common integration errors.
Beyond basic setup, the skill handles complex scenarios like networkless JWT verification for high-availability requirements and cross-platform user type consistency. It serves as a comprehensive developer advocate tool for managing identity, organization-level authorization, and secure programmatic access via the latest API Keys beta features.
To integrate this skill into your project, install the required dependencies and configure the middleware structure:
npm install @clerk/nextjs@^6.36.7 @clerk/backend@^2.29.2 @clerk/testing@^1.13.26
For Next.js 16+, ensure your middleware is named correctly and initialized:
// src/proxy.ts
import { clerkMiddleware } from '@clerk/nextjs/server';
export default clerkMiddleware();
export const config = {
matcher: ['/((?!_next|[^?]*\\.(?:html?|css|js)).*)', '/(api|trpc)(.*)'],
};
Ensure your environment variables are set in .env.local using the NEXT_PUBLIC_ prefix for the publishable key and the CLERK_SECRET_KEY for backend operations.
The skill organizes authentication data and metadata through the following taxonomy:
| Data Category | Key Properties | Description |
|---|---|---|
| Session Metadata | userId, sessionId, tokenType |
Core identifiers for the active request context. |
| JWT Custom Claims | public_metadata, private_metadata |
User-defined data fields (Must be < 1.2KB). |
| Organization Context | org_id, org_slug, org_role |
Multi-tenant identifiers for RBAC. |
| API Key Object | key_id, last_used_at, scope |
Metadata for programmatic access tokens. |
| Webhook Payload | type, data, object |
Structured events for backend synchronization. |
Loading
A comprehensive toolkit for building autonomous AI agents with Claude, featuring robust error prevention and structured JSON outputs.

A specialized tool for generating production-ready CI/CD configurations for GitHub Actions, GitLab CI, and CircleCI to automate testing and deployment.

A specialized technical analysis skill for interpreting market breadth and uptrend ratio charts to generate strategic positioning and tactical trading signals.

A comprehensive framework for analyzing brand identity, conducting professional audits, and generating actionable brand guidelines.

A senior engineering skill for building intuitive, high-performance command-line tools across multiple ecosystems.

An automated documentation engine that generates beginner-friendly READMEs, architecture guides, and API documentation for any codebase.








































