convex-setup-auth
Skill by Melvynx
Sets up Convex authentication and authorization for apps that use Convex Auth, Clerk, WorkOS AuthKit, Auth0, or a custom JWT provider. It is for developers adding login and access control to a Convex backend.
Install convex-setup-auth
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Melvynx/saveit.now /tmp/saveit.now && mkdir -p ~/.claude/skills && cp -r /tmp/saveit.now/.agents/skills/convex-setup-auth ~/.claude/skills/convex-setup-authRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Melvynx/saveit.now /tmp/saveit.now && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/saveit.now/.agents/skills/convex-setup-auth ~/.gemini/antigravity-cli/skills/convex-setup-authAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides an AI assistant through adding authentication and authorization to a Convex project. It starts by choosing an auth provider. It asks the user which solution they want, or uses the provider the repository already appears to use. Supported options named in the source are Convex Auth, Clerk, WorkOS AuthKit, Auth0, and a custom JWT provider.
After a provider is chosen, the skill points to the official provider docs and a matching local reference file for package installation, client wiring, environment variables, and the auth.config.ts setup. It shows how to check identity in backend functions with ctx.auth.getUserIdentity() and how to add authorization checks where an app needs them. It is for developers building on Convex who want secure, server-verified access to their data.
Written from the project's SKILL.md and checked against it.
What it can do
- Provider selectionAsks which auth solution to use, or infers it from repo dependencies and existing files.
- Provider setup guidancePoints to references for Convex Auth, Clerk, WorkOS AuthKit, and Auth0 setup steps.
- Protected backend functionsVerifies user identity server-side instead of trusting a client-provided userId.
- User mappingOptionally stores app users in Convex, keyed by tokenIdentifier, when the app needs user documents.
- Authorization checksAdds ownership, role, or team access checks only where the app requires them.
- Post-init verificationChecks generated files and remaining wiring steps after provider initialization commands run.
- Sign-in validationOffers to validate the sign-up or sign-in flow, or gives a manual checklist if browser tools are unavailable.
What you need
- A Convex project
- An auth provider chosen from Convex Auth, Clerk, WorkOS AuthKit, Auth0, or a custom JWT provider
Try asking
- Set up Clerk authentication in my Convex app
- Protect my Convex queries so only signed-in users can read them
- Add a users table mapped to my Auth0 identities in Convex
Good to know
- Not for auth on a non-Convex backend
- Does not assume a provider; asks first when the repo does not make it clear
- Only adds app-level user storage when the app needs it
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/convex-setup-auth/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to convex-setup-auth
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
convex-setup-auth: common questions
Which auth providers does Convex setup auth support?
The skill covers Convex Auth, Clerk, WorkOS AuthKit, Auth0, and custom JWT providers. It points to reference files for the four named providers.
Does it always create a users table?
No. The source says only third-party providers need app-level user storage when the app actually needs user documents. Convex Auth manages its own user records and should not get a parallel users table.
Can it be used with a backend other than Convex?
No. The source says it is not for auth on a non-Convex backend.
How do I install convex-setup-auth?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is convex-setup-auth free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is convex-setup-auth safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to convex-setup-auth?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
