better-auth-best-practices: a Claude Code skill by Better Auth
Official
For TypeScript developers setting up or changing Better Auth sign-in, sessions and plugins. Skip it if your app uses a different auth library or a hosted provider.
- Score
- 79of 100
- Rank
- #63of 239
- Installs
- 132Kon skills.sh
- Security
- Mixed 5 scanners
- Updated
- 2026
- Context
- ~77tokens always
Install
npx skills add https://github.com/better-auth/skills --skill better-auth-best-practices Run it in your terminal. View the source
Using the Claude app rather than Claude Code? You can add a skill there too. How to add it in the app
What does better-auth-best-practices do?
better-auth-best-practices is a Claude skill for adding and configuring Better Auth, a TypeScript auth library. It first matches docs to the installed version from the lockfile, through the Better Auth MCP or llms.txt. Setup runs in six steps: install, set BETTER_AUTH_SECRET and BETTER_AUTH_URL, write auth.ts, add the route handler, run npx auth@latest migrate or generate a Prisma or Drizzle schema, then call GET /api/auth/ok. It lists config options, session storage and cookie cache modes, email flows, hooks, plugin imports such as twoFactor and passkey, client methods, and gotchas like model names versus table names.
When should you use better-auth-best-practices?
Use it when
- You are adding email and password or OAuth login
- You are adding a plugin like two-factor or passkeys
- Sessions or migrations act oddly after a config change
Skip it when
- Your app uses a different auth library
- You are not working in TypeScript
What it needs and what it can touch
You need
- A TypeScript project with a database
What it can do
- Runs shell commands (npm install, npx auth migrate)
- Reads and edits project files
From reading its instructions, not from running it.
Why it scores 79
Strongest on upkeep (100 of 100), weakest on adoption (56).
Is better-auth-best-practices safe to install?
At least one scanner raised a medium warning. Read the results below. Scanners often miss what other scanners catch, and a skill can change after a scan. Read its source before you install it.
| Scanner | Result | Date |
|---|---|---|
| Gen Agent Trust Hub | Passed | Sep 14, 2026 |
| Socket | Passed | Sep 14, 2026 |
| Snyk | Medium risk | Sep 14, 2026 |
| Runlayer | Low risk | Mar 3, 2026 |
| ZeroLeaks | Low risk | Apr 16, 2026 |
Details
- Installs
- 131,669
- Repository stars
- 228
- Last repository change
- Tokens always loaded
- about 77
- Tokens when used
- about 1,969
- License
- Not stated
- Data confidence
- High
Did it do the job for you?
Alternatives to better-auth-best-practices
All skills for this job-
Get email-and-password-best-practicesemail-and-password-best-practices
For TypeScript developers adding email and password login with Better Auth.
-
Get better-auth-security-best-practicesbetter-auth-security-best-practices
For developers running Better Auth who want to lock down sessions, cookies and sign-in limits before launch.
-
Get clerk-setupclerk-setup
For developers adding Clerk sign-in to a web or mobile app through the Clerk CLI.
-
Get Firebase skillsFirebase skills
For app developers on Firebase who want Claude to run the CLI for setup, sign-in, hosting and Gemini features.