clerk-vue-patterns
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.
Security Assessment
Detected risks:
About clerk-vue-patterns
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.
FAQ
What version of Vue and Clerk does this skill target?
The skill targets Vue 3 applications using the @clerk/vue SDK version 2 or later.
Which Clerk composables are covered?
The skill covers useAuth(), useUser(), useClerk(), and useOrganization(), and also includes an organization switching example using useOrganizationList().
Does this skill include guidance for Vue Router and Pinia?
Yes. The skill references patterns for Vue Router navigation guards and Pinia authentication state integration.
What is required before using Clerk composables?
The Clerk Vue plugin must be installed in the application with app.use(clerkPlugin, { publishableKey }) so the composables can access Clerk context correctly.
Can this skill be used for Nuxt applications?
No. The content specifically states that Nuxt users should use the separate clerk-nuxt-patterns skill instead.
All Files
11 filesInstall clerk-vue-patterns
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
clerk/skills