Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

better-auth

БесплатноБез исполняемых скриптовНе проверен

Better Auth in TypeScript — setting up the auth instance, picking adapters, wiring framework route handlers, configuring sessions and cookies, adding plugins…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

Better Auth Best Practices

Implementation and migration guide for Better Auth, the framework-agnostic TypeScript authentication and authorization library. This skill contains 42 rules organized by impact across 8 categories, derived from the official documentation and migration guides.

When to Apply

Reference these guidelines when:

  • Setting up a fresh Better Auth instance (config, adapter, route handler, client)
  • Wiring framework-specific integrations (Next.js App/Pages Router, SvelteKit, Hono, Express, Nuxt, Astro)
  • Configuring sessions, cookies, and security (rate limit, trusted origins, password hashing)
  • Adding plugins: 2FA, organization, admin, magicLink, JWT, passkey, multi-session
  • Migrating from another auth library (NextAuth/Auth.js, Clerk, Auth0, Supabase Auth)
  • Debugging "session is null" / "redirect_uri_mismatch" / 403 CSRF errors
  • Reviewing PRs that touch lib/auth.ts, auth-client.ts, or /api/auth/ route handlers

Rule Categories by Priority

Priority Category Impact Prefix
1 Setup & Configuration CRITICAL setup-
2 Database Adapters & Schema CRITICAL db-
3 API Route Handlers CRITICAL route-
4 Session & Cookies HIGH session-
5 Auth Methods & Providers HIGH auth-
6 Security & Hardening HIGH security-
7 Plugins & Extensions MEDIUM plugins-
8 Migration from Other Auth MEDIUM migrate-

Quick Reference

1. Setup & Configuration (CRITICAL)

2. Database Adapters & Schema (CRITICAL)

3. API Route Handlers (CRITICAL)

4. Session & Cookies (HIGH)

5. Auth Methods & Providers (HIGH)

6. Security & Hardening (HIGH)

Полный SKILL.md на GitHub

Установить better-auth в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdassets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/auth-client-sign-in-helpers.mdreferences/auth-infer-additional-fields.mdreferences/auth-magic-link-setup.mdreferences/auth-oauth-env-vars.mdreferences/auth-oauth-redirect-uri.mdreferences/auth-require-email-verification.mdreferences/db-adapter-selection.mdreferences/db-additional-fields.mdreferences/db-connection-pooling.mdreferences/db-database-hooks.mdreferences/db-plugin-schema-customization.mdreferences/db-schema-generate.mdreferences/migrate-force-allow-id.mdreferences/migrate-nextauth-schema-mapping.mdreferences/migrate-oauth-account-mapping.mdreferences/migrate-parallel-cutover.mdreferences/plugins-admin-impersonation.mdreferences/plugins-jwt-when-to-use.mdreferences/plugins-next-cookies-last.mdreferences/plugins-organization-active-context.mdreferences/plugins-pair-client-server.mdreferences/plugins-shared-access-control.mdreferences/plugins-two-factor-issuer.mdreferences/route-mount-catchall.mdreferences/route-no-body-consumers.mdreferences/route-runtime-selection.mdreferences/security-min-password-length.mdreferences/security-password-hash-interop.mdreferences/security-rate-limit.mdreferences/security-revoke-on-password-reset.mdreferences/security-trusted-origins-strict.mdreferences/session-cookie-attributes.mdreferences/session-cookie-cache.mdreferences/session-cross-subdomain.mdreferences/session-customsession-fields.mdreferences/session-expiry-tuning.md

FAQ

Что делает скилл better-auth?

Better Auth in TypeScript — setting up the auth instance, picking adapters, wiring framework route handlers, configuring sessions and cookies, adding plugins (2FA, organization, admin, magicLink, JWT), or porting from NextAuth/Auth.js, Clerk, Auth0, or Supabase Auth. Covers Next.js, SvelteKit, Hono, Express, Nuxt, Astro, and React/Vue/Svelte clients. Trigger when writing, reviewing, or migrating Better Auth code — and even when the user doesn't explicitly mention Better Auth but is working on TypeScript authentication, session cookies, OAuth providers, or auth-library migration. Contains 42 rules organized by impact across 8 categories.

Как установить скилл better-auth?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл better-auth запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить better-auth с