Agent skill · software engineering · aiskillstore

create-auth

Scaffold and implement authentication in TypeScript/JavaScript apps using Better Auth. Detect frameworks, configure database adapters, set up route handlers, add OAuth providers, and create auth UI pages. Use when users want to add login, sign-up, or authentication to a new or existing project with Better Auth.

Why this skill is useful

Adds specific implementation patterns and configuration steps for integrating Better Auth into various frameworks that the AI wouldn't reliably generate on its own.

What it needs

Requires better-auth installed locally. About 8k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Create Auth Skill Guide for adding authentication to TypeScript/JavaScript applications using Better Auth. For code examples and syntax, see better-auth.com/docs. --- Phase 1: Planning (REQUIRED before implementation) Before writing any code, gather requirements by scanning the project and asking the user structured questions. This ensures the implementation matches their needs. Step 1: Scan the project Analyze the codebase to auto-detect: Framework — Look for next.config, svelte.config, nuxt.config, astro.config, vite.config, or Express/Hono entry files. Database/ORM — Look for prisma/schema.prisma, drizzle.config.ts, package.json deps (pg, postgres, @neondatabase/serverless, mysql2, better-sqlite3, mongoose, mongodb). If drizzle.config.ts exists, read its dialect field to determine the DB type (e.g., "postgresql" → Drizzle + Postgres). Also check which Drizzle driver is installed (drizzle-orm/node-postgres → pg, drizzle-orm/postgres-js → postgres, drizzle-orm/neon-http → Neon). Existing auth — Look for existing auth libraries (next-auth, lucia, clerk, supabase/auth, firebase/auth) in package.json or imports. Package manager — Check for pnpm-lock.yaml, yarn.lock, bun.lockb, or package-lock.json. Use what you find to pre-fill defaults and skip questions you can already answer. Step 2: Ask planning questions Use the AskQuestion tool to ask the user all applicable questions in a single call. Skip any question you already have a confident answer for from the scan. Group them under a title like "Auth Setup Planning". Questions to ask: 1. Project type (skip if detected) Prompt: "What type of project is this?" Options: New project from scratch Adding auth to existing project Migrating from another auth library 2. Framework (skip if detected) Prompt: "Which framework are you using?" Options: Next.js (App Router) Next.js (Pages Router) SvelteKit Nuxt Astro Express Hono SolidStart Other 3. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/create-auth-skill

View the source on GitHub

Browse the @skills marketplace