๐Ÿ”
AI EngineeringTypeScript

Better Auth

by secondsky

Better Auth is an AI Engineering skill for Claude Code, published by secondsky in claude-skills.

214 stars31 forkson secondsky/claude-skillsAdded 2026/09/04+1% in starsRepository updated 2026/09/03
claude-codeclaude-code-commandsclaude-code-hooksclaude-code-pluginclaude-code-pluginsclaude-code-skillclaude-code-skills
Install in seconds
Install Better Auth
Copy Better Auth into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/secondsky/claude-skills/tree/main/plugins/better-auth/skills/better-auth ~/.claude/skills/better-auth

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/secondsky/claude-skills.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
plugins/better-auth/skills/better-auth/SKILL.md in secondsky/claude-skills
Installs to
~/.claude/skills/better-auth
Collection
One of 24 skills cataloged from this repository
Category
AI Engineering โ€” 2970 skills

What Better Auth does

Better Auth integrates Better Auth into TypeScript apps for login, OAuth, 2FA, RBAC, and D1-backed auth flows. Use it when adding authentication or fixing Better Auth adapter and migration issues.

Better Auth is cataloged under AI Engineering on DirSkills. Better Auth comes from a repository tagged claude-code, claude-code-commands, claude-code-hooks, claude-code-plugin and claude-code-plugins.

Documentation

README

better-auth

Status: Production Ready Last Updated: 2026-04-08 Package: better-auth@1.6.0 (ESM-only) Dependencies: Drizzle ORM or Kysely (required for D1 complex use cases; D1 native support available in v1.5+)


Quick Start (5 Minutes)

Installation

Option 1: Drizzle ORM (Recommended)

bun add better-auth drizzle-orm drizzle-kit

Option 2: Kysely

bun add better-auth kysely @noxharmonium/kysely-d1

โš ๏ธ v1.4.0+ Requirements

better-auth v1.4.0+ is ESM-only. Ensure:

package.json:

{
  "type": "module"
}

Upgrading from v1.3.x? Load references/migration-guide-1.4.0.md Upgrading from v1.4.x? Load references/migration-guide-1.5.0.md

โš ๏ธ CRITICAL: D1 Adapter Requirements

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Better Auth

  • What else does secondsky publish alongside Better Auth?

    Better Auth is one of 24 skills that DirSkills catalogs from secondsky/claude-skills, the repository it ships in. Its siblings there include API Authentication, API Changelog & Versioning and API Contract Testing. Each one is a separate skill with its own page in this directory, installs the same way Better Auth does, and is maintained by secondsky in that same repository. The rest of the collection is listed on the secondsky/claude-skills page.

  • How does Better Auth compare to other AI Engineering skills?

    Better Auth ranks #2654 by stars among the 2970 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Better Auth against them. Open each page to compare what they document and how they install.

More from secondsky/claude-skills

Better Auth is one of 24 skills cataloged on DirSkills from secondsky/claude-skills.

See all 24 skills โ†’
๐Ÿ”
2h ago

API Authentication

API Authentication implements secure API auth with JWT, OAuth 2.0, API keys, and sessions. Use it for login flows, third-party integrations, service-to-service access, and token handling.
AI Engineering
21431
๐Ÿ“
2h ago

API Changelog & Versioning

API Changelog & Versioning creates changelogs that document breaking changes, deprecations, and migration steps for API consumers. Use it when releasing new API versions or planning upgrades.
Writing
21431
๐Ÿงช
2h ago

API Contract Testing

API Contract Testing verifies that services honor request and response contracts with consumer-driven tests, schema validation, and tools like Pact. Use it to test microservice communication, catch breaking changes, or validate OpenAPI specs.
Quality
21431
๐Ÿงฉ
2h ago

API Design Principles

API Design Principles helps you design REST and GraphQL APIs with clear resource models, versioning, pagination, and error handling. Use it when creating APIs, reviewing specifications, or setting API standards.
AI Engineering
21431
๐Ÿšจ
2h ago

API Error Handling

API Error Handling implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use it when building production APIs or adding error recovery and monitoring patterns.
DevOps
21431
๐Ÿ”Ž
2h ago

API Filtering And Sorting

API Filtering And Sorting builds flexible query parsing for filters and sort parameters in search endpoints and data APIs. Use it to validate allowed fields, map operators, and reduce injection risk.
Automation
21431