Vue 3 patterns with Clerk — composables (useAuth, useUser, useClerk, useOrganization), Vue Router guards, Pinia auth store integration. Triggers on: vue clerk, useAuth vue, clerk composables, vue router clerk guard, pinia auth clerk. For Nuxt, use clerk-nuxt-patterns instead.
Detected risks:
The clerk-vue-patterns skill provides implementation guidance for integrating Clerk authentication into Vue 3 applications using the @clerk/vue SDK (v2+). It focuses on common Vue-specific authentication patterns and helps developers correctly use Clerk composables, plugin setup, organization-aware functionality, and state management integrations. The skill is intended to reduce integration complexity by showing recommended approaches for accessing authentication state, user information, and organization context in reactive Vue applications.
Key capabilities include working with Clerk composables such as useAuth(), useUser(), useClerk(), and useOrganization(), configuring the Clerk Vue plugin during application startup, implementing authentication-aware user interfaces, supporting organization switching workflows, and integrating authentication state with Vue application architecture. The skill also references patterns for Vue Router navigation guards and Pinia store integration, and highlights common pitfalls such as missing plugin setup or issues related to reactive state usage.
This skill is useful for Vue 3 developers building authenticated applications with Clerk, including single-page applications that require user sign-in, user profile access, organization management, or protected navigation flows. It is particularly relevant for teams using Vue Router and Pinia alongside Clerk authentication. The content is designed for developers who need practical Vue-focused authentication patterns and guidance on using Clerk's reactive composables within standard Vue application structures.
The skill targets Vue 3 applications using the @clerk/vue SDK version 2 or later.
The skill covers useAuth(), useUser(), useClerk(), and useOrganization(), and also includes an organization switching example using useOrganizationList().
Yes. The skill references patterns for Vue Router navigation guards and Pinia authentication state integration.
The Clerk Vue plugin must be installed in the application with app.use(clerkPlugin, { publishableKey }) so the composables can access Clerk context correctly.
No. The content specifically states that Nuxt users should use the separate clerk-nuxt-patterns skill instead.
Quick Setup:
.claude/skills/Repository
clerk/skills