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 . Show more Installs 750 Repository better-auth/skills GitHub Stars 203 First Seen 6 days ago Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Warn
create-auth
安装
npx skills add https://github.com/better-auth/skills --skill create-auth