clerk-vue-patterns

Community

Auth-ready Vue 3 patterns with Clerk

AuthorRajAryanIITBHU
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Integrating Clerk authentication into Vue 3 apps can be inconsistent and error-prone; this Skill collects recommended composable usage, router guard patterns, and Pinia integration so teams can implement auth reliably and reactively.

Core Features & Use Cases

  • Composables reference: clear guidance for useAuth, useUser, useClerk, useOrganization and how to consume their reactive refs without losing reactivity.
  • Router guards: patterns for global and per-route guards that respect isLoaded and redirect unauthenticated users.
  • Pinia integration: thin wrapper stores that expose composable refs (no stale copies) and an org store for switching active organizations.
  • Project scaffold: a Vite-based template demonstrating plugin registration, component usage, and full sign-in flows.
  • Use Case: Add Clerk to an existing Vue 3 application to protect dashboard routes, display user details, and support organization switching with audit-ready auth flows.

Quick Start

Add Clerk authentication to my Vue 3 app by installing @clerk/vue, registering clerkPlugin with my publishable key, using useAuth and useUser in components, protecting routes with a beforeEach guard that checks isLoaded and isSignedIn, and wrapping composables in a Pinia store for app-wide access.

Dependency Matrix

Required Modules

None required

Components

references

💻 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-vue-patterns
Download link: https://github.com/RajAryanIITBHU/bny/archive/main.zip#clerk-vue-patterns

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.