帮助你为 Convex 应用配置认证、身份映射与访问控制流程。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "convex-setup-auth" 技能: 1. 下载 https://raw.githubusercontent.com/openclaw/clawhub/main/.agents/skills/convex-setup-auth/SKILL.md 2. 保存为 ~/.claude/skills/convex-setup-auth/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为我的 Convex 应用搭建认证系统,使用 GitHub 和 Google 登录,创建 users 表,并在首次登录时自动写入用户资料。
返回认证配置方案、users 表结构以及首次登录创建用户记录的实现步骤。
请帮我在 Convex 中限制部分查询和 mutation 只有已登录用户可调用,并为未登录请求返回清晰错误信息。
输出受保护函数的鉴权实现方式,以及未登录与已登录场景的访问控制逻辑。
请为 Convex 应用设计管理员、编辑者、普通用户三种角色,并实现基于角色的访问控制规则。
给出角色模型、权限映射方案,以及在函数中校验角色权限的实现建议。
Implement secure authentication in Convex with user management and access control.
Convex supports multiple authentication approaches. Do not assume a provider.
Before writing setup code:
Common options:
Look for signals in the repo before asking:
@clerk/*, @workos-inc/*, @auth0/*, or Convex Auth
packagesconvex/auth.config.ts, auth middleware, provider
wrappers, or login componentsRead the provider's official guide and the matching local reference file:
references/convex-auth.mdreferences/clerk.mdreferences/workos-authkit.mdreferences/auth0.mdThe local reference files contain the concrete workflow, expected files and env vars, gotchas, and validation checks.
Use those sources for:
convex/auth.config.ts setupFor shared auth behavior, use the official Convex docs as the source of truth:
ctx.auth.getUserIdentity()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
…
帮助用户判断应调用哪个 Convex 技能,并分流模糊的应用开发需求
帮助开发者规划 Convex 模式与数据迁移,支持破坏性变更、回填和零停机发布。
帮助你快速创建或接入 Convex,并完成前端初始化与首次本地运行。
帮助维护者高效审查、分诊并交接 ClawHub 的 GitHub 问题与 PR。
审查 Convex 读写与订阅性能瓶颈,定位慢功能与并发冲突问题。
帮助 ClawHub 管理人员执行封禁、解封、角色调整与状态核验。
帮助开发者构建可复用的 Convex 组件,封装独立表结构与对外后端 API。
帮助用户为 Power Pages 站点配置登录认证、权限控制与身份提供商接入。
提供 Convex 生产级应用开发模板与模式,涵盖查询、变更、定时任务和迁移。
通过 API 管理 authentik 用户与用户组,支持创建、加组、重置密码和快速开通。
将 Python 函数部署为带认证的 MCP 连接器,支持 OAuth 与独立虚拟环境管理依赖
通过 Auth0 完成用户认证,并代表用户安全调用受保护 API 的 MCP 工具