Back to skills

best-practices

security

Covers Better Auth server and client setup, including database adapter configuration, session management, plugin integration, and environment variable handling. Targets TypeScript projects using email

Setup & Installation

npx skills add https://github.com/better-auth/best-practices --skill best-practices
or paste the link and ask your coding assistant to install it
https://github.com/better-auth/best-practices
View on GitHub

What This Skill Does

Covers Better Auth server and client setup, including database adapter configuration, session management, plugin integration, and environment variable handling. Targets TypeScript projects using email/password auth, OAuth providers, or plugin-based features like two-factor and magic links. Better Auth has enough config surface area that small mistakes like confusing ORM model names with table names or missing a CLI re-run after adding plugins break auth silently, so having the exact rules in context prevents those bugs without digging through the docs each time.

When to use it

  • Working with best practices functionality
  • Implementing best practices features
  • Debugging best practices related issues