This handles authentication across any TypeScript framework with a pragmatic plugin system. You get email/password and OAuth out of the box, then add passkeys, 2FA, magic links, or multi-tenant orgs as plugins when you need them. The framework-agnostic design means the same auth code works in Next.js, SvelteKit, Express, or whatever you're using. What's nice is the CLI generates your database schema and the client hooks integrate cleanly with React, Vue, or Svelte. It's comprehensive without being opinionated about your stack, which matters if you're building something that might outlive the current JavaScript framework wars.

skills.sh installs
396
GitHub stars
2.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add mrgoonie/claudekit-skills --skill better-auth --agent claude-code

Installs into .claude/skills of the current project.

Files

Better Auth Skill

Better Auth is comprehensive, framework-agnostic authentication/authorization framework for TypeScript with built-in email/password, social OAuth, and powerful plugin ecosystem for advanced features.

When to Use

  • Implementing auth in TypeScript/JavaScript applications
  • Adding email/password or social OAuth authentication
  • Setting up 2FA, passkeys, magic links, advanced auth features
  • Building multi-tenant apps with organization support
  • Managing sessions and user lifecycle
  • Working with any framework (Next.js, Nuxt, SvelteKit, Remix, Astro, Hono, Express, etc.)

Quick Start

Installation

npm install better-auth
# or pnpm/yarn/bun add better-auth

Environment Setup

Create .env:

BETTER_AUTH_SECRET=<generated-secret-32-chars-min>
BETTER_AUTH_URL=http://localhost:3000

Basic Server Setup

Create auth.ts (root, lib/, utils/, or under src/app/server/):

import { betterAuth } from "better-auth";

Sponsors

Details

Repository
github.com/mrgoonie/claudekit-skills
Categories
Backend & APIs, Security, Git & Pull Requests, Databases
First seen
Jun 3, 2026

More from mrgoonie/claudekit-skills

All 28
1davila7 avatarfirebasedavila7/claude-code-templatesFirebase gives you a complete backend in minutes - auth, database, storage, functions, hosting. But the ease of setup hides real complexity. Security rules are 390skills.sh installs
2davila7 avatarprisma-expertdavila7/claude-code-templatesPrisma ORM expert for schema design, migrations, query optimization, relations modeling, and database operations. Use PROACTIVELY for Prisma schema issues, migr386skills.sh installs
3levnikolaevich avatarln-113-backend-docs-creatorlevnikolaevich/claude-code-skillsCreates backend docs (api_spec.md, database_schema.md). Use when project has backend API or database.384skills.sh installs
4onewave-ai avatarapi-documentation-writeronewave-ai/claude-skillsGenerate comprehensive API documentation including endpoint descriptions, request/response examples, authentication guides, error codes, and SDKs. Creates OpenA384skills.sh installs
5siviter-xyz avatarbackend-engineersiviter-xyz/dot-agentBuild robust backend systems with modern technologies (Node.js, Python, Go, Rust), frameworks (NestJS, FastAPI, Django), databases (PostgreSQL, MongoDB, Redis),349skills.sh installs
6dhruvanbhalara avatarflutter-firebasedhruvanbhalara/skillsIntegrate Firebase services including Authentication, Firestore, Cloud Messaging, Crashlytics, and Analytics. Use when adding backend capabilities, push notific341skills.sh installs