create-auth-skill

Scaffold and implement authentication in TypeScript/JavaScript apps with Better Auth framework detection, database adapter setup,…

better-auth ↓ 30k
Claude Code
View source ↗

What it does

  • Framework — Look for next.config, svelte.config, nuxt.config, astro.config, vite.config, or Express/Hono entry files.
  • 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.
  • Prompt: "What type of project is this?"
  • Options: New project from scratch | Adding auth to existing project | Migrating from another auth library
  • Prompt: "Which framework are you using?"
  • Options: Next.js (App Router) | Next.js (Pages Router) | SvelteKit | Nuxt | Astro | Express | Hono | SolidStart | Other

Requirements & configuration

  • Before writing any code, gather requirements by scanning the project and asking the user structured questions. This ensures the implementation matches their needs.
  • Prompt: "Which sign-in methods do you need?"
  • Prompt: "Which social providers do you need?"
  • Prompt: "Do you want to require email verification?"
  • Prompt: "Which additional features do you need?"

Configuration: GITHUB_CLIENT_IDGITHUB_CLIENT_SECRETGOOGLE_CLIENT_IDBETTER_AUTH_SECRET

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Scaffold and implement authentication in TypeScript/JavaScript apps with Better Auth framework detection, database adapter setup, and OAuth integration.

Source

Repository: https://github.com/better-auth/skills

create-auth-skill FAQ

What does the create-auth-skill skill do?

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. Framework — Look for next.config, svelte.config, nuxt.config, astro.config, vite.config, or Express/Hono entry files. Existing auth — Look for existing auth libraries (next-auth, lucia, clerk, supabase/auth, firebase/auth) in package.json or imports.

What does create-auth-skill require?

Before writing any code, gather requirements by scanning the project and asking the user structured questions. This ensures the implementation matches their needs. Prompt: "Which sign-in methods do you need?" Prompt: "Which social providers do you need?" Prompt: "Do you want to require email verification?" Prompt: "Which additional features do you need?" Configuration keys: GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, GOOGLE_CLIENT_ID, BETTER_AUTH_SECRET.

How do I install create-auth-skill?

Run: npx -y skills add https://github.com/better-auth/skills --skill create-auth-skill --agent claude-code — the source lives at github.com/better-auth/skills.

Maintain create-auth-skill?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

create-auth-skill on getagentictools
[![create-auth-skill on getagentictools](https://getagentictools.com/badge/skills/better-auth-skills-create-auth-skill.svg)](https://getagentictools.com/skills/better-auth-skills-create-auth-skill?ref=badge)
npx agentictools info skills/better-auth-skills-create-auth-skill

The second line is the CLI lookup for this page — handy in READMEs and docs.