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
- #55of 200
- Installs
- 13Kon 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
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
It can
- 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
- 130,412
- Repository stars
- 229
- 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 supabase-postgres-best-practicessupabase-postgres-best-practices
For developers writing SQL, schemas or row level security policies on any Postgres database.
-
Get PrismaPrisma
For TypeScript developers on Prisma ORM who want correct queries, CLI commands and database setup.
-
Get neon-postgresneon-postgres
For developers whose Postgres runs on Neon and who want help with connection strings, branches and slow queries.
-
Get supabasesupabase
For developers building on Supabase who want auth, RLS and migrations handled with care.