create-auth-skill

Scaffold authentication in TypeScript/JavaScript apps using Better Auth.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/jayantrohila57/e-commerce --skill create-auth-skill-jayantrohila57
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-auth-skill
Source: https://github.com/jayantrohila57/e-commerce/tree/main/.windsurf/skills/create-auth-skill
Command: npx skills add https://github.com/jayantrohila57/e-commerce --skill create-auth-skill-jayantrohila57

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of integrating robust authentication into TypeScript/JavaScript applications, handling everything from user sign-up and login to advanced features like OAuth and two-factor authentication.

Core Features & Use Cases

  • Framework Agnostic: Works with Next.js, SvelteKit, Express, Hono, and more.
  • Database Integration: Supports Prisma, Drizzle, and direct database drivers.
  • Multi-Method Auth: Enables email/password, OAuth (Google, GitHub, etc.), and passkeys.
  • Advanced Features: Includes 2FA, organizations, password reset, and email verification.
  • Use Case: Quickly add secure user login and social sign-in to a new Next.js e-commerce application.

Quick Start

Use the create-auth-skill to scaffold authentication for a Next.js project using email and password.

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 authentication to a Next.js or SvelteKit app?

To add authentication to a Next.js or SvelteKit app, this Skill scaffolds the entire flow using Better Auth. It automatically detects your project framework, configures the necessary route handlers, and sets up secure user login.

Can I use this to set up OAuth providers like Google and GitHub in Express?

Yes, you can set up OAuth providers like Google and GitHub in Express. The Skill configures multi-method authentication, enabling social sign-in alongside traditional email and password flows for your application.

Does this authentication generator support Prisma and Drizzle database adapters?

Yes, this authentication generator supports Prisma, Drizzle, and direct database drivers. It detects your project's database adapter during scaffolding to correctly configure the authentication data models.

What is the best way to implement two-factor authentication and organizations in TypeScript?

The best way to implement two-factor authentication and organizations in TypeScript is using this Skill's advanced features. It directly scaffolds 2FA, organization management, and email verification into your application.

How do I scaffold a complete authentication flow including UI pages?

To scaffold a complete authentication flow, the Skill generates route handlers and sets up UI pages for login and registration. It integrates with your detected framework to provide a functional authentication setup.

Do I need a specific database setup to configure Better Auth in JavaScript?

You need a supported database setup like Prisma, Drizzle, or direct database drivers to configure Better Auth. The Skill detects your existing database adapter to properly implement the required authentication schema.