create-auth-skill

Scaffold and implement Better Auth for TypeScript and JavaScript applications.

3|2|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/zaid-khan-code/learnHub-ai-powered-online-learning-platform-lms --skill create-auth-skill-zaid-khan-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-auth-skill
Source: https://github.com/zaid-khan-code/learnHub-ai-powered-online-learning-platform-lms/tree/main/.agents/skills/create-auth-skill
Command: npx skills add https://github.com/zaid-khan-code/learnHub-ai-powered-online-learning-platform-lms --skill create-auth-skill-zaid-khan-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the guesswork from adding authentication to TypeScript and JavaScript applications by guiding planning, setup, and implementation with Better Auth.

Core Features & Use Cases

  • Framework Detection: Identifies the app stack and chooses the correct auth wiring for frameworks like Next.js, SvelteKit, Nuxt, Astro, Express, and Hono.
  • Database and Provider Setup: Configures the right adapter, database schema flow, and environment variables for the project’s storage layer.
  • Auth Workflow Implementation: Helps add email and password sign-in, OAuth providers, verification, password reset, plugins, and protected routes.
  • Use Case: A team building a production Next.js app can use this Skill to plan and ship secure login, sign-up, and session handling without manually assembling the auth architecture.

Quick Start

Use this skill to plan and implement Better Auth authentication for my application, including the correct framework integration, database adapter, auth pages, and required sign-in methods.

Frequently Asked Questions about create-auth-skill

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

FAQPage Schema
How do I set up Better Auth in a Next.js application?

Better Auth handles email and password sign-in, OAuth provider integration, and session management for TypeScript applications. This Skill guides the complete implementation, configuring database adapters and route handlers to establish secure authentication workflows.

Can I use Better Auth with frameworks other than Next.js?

Yes, Better Auth supports SvelteKit, Nuxt, Astro, Express, and Hono. This Skill detects your specific framework and automatically configures the correct database adapter, route handlers, and auth pages required for that stack.

What is the best way to add OAuth providers to a TypeScript app?

Adding OAuth providers through Better Auth involves configuring environment variables and database schema flows. This Skill implements OAuth integration alongside email and password sign-in, setting up verification and password reset workflows.

How do I migrate existing authentication to Better Auth?

Migrating to Better Auth requires configuring the correct database adapter and updating route handlers. This Skill provides migration guidance for existing apps, scaffolding the new authentication architecture while preserving your current database schema.

Do I need a specific database to use Better Auth?

Better Auth requires a database adapter to manage user sessions and data. This Skill configures the appropriate adapter for your project's storage layer, sets up the database schema flow, and manages the required environment variables.