.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/agent-skills/convex-setup-auth
home/skills/get-convex/agent-skills/convex-setup-auth
get-convex avatar

convex-setup-auth

byget-convex· 29 skills

Installs

92k

Stars

40

Forks

8

Category

Backend & APIs

View on GitHub

TL;DR

Sets up Convex auth, identity mapping, and access control. Use for login, auth providers, users tables, protected functions, or roles in a Convex app.

How to install convex-setup-auth?

get-convex/agent-skills/convex-setup-auth
$npx -y skills add get-convex/agent-skills --skill convex-setup-auth

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Use this skill

Run `npx skills use "https://github.com/get-convex/agent-skills" --skill "get-convex/agent-skills/convex-setup-auth"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.

Use the whole pack

Use the skills in "https://github.com/get-convex/agent-skills" that are relevant to the current task. Run `npx skills add "https://github.com/get-convex/agent-skills"` and select the relevant skills, then follow their instructions.

Files · 1

View on GitHub
SKILL.md
1# Convex Authentication Setup
2 
3Implement secure authentication in Convex with user management and access
4control.
5 
6## When to Use
7 
8- Setting up authentication for the first time
9- Implementing user management (users table, identity mapping)
10- Creating authentication helper functions
11- Setting up auth providers (Convex Auth, Clerk, WorkOS AuthKit, Auth0, custom
12 JWT)
13 
14## When Not to Use
15 
16- Auth for a non-Convex backend
17- Pure OAuth/OIDC documentation without a Convex implementation
18- Debugging unrelated bugs that happen to surface near auth code
19- The auth provider is already fully configured and the user only needs a
20 one-line fix
21 
22## First Step: Choose the Auth Provider
23 
24Convex supports multiple authentication approaches. Do not assume a provider.
25 
26Before writing setup code:
27 
281. Ask the user which auth solution they want, unless the repository already
29 makes it obvious
302. If the repo already uses a provider, continue with that provider unless the
31 user wants to switch
323. If the user has not chosen a provider and the repo does not make it obvious,
33 ask before proceeding
34 
35Common options:
36 
37- [Convex Auth](https://docs.convex.dev/auth/convex-auth) - good default when
38 the user wants auth handled directly in Convex
39- [Clerk](https://docs.convex.dev/auth/clerk) - use when the app already uses
40 Clerk or the user wants Clerk's hosted auth features
41- [WorkOS AuthKit](https://docs.convex.dev/auth/authkit/) - use when the app
42 already uses WorkOS or the user wants AuthKit specifically
43- [Auth0](https://docs.convex.dev/auth/auth0) - use when the app already uses
44 Auth0
45- Custom JWT provider - use when integrating an existing auth system not covered
46 above
47 
48Look for signals in the repo before asking:
49 
50- Dependencies such as `@clerk/*`, `@workos-inc/*`, `@auth0/*`, or Convex Auth
51 packages
52- Existing files such as `convex/auth.config.ts`, auth middleware, provider
53 wrappers, or login components
54- Environment variables that clearly point at a provider
55 
56## After Choosing a Provider
57 
58Read the provider's official guide and the matching local reference file:
59 
60- Convex Auth: [official docs](https://docs.convex.dev/auth/convex-auth), then
61 `references/convex-auth.md`
62- Clerk: [official docs](https://docs.convex.dev/auth/clerk), then
63 `references/clerk.md`
64- WorkOS AuthKit: [official docs](https://docs.convex.dev/auth/authkit/), then
65 `references/workos-authkit.md`
66- Auth0: [official docs](https://docs.convex.dev/auth/auth0), then
67 `references/auth0.md`
68 
69The local reference files contain the concrete workflow, expected files and env
70vars, gotchas, and validation checks.
71 
72Use those sources for:
73 
74- package installation
75- client provider wiring
76- environment variables
77- `convex/auth.config.ts` setup
78- login and logout UI patterns
79- framework-specific setup for React, Vite, or Next.js
80 
81For shared auth behavior, use the official Convex docs as the source of truth:
82 
83- [Auth in Functions](https://docs.convex.dev/auth/functions-auth) for
84 `ctx.auth.getUserIdentity()`
85- [Storing Users in the Convex Database](https://docs.convex.dev/auth/database-auth)
86 for optional app-level user storage
87- [Authentication](https://docs.convex.dev/auth) for general auth and
88 authorization guidance
89- [Convex Auth Authorization](https://labs.convex.dev/auth/authz) when the
90 provider is Convex Auth
91 
92Prefer official docs over recalled steps, because provider CLIs and Convex Auth
93internals change between versions. Inventing setup from memory risks outdated
94patterns. For third-party providers, only add app-level user storage if the app
95actually needs user documents in Convex. Not every app needs a `users` table.
96For Convex Auth, follow the Convex Auth docs and built-in auth tables rather
97than adding a parallel `users` table plus `storeUser` flow, because Convex Auth
98already manages user records internally. After running provider initialization
99commands, verify generated files and complete the post-init wiring steps the
100provider reference calls out. Initialization commands rarely finish the entire
101integration.
102 
103## Core Pattern: Protecting Backend Functions
104 
105The most common auth task is checking identity in Convex functions.
106 
107```ts
108// Bad: trusting a client-provided userId
109export const getMyProfile = query({
110 args: { userId: v.id("users") },
111 handler: async (ctx, args) => {
112 return await ctx.db.get(args.userId);
113 },
114});
115```
116 
117```ts
118// Good: verifying identity server-side
119export const getMyProfile = query({
120 args: {},
121 handler: async (ctx) => {
122 const identity = await ctx.auth.getUserIdentity();
123 if (!identity) throw new Error("Not authenticated");
124 
125 return await ctx.db
126 .query("users")
127 .withIndex("by_tokenIdentifier", (q) =>
128 q.eq("tokenIdentifier", identity.tokenIdentifier),
129 )
130 .unique();
131 },
132});
133```
134 
135## Workflow
136 
1371. Determine the provider, either by asking the user or inferring from the repo
1382. Ask whether the user wants local-only setup or production-ready setup now
1393. Read the matching provider reference file
1404. Follow the official provider docs for current setup details
1415. Follow the official Convex docs for shared backend auth behavior, user
142 storage, and authorization patterns
1436. Only add app-level user storage if the docs and app requirements call for it
1447. Add authorization checks for ownership, roles, or team access only where the
145 app needs them
1468. Verify login state, protected queries, environment variables, and production
147 configuration if requested
148 
149If the flow blocks on interactive provider or deployment setup, ask the user
150explicitly for the exact human step needed, then continue after they complete
151it. For UI-facing auth flows, offer to validate the real sign-up or sign-in flow
152after setup is done. If the environment has browser automation tools, you can
153use them. If it does not, give the user a short manual validation checklist
154instead.
155 
156## Reference Files
157 
158### Provider References
159 
160- `references/convex-auth.md`
161- `references/clerk.md`
162- `references/workos-authkit.md`
163- `references/auth0.md`
164 
165## Checklist
166 
167- [ ] Chosen the correct auth provider before writing setup code
168- [ ] Read the relevant provider reference file
169- [ ] Asked whether the user wants local-only setup or production-ready setup
170- [ ] Used the official provider docs for provider-specific wiring
171- [ ] Used the official Convex docs for shared auth behavior and authorization
172 patterns
173- [ ] Only added app-level user storage if the app actually needs it
174- [ ] Did not invent a cross-provider `users` table or `storeUser` flow for
175 Convex Auth
176- [ ] Added authentication checks in protected backend functions
177- [ ] Added authorization checks where the app actually needs them
178- [ ] Clear error messages ("Not authenticated", "Unauthorized")
179- [ ] Client auth provider configured for the chosen provider
180- [ ] If requested, production auth setup is covered too

Security

Passed

  • Gen Agent Trust Hubpass
  • Socketpass
  • Snykpass
  • ZeroLeakspass

Preview

get-convex/agent-skillsget-convex/agent-skills

$ npx -y skills add get-convex/agent-skills --skill convex-setup-auth

▸ installing to .claude/skills…

✓ convex-setup-auth ready

Repoget-convex/agent-skills
TypeSkills
CategoryBackend & APIs
ForDeveloper
UpdatedJul 2026
License—
First seenJul 26, 2026

Tags

Skill

Related

6 picks
Type
  1. microsoft avatarazure-messagingTroubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus.SkillsJul 2026473k1.3k
  2. larksuite avatarlark-openapi-explorer飞书/Lark 原生 OpenAPI 探索:从官方文档库中挖掘未经 CLI 封装的原生 OpenAPI 接口。当用户的需求无法被现有 lark-* skill 或 lark-cli 已注册命令满足,需要查找并调用原生飞书 OpenAPI 时使用。SkillsJul 2026386k16k
  3. larksuite avatarlark-skill-maker创建 lark-cli 的自定义 Skill。当用户需要把飞书 API 操作封装成可复用的 Skill(包装原子 API 或编排多步流程)时使用。SkillsJul 2026385k16k
  4. mattpocock avatarimplementImplement a piece of work based on a spec or set of tickets.SkillsJul 2026237k189k
  5. supabase avatarsupabaseUse when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client…SkillsJul 2026188k2.4k
  6. firebase avatarfirebase-basicsProvides foundational setup, authentication, and project management workflows for Firebase using the Firebase CLI.SkillsJul 2026117k389