clerk-vue-patterns Skill: What It Does and How to Install It
Makes your coding agent add Clerk sign-in to a Vue 3 app: composables, Vue Router guards and a Pinia auth store.
- Installs
- 14.2K
- on skills.sh
- Stars
- 89
- on GitHub
- Files
- 10
- besides SKILL.md
- Updated
- Oct 2026
- last repo commit
The SKILL.md tells the agent to use the composables from @clerk/vue (useAuth, useUser, useClerk, useOrganization). It also covers Vue Router navigation guards, a Pinia auth store, and an organization switcher built with useOrganizationList. A pitfalls table lists symptoms such as composables returning undefined outside the plugin tree.
It loads when you ask about Clerk in Vue, composables, a Vue Router guard or a Pinia auth store. For Nuxt, the SKILL.md says to use clerk-nuxt-patterns instead. You need a Clerk publishable key for the app you are building.
Good for
- Vue 3 developers adding Clerk sign-in
- Teams that keep auth state in Pinia
- Anyone who needs route guards that wait for Clerk to load
Install clerk-vue-patterns
Claude Code
- 1
Copy this prompt.
Install the clerk-vue-patterns skill in Claude Code. Run this command: /plugin marketplace add clerk/skills /plugin install clerk@clerk-skills Then check that it loaded and tell me how to use it.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Pick one route. The plugin installs all 20 skills in the Clerk repo (counted from the repo tree) and adds the Clerk MCP server from the repo's .mcp.json, which points at https://mcp.clerk.com/mcp. The skills-only routes install just this skill and no MCP server config. The README says to open /plugin, go to Marketplaces, select clerk-skills and enable auto-update if you want updates.
From the project README. Source.
What's in the skill
When it loads
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.
Sections in SKILL.md
- What Do You Need?
- Mental Model
- Setup
- Vue (Plain)
- Composables Usage
- Org Switching
- Common Pitfalls
- Import Map
- See Also
- Docs
Key facts
- Installs on skills.sh
- 14,245 (Nov 2, 2026)
- GitHub stars
- 89 for the whole clerk/skills repo (Nov 2, 2026)
- Last repo commit
- Oct 30, 2026
What it includes
Install clerkPlugin in main.ts with your publishable key.
Registers the Clerk plugin when the Vue app is created, using the publishable key from your Vite env.
Try: “Add Clerk to my Vue 3 app”
Write ·
Plugin setupUse useAuth, useUser, useClerk and useOrganization in components.
Shows sign-in state, the signed-in user and sign-out in templates. Source: references/composables.md.
Try: “Show the user name and a sign-out button with Clerk in this Vue component”
Write ·
ComposablesProtect routes with a global guard or per-route guards.
Covers a global before guard, an in-component guard and an organization-gated route. Source: references/vue-router-guards.md.
Try: “Redirect signed-out visitors away from /dashboard in Vue Router”
Write ·
Vue Router guardsKeep auth and organization state in thin Pinia stores.
Wraps Clerk state in an auth store and an organization store. Source: references/pinia-integration.md.
Try: “Create a Pinia store that reads Clerk auth state”
Write ·
Pinia integrationList a user's organizations and set the active one.
Builds a button list from useOrganizationList and calls setActive for the chosen organization.
Try: “Add an organization switcher to my Vue nav bar”
Write ·
Organization switchingFix composables that return undefined or lose reactivity.
A symptom, cause and fix table for the two most common Vue problems.
Read ·
Pitfalls table
From the official docs
Permissions
Low risk
The skill makes an agent change code in your project and add Clerk keys to your env file, so a wrong edit lands in your own app. Review the diff before you commit it and keep the secret key out of git.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It edits files in your project
The SKILL.md setup shows `app.use(clerkPlugin, { publishableKey })` in main.ts and reads the key from a Vite env variable. Review the diff and keep any secret key out of version control. github.com
The plugin route also adds the Clerk MCP server
The plugin's .mcp.json registers https://mcp.clerk.com/mcp. Use the skills CLI route if you only want this skill. github.com
Security advisories
No published security advisories as of Nov 2, 2026.
Technical details
| Turning on read-only | No read-only mode. |
|---|---|
| Talks to | WebFetch tool (the frontmatter allows it; the SKILL.md links point at clerk.com/docs) |
| Sign-in and keys | The SKILL.md shows Clerk keys going into your project's env file. |
| Scopes |
|
Questions
What does clerk-vue-patterns do?
It makes your coding agent write Clerk sign-in code for Vue 3: composables, Vue Router guards, a Pinia auth store and an organization switcher. It follows the patterns in the SKILL.md and its three reference files.
How do I install clerk-vue-patterns?
Use the install box above. The Claude Code plugin route installs every Clerk skill and the Clerk MCP server, and the skills CLI route installs only this skill. Pick one route, not both, or you get the skills twice.
Is clerk-vue-patterns official?
Yes. It is published in Clerk's own clerk/skills repository, and the plugin.json in that repo lists Clerk as the author.
Does clerk-vue-patterns work in the Claude app or Codex?
Codex, Cursor and GitHub Copilot CLI each have a plugin install in the README. The README does not document uploading Clerk skills to the Claude app, and this skill's job is to change code in a local project, so the install box has no Claude app tab.
Does it need a Clerk account or API key?
You need a Clerk publishable key for the app you are building. The SKILL.md setup reads it from VITE_CLERK_PUBLISHABLE_KEY.
Is clerk-vue-patterns safe to install?
Its SKILL.md makes the agent change files in your project and use Clerk keys from your env file, and its frontmatter allows the WebFetch tool. Our advice: read each change before you commit it, and keep the secret key out of git.
clerk-vue-patterns vs clerk-nuxt-patterns?
Use clerk-vue-patterns for a plain Vue 3 app and clerk-nuxt-patterns for Nuxt. The Vue SKILL.md itself says "For Nuxt, use clerk-nuxt-patterns instead."
Information
updated Nov 2, 2026
- Repository
- clerk/skills
- Folder
skills/clerk-vue-patterns
Sources
Docs, issue trackers and discussions this page is built from.
Show all 4Hide
- clerk-vue-patterns SKILL.md · github.com
- clerk/skills README · github.com
- clerk plugin.json · github.com
- clerk .mcp.json · github.com