What the tech

Search

/ opens search from anywhere. Esc closes it.

Tools

Get the newsletter

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).

  • Adoption35 points 56
  • Upkeep20 points 100
  • Trust20 points 82
  • Quality15 points 100
  • Reader answers10 points Not enough answers yet, so this does not count

How the formula works

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.

ScannerResultDate
Gen Agent Trust HubPassedSep 14, 2026
SocketPassedSep 14, 2026
SnykMedium riskSep 14, 2026
RunlayerLow riskMar 3, 2026
ZeroLeaksLow riskApr 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

Alternatives to better-auth-best-practices

All skills for this job