better-auth-best-practices

Official Better Auth server/client setup, adapters, sessions, plugins, and environment variables. Prefer this over community Better Auth copies.

better-auth-best-practices18 wordsCuratedinstall-now-after-trust-gate

better-auth-best-practices

Official Better Auth server/client setup, adapters, sessions, plugins, and environment variables. Prefer this over community Better Auth copies.

Quick Start

Install:

npx skills add better-auth/skills --skill better-auth-best-practices -y -g -a antigravity claude-code codex crush cursor gemini-cli github-copilot grok opencode

Use: /better-auth-best-practices

Works with Claude Code, Gemini CLI, OpenCode, and other agentskills.io-compatible agents.

better-auth-best-practices provides authoritative configuration guidance for Better Auth (server/client setup, database adapters, sessions, plugins, environment variables, email flows, security, hooks, and client usage). The skill instructs agents to always consult the official better-auth.com/docs and re-run the @better-auth/cli after plugin changes. It is triggered by mentions of Better Auth, betterauth, auth.ts, or TypeScript auth setup needs.

Targets verified harnesses: antigravity, claude-code, codex, crush, cursor, gemini-cli, github-copilot, grok, opencode.

Portable multi-harness install command:

Terminal window
npx skills add better-auth/skills --skill better-auth-best-practices -y -g -a antigravity claude-code codex crush cursor gemini-cli github-copilot grok opencode

Trust tier: Curated (curated-trust-gated)

Curated status: install-now-after-trust-gate

Risk notes: Official Better Auth server/client setup, adapters, sessions, plugins, and environment variables. Prefer this over community Better Auth copies.

Entry maintained in authoring SSOT docs/src/authoring/skills/better-auth-best-practices.mdx and docs/public/generated-registries/skills-catalog-index.json; research context is advisory.

npx skills add better-auth/skills --skill better-auth-best-practices -y -g -a antigravity claude-code codex crush cursor gemini-cli github-copilot grok opencode

Depends on npm install better-auth and running the Better Auth CLI for schema generation/migrations in the consuming project.

FieldValue
Source Typecurated-external
Display Sourcebetter-auth/skills
Source Kindgithub
Installabilityportable command
Review Statecurated
Trust Tiercurated-trust-gated
Target Agentsantigravity, claude-code, codex, crush, cursor, gemini-cli, github-copilot, grok, opencode
View Full SKILL.md
SKILL.md
---
name: "better-auth-best-practices"
description: "Official Better Auth server/client setup, adapters, sessions, plugins, and environment variables. Prefer this over community Better Auth copies."
title: "Better Auth Best Practices"
source_kind: "curated-external"
source: "better-auth/skills"
install_source: "better-auth/skills"
status: "install-now-after-trust-gate"
trust_tier: "curated-trust-gated"
provenance_status: "verified-install-command"
install_command: "npx skills add better-auth/skills --skill better-auth-best-practices -y -g -a antigravity claude-code codex crush cursor gemini-cli github-copilot grok opencode"
target_agents: [antigravity, claude-code, codex, crush, cursor, gemini-cli, github-copilot, grok, opencode]
source_url: "https://github.com/better-auth/skills"
notes: "Official Better Auth server/client setup, adapters, sessions, plugins, and environment variables. Prefer this over community Better Auth copies."
risk_notes: "Official Better Auth server/client setup, adapters, sessions, plugins, and environment variables. Prefer this over community Better Auth copies."
promotion_policy: "Install only after trust gate; audit again before repo promotion."
provenance_evidence: "Curated `npx skills add` command with named `--skill` selectors under `install-now-after-trust-gate` in authoring catalog."
---
Official Better Auth server/client setup, adapters, sessions, plugins, and environment variables. Prefer this over community Better Auth copies.

Install / provenance (from authoring frontmatter + research):

FieldValue
install_commandnpx skills add better-auth/skills --skill better-auth-best-practices -y -g -a antigravity claude-code codex crush cursor gemini-cli github-copilot grok opencode
sourcebetter-auth/skills
source_urlhttps://github.com/better-auth/skills
trust_tiercurated-trust-gated
curated_statusinstall-now-after-trust-gate
target_agentsantigravity, claude-code, codex, crush, cursor, gemini-cli, github-copilot, grok, opencode