skills/better-auth/SKILL.md
Comprehensive TypeScript authentication framework with plugins for 2FA, passkeys, organizations, and 40+ OAuth providers. MANDATORY TRIGGERS: better-auth, better auth, betterAuth, TypeScript authentication, TS auth framework. Also trigger when user wants to add authentication to a TypeScript/JavaScript app, set up social login, implement passwordless auth, configure multi-tenant organizations, add passkey/WebAuthn support, or build an auth system with session management. When in doubt about whether to use this skill for authentication tasks, use it.
npx skillsauth add abhisheksharma-17/skills-graph better-authInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The most comprehensive authentication framework for TypeScript — framework-agnostic, plugin-driven, database-flexible.
Source: better-auth.com v1.5.6 | Package: better-auth (npm) | License: MIT
| Reference | File | Read When |
|-----------|------|-----------|
| Overview & Setup | references/00-overview.md | Getting started, installation, what Better Auth is, architecture, quickstart |
| Server API | references/01-server-api.md | Server-side auth instance, API endpoints, request/response, error handling |
| Client SDK | references/02-client-sdk.md | React/Vue/Svelte/Solid clients, hooks, session hooks, fetch options |
| Session Management | references/03-session-management.md | Sessions, cookies, caching, freshness, stateless mode, Redis integration |
| OAuth & Social Providers | references/04-oauth-providers.md | Social sign-in, account linking, 40+ providers, custom providers, tokens |
| Database & Adapters | references/05-database-adapters.md | Schema, migrations, Prisma/Drizzle/MongoDB adapters, secondary storage |
| Hooks & Middleware | references/06-hooks-middleware.md | Before/after hooks, middleware, context object, background tasks |
| Users & Accounts | references/07-users-accounts.md | Profile updates, password management, account linking, user deletion |
| Plugin System | references/08-plugin-system.md | Plugin architecture, creating plugins, endpoints, schemas, client plugins |
| Admin & Authorization | references/09-admin-authorization.md | Admin plugin, roles, permissions, banning, impersonation, RBAC |
| Organization (Multi-Tenant) | references/10-organization.md | Organizations, members, teams, invitations, access control |
| Security Plugins | references/11-security-plugins.md | 2FA/TOTP, passkeys/WebAuthn, magic link, email OTP, rate limiting |
| Framework Integrations | references/12-framework-integrations.md | Next.js, Nuxt, SvelteKit, Astro, Hono, Express, Remix, Expo |
npm install better-auth
pnpm add better-auth
yarn add better-auth
bun add better-auth
development
High-throughput LLM inference and serving engine with PagedAttention, continuous batching, and OpenAI-compatible API. MANDATORY TRIGGERS: vLLM, vllm, LLM serving, LLM inference engine, PagedAttention. Also trigger when the user wants to serve LLMs in production, deploy models with tensor parallelism, use speculative decoding, quantize models for inference, build OpenAI-compatible API servers, or optimize LLM throughput and latency. When in doubt about whether to use this skill for LLM serving tasks, use it.
tools
Type-safe Python agent framework for building production-grade GenAI applications with Pydantic validation, structured outputs, and dependency injection. MANDATORY TRIGGERS: pydantic-ai, pydantic_ai, PydanticAI, pydantic ai agent. Also trigger when the user wants to build type-safe AI agents in Python, create structured LLM outputs with Pydantic models, implement dependency injection for agents, use tools/capabilities with LLMs, or build multi-agent systems with Python type safety. When in doubt about whether to use this skill for Python AI agent tasks, use it.
development
Durable execution platform for building fault-tolerant workflows, long-running processes, and resilient distributed applications. MANDATORY TRIGGERS: temporal, temporal.io, temporalio, durable execution, workflow orchestration engine. Also trigger when the user wants to build fault-tolerant workflows, implement saga patterns, create long-running distributed processes, orchestrate microservices with retries and timeouts, or build durable AI agent pipelines. When in doubt about whether to use this skill for workflow orchestration or durable execution tasks, use it.
tools
AI framework for building RAG pipelines, agents, workflows, and data-augmented LLM applications with 300+ integrations. MANDATORY TRIGGERS: llamaindex, llama-index, llama_index, LlamaIndex, VectorStoreIndex, SimpleDirectoryReader, LlamaHub, LlamaParse. Also trigger when the user wants to build RAG applications with LlamaIndex, create document indexing pipelines, build agentic workflows with tool calling, implement structured data extraction from documents, or connect LLMs to custom data sources. When in doubt about whether to use this skill for RAG, document indexing, or LLM data augmentation tasks, use it.