better-auth avatar

Better Auth Best Practices

The better-auth-best-practices skill guides developers through configuring Better Auth, a TypeScript authentication library, including server and client setup, database adapter configuration, session management, and plugin integration. It's designed for developers building authentication systems with email/password or OAuth flows who need step-by-step setup instructions and configuration reference. The skill solves the problem of implementing secure, production-ready authentication by providing installation procedures, environment variable requirements, CLI commands, and core configuration options in one centralized guide.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
20
skills.sh installs
131.4K
GitHub stars
229
last updated
Jul 14, 2026

Install

$ npx -y skills add better-auth/skills --skill better-auth-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Better Auth Integration Guide

Documentation Version

Use documentation that matches the Better Auth version installed in the project. APIs and plugin names can differ across maintained release lines.

  1. Prefer a version explicitly named by the user.
  2. Otherwise, inspect the resolved better-auth version in the lockfile, falling back to the package manifest when no lockfile is available.
  3. When the Better Auth MCP is available, call get_doc with /llms.txt to resolve that package version to a documentation identifier. Pass the identifier to every search_docs call and pass result paths to get_doc unchanged.
  4. Without MCP, start at better-auth.com/llms.txt and follow the matching version index.
  5. Use the latest documentation only when the project version cannot be determined or the user explicitly asks about the latest release or an upgrade.

When planning an upgrade, separate guidance for the currently installed version from guidance for the target version.


Setup Workflow

Sponsors

Details

Repository
github.com/better-auth/skills
Categories
Backend & APIs, Security, Databases

More from better-auth/skills

All 6
1intellectronica avatarnotion-apiintellectronica/agent-skillsThis skill provides comprehensive instructions for interacting with the Notion API via REST calls. This skill should be used whenever the user asks to interact 102.5Kskills.sh installs
2addyosmani avatarapi-and-interface-designaddyosmani/agent-skillsGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defini72.4Kskills.sh installs
3wshobson avatarnodejs-backend-patternswshobson/agentsBuild production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, an49.8Kskills.sh installs
4samber avatargolang-databasesamber/cc-skills-golangComprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connec42.5Kskills.sh installs
5neondatabase avatarneon-ai-gatewayneondatabase/agent-skillsOne API and one credential for frontier and open-source LLMs and embedding models, built into your Neon branch and powered by Databricks. Use when a user wants 39.8Kskills.sh installs
6better-auth avatartwo-factor-authentication-best-practicesbetter-auth/skillsMulti-factor authentication with TOTP, OTP, backup codes, and trusted device management for Better Auth.36.5Kskills.sh installs