better-auth

better-auth is a skill for Claude Code from georgekhananaev/claude-skills-vault. It costs 62 tokens per session (391 once invoked), scanned A, original, MIT.

An integration guide for Better Auth, a toolkit for adding user accounts and sign-in to TypeScript and JavaScript applications.

In plain words
What is it for?
Use it to create login and signup, configure authentication servers and clients, connect supported databases, add OAuth, or set up features such as passkeys and two-factor authentication.
Why use it?
It explains the setup details that can otherwise make authentication, sessions, databases, and sign-in providers difficult to connect correctly.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to create login and signup, configure authentication servers and clients, connect supported databases, add OAuth, or set up features such as passkeys and two-factor authentication.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/georgekhananaev/claude-skills-vault/better-auth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add georgekhananaev/claude-skills-vault --skill better-auth
Clone the repo
git clone --depth 1 https://github.com/georgekhananaev/claude-skills-vault

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for better-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/better-auth/github.svg)](https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/better-auth)
Your own site
<a href="https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/better-auth"><img src="https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/better-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for better-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/better-auth"><img src="https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/better-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 391 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00391
Opus 5 $0.00031 $0.00196
Sonnet 5 $0.00012 $0.00078
Haiku 4.5 $0.00006 $0.00039

Measured 12d ago against content hash d0318f89874d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

better-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/better-auth/SKILL.md · 42 lines

What it actually says

Better Auth Skills

Complete authentication setup and integration guide using Better Auth for TypeScript/JavaScript applications.

Available Sub-Skills

Skill File Use When
Best Practices best-practices-SKILL.md Configuring Better Auth, database adapters, sessions, plugins, security
Create Auth create-auth-SKILL.md Scaffolding auth from scratch, adding login/signup to a project

Quick Reference

Setup

  1. npm install better-auth
  2. Set BETTER_AUTH_SECRET and BETTER_AUTH_URL env vars
  3. Create auth.ts with database + config
  4. Create route handler for your framework
  5. Run npx @better-auth/cli@latest migrate

Supported Frameworks

Next.js (App/Pages Router), SvelteKit, Nuxt, Astro, Express, Hono, SolidStart

Supported Databases

PostgreSQL, MySQL, SQLite, MongoDB (via Prisma, Drizzle, or direct drivers)

Key Plugins

twoFactor, organization, passkey, magicLink, emailOtp, username, admin, apiKey, bearer, jwt, sso

Source

From better-auth/skills.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 42 lines · 62 tokens per session scan A d0318f89874d

Subscribe to this mod's changes

better-auth is a skill published in the GitHub repository georgekhananaev/claude-skills-vault (28 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 391 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nestjs-expert

Creates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when building NestJS REST APIs or GraphQL services, implementing dependency injection, scaffolding modular architecture, adding JWT/Passport authentication, integrating…

Jeffallan/claude-skills · 107 tokens

fastify-typescript

This skill should be used when using TypeScript with Fastify, configuring type providers, using @fastify/type-provider-typebox, using @fastify/type-provider-json-schema-to-ts, typing Fastify plugins, declaration merging for decorators, typing route handlers, FastifyInstance generics, FastifyRequest generics…

RadOrigin-LLC/RAD-Claude-Skills · 89 tokens

nestjs-expert

Provides NestJS patterns for modules, controllers, providers, guards, interceptors, and microservices. Use when working with NestJS TypeScript files (.module.ts, .controller.ts, .service.ts) or when the user mentions NestJS, Nest.js, or NestJS modules.

tranhieutt/software_development_department · 61 tokens

scraperapi-nodejs-sdk

Best-practices reference for the ScraperAPI Node.js / JavaScript SDK (scraperapi-sdk npm package). Consult whenever the user is writing, debugging, or reviewing JavaScript or TypeScript code that calls ScraperAPI. Use when user asks: "scrape a website with Node.js and ScraperAPI", "ScraperAPI JavaScript example", "how…

scraperapi/scraperapi-skills · 187 tokens

javascript-code

JavaScript/TypeScript development, paradigms, and runtime environments.

DongDuong2001/pudo-code-system · 16 tokens

050101-elysia-framework

Elysia API framework patterns — plugin pipeline, controller conventions, auto-routing, auth macro, TypeBox models, and multi-tier API keys.

natuleadan/skills · 36 tokens