create-auth-skill

Scaffold Better Auth authentication for TypeScript/JavaScript apps with framework and database detection.

Updated May 14, 2026
One-click install
npx skills add https://github.com/chroniicallydiistracted/LorcanaChamp --skill create-auth-skill-chroniicallydiistracted
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-auth-skill
Source: https://github.com/chroniicallydiistracted/LorcanaChamp/tree/main/references/lorcana-simulator/.agents/skills/create-auth-skill
Command: npx skills add https://github.com/chroniicallydiistracted/LorcanaChamp --skill create-auth-skill-chroniicallydiistracted

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Create Auth scaffolding for TypeScript/JavaScript projects by planning and implementing authentication with Better Auth, so you avoid ad-hoc, insecure, or incomplete login setups.

Core Features & Use Cases

  • Framework-aware planning: Detects your framework and routes so auth is wired correctly for Next.js (App/Pages), Express, SvelteKit, SolidStart, and Hono.
  • Database/adapter configuration: Identifies your DB/ORM approach (Prisma, Drizzle, Kysely, drivers) and maps it to the appropriate Better Auth adapter and migrations.
  • Auth methods + plugins: Sets up email/password, OAuth providers, magic link concepts, passkeys, SSO, and common plugins like 2FA, organizations, admin, bearer tokens, and openAPI.
  • Operational security guidance: Guides you to set required environment variables, configure trusted origins, enable secure cookies in production, and implement verification/reset flows.

Quick Start

Scaffold Better Auth by asking the assistant to add login, OAuth (e.g., GitHub), and the required routes and UI pages for your current framework.

Frequently Asked Questions about create-auth-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Better Auth authentication to an existing TypeScript project?

Better Auth authentication scaffolding scans your TypeScript project to detect framework and ORM signals, then generates server configuration, client helpers, and database adapters. It structures a complete implementation plan by collecting auth method and plugin preferences to produce coherent routes and migration files.

Can I use Better Auth with different frameworks like Express or SvelteKit?

Better Auth supports Next.js (App/Pages), Express, SvelteKit, SolidStart, and Hono frameworks. The scaffolding process detects your framework and routes to wire server configuration and client helpers correctly for the detected environment.

Does Better Auth support OAuth providers and plugins like 2FA?

Better Auth supports email/password, OAuth providers, magic links, passkeys, and SSO. It also configures common plugins including 2FA, organizations, admin, bearer tokens, and openAPI based on your structured choices during the setup flow.

How do I configure database adapters for Better Auth with Prisma or Drizzle?

Configuring database adapters for Better Auth requires identifying your ORM approach, such as Prisma, Drizzle, or Kysely. The setup maps your specific database driver to the appropriate Better Auth adapter and generates the corresponding migration files.

What environment variables and security configurations does Better Auth need for production?

Better Auth production setup requires configuring environment variables, trusted origins, and secure cookies. The scaffolding provides operational security guidance to implement verification and reset flows while ensuring sensitive credentials are properly managed.