convex-setup-auth
Qué hace
Esta habilidad añade autenticación a una app de Convex. Te ayuda a elegir un proveedor de inicio de sesión, conectarlo con tus usuarios y limitar ciertas funciones a personas que han iniciado sesión.
Cuándo usarla
- ✓Cuando añades por primera vez el inicio de sesión a una app de Convex.
- ✓Cuando necesitas una tabla de usuarios que vincule a cada persona con su identidad de acceso.
- ✓Cuando quieres limitar algunas funciones o páginas a usuarios que han iniciado sesión o a ciertos roles.
Link de la skill
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-setup-auth/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Configura el inicio de sesión de mi app de Convex y asegúrate de que solo los usuarios que han iniciado sesión puedan ver sus propios elementos.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente primero pregunta qué proveedor de inicio de sesión quieres, salvo que tu proyecto ya use uno. Después configura el proveedor, la tabla de usuarios y las funciones auxiliares que comprueban quién ha iniciado sesión.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Convex Authentication Setup
Implement secure authentication in Convex with user management and access control.
When to Use
- Setting up authentication for the first time
- Implementing user management (users table, identity mapping)
- Creating authentication helper functions
- Setting up auth providers (Convex Auth, Clerk, WorkOS AuthKit, Auth0, custom JWT)
When Not to Use
- Auth for a non-Convex backend
- Pure OAuth/OIDC documentation without a Convex implementation
- Debugging unrelated bugs that happen to surface near auth code
- The auth provider is already fully configured and the user only needs a one-line fix
First Step: Choose the Auth Provider
Convex supports multiple authentication approaches. Do not assume a provider.
Before writing setup code:
- Ask the user which auth solution they want, unless the repository already makes it obvious
- If the repo already uses a provider, continue with that provider unless the user wants to switch
- If the user has not chosen a provider and the repo does not make it obvious, ask before proceeding
Common options:
- Convex Auth - good default when the user wants auth handled directly in Convex
- Clerk - use when the app already uses Clerk or the user wants Clerk's hosted auth features
- WorkOS AuthKit - use when the app already uses WorkOS or the user wants AuthKit specifically
- Auth0 - use when the app already uses Auth0
- Custom JWT provider - use when integrating an existing auth system not covered above
Look for signals in the repo before asking:
- Dependencies such as
@clerk/*,@workos-inc/*,@auth0/*, or Convex Auth packages - Existing files such as
convex/auth.config.ts, auth middleware, provider wrappers, or login components - Environment variables that clearly point at a provider
After Choosing a Provider
Read the provider's official guide and the matching local reference file:
- Convex Auth: official docs, then
references/convex-auth.md - Clerk: official docs, then
references/clerk.md - WorkOS AuthKit: official docs, then
references/workos-authkit.md - Auth0: official docs, then
references/auth0.md
The local reference files contain the concrete workflow, expected files and env vars, gotchas, and validation checks.
Use those sources for:
- package installation
- client provider wiring
- environment variables
convex/auth.config.tssetup- login and logout UI patterns
- framework-specific setup for React, Vite, or Next.js
For shared auth behavior, use the official Convex docs as the source of truth:
- Auth in Functions for
ctx.auth.getUserIdentity() - Storing Users in the Convex Database for optional app-level user storage
- Authentication for general auth and authorization guidance
- Convex Auth Authorization when the provider is Convex Auth
Prefer official docs over recalled steps, because provider CLIs and Convex Auth
internals change between versions. Inventing setup from memory risks outdated
patterns. For third-party providers, only add app-level user storage if the app
actually needs user documents in Convex. Not every app needs a users table.
For Convex Auth, follow the Convex Auth docs and built-in auth tables rather
than adding a parallel users table plus storeUser flow, because Convex Auth
already manages user records internally. After running provider initialization
commands, verify generated files and complete the post-init wiring steps the
provider reference calls out. Initialization commands rarely finish the entire
integration.
Core Pattern: Protecting Backend Functions
The most common auth task is checking identity in Convex functions.
// Bad: trusting a client-provided userId
export const getMyProfile = query({
args: { userId: v.id("users") },
handler: async (ctx, args) => {
return await ctx.db.get(args.userId);
},
});
// Good: verifying identity server-side
export const getMyProfile = query({
args: {},
handler: async (ctx) =>
Preguntas frecuentes
¿Qué proveedores de inicio de sesión puede configurar?
Convex Auth, Clerk, WorkOS AuthKit, Auth0 o una configuración JWT personalizada, según lo que elijas.
¿Elegirá un proveedor por mí?
Solo si tu proyecto ya usa uno. Si no, el agente te pregunta primero.
¿Sirve para otros backends?
No. Es solo para apps de Convex.
Detalles
Descripción original del autor
Sets up Convex auth, identity mapping, and access control. Use for login, auth providers, users tables, protected functions, or roles in a Convex app.
repo: openclaw/clawhub
Popularidad
- Estrellas en GitHub
- 9,5 mil
- Posición en el ranking
- #12258
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
axiom-alerting
9,5 milAyuda a tu agente a crear y gestionar monitores de Axiom y rutas de notificación mediante la API de Axiom, y a comprobar que las alertas se comportan como se espera.
axiom-sre
9,5 milAyuda a tu agente a investigar incidencias y errores de producción paso a paso, comprobando cada hipótesis con los registros de Axiom antes de sacar una conclusión.
building-dashboards
9,5 milAyuda a tu agente a diseñar paneles de Axiom con gráficos, consultas y filtros adecuados, partiendo de las decisiones que el panel debe respaldar.
controlling-costs
9,5 milAyuda a tu agente a encontrar datos sin uso en Axiom y a construir paneles y monitores que sigan y reduzcan el coste de los registros.
Skills parecidas
api-connector-builder
280 milHace que tu agente cree nuevas conexiones de API siguiendo el patrón existente. Úsalo para añadir una integración más sin inventar otra forma de hacer las cosas.
api-design
280 milAyuda a tu agente a diseñar APIs REST según las buenas prácticas. Es útil para definir cómo se comunican las APIs, cómo se muestran los errores y cómo organizar los datos.
backend-patterns
280 milAyuda a tu agente con patrones de arquitectura del lado del servidor y optimización de bases de datos. Es útil para crear o revisar código que se ejecuta en el servidor.