create-auth-skill

Configure Better Auth server and client authentication in TypeScript or JavaScript applications.

206|30|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/better-auth/skills --skill create-auth-skill-better-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-auth-skill
Source: https://github.com/better-auth/skills/tree/main/better-auth/create-auth
Command: npx skills add https://github.com/better-auth/skills --skill create-auth-skill-better-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers in adding authentication to TypeScript and JavaScript applications using Better Auth, covering setup, configuration, and secure integration.

Core Features & Use Cases

  • Provides a guided workflow to scaffold server and client auth, configure providers, and wire route handlers.
  • Supports plugin architecture, migrations, and multiple database adapters for a complete authentication layer in modern apps.
  • Use cases include securing admin dashboards, protected APIs, and user sign-in flows across web apps.

Quick Start

Follow the installation and configuration steps to scaffold a new Better Auth authentication module for your project.

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 TypeScript app using Better Auth?

To add authentication to a TypeScript app using Better Auth, this skill guides you through scaffolding server and client auth modules, configuring providers, and wiring route handlers. It streamlines setup for new or existing projects requiring secure integrated auth.

Can I use Better Auth plugins and multiple database adapters in my JavaScript project?

Yes, you can use Better Auth plugins and multiple database adapters in your JavaScript project. This skill provides a guided workflow supporting plugin architecture and database adapter configuration to build a complete authentication layer.

What is the best way to secure admin dashboards and protected APIs in modern web apps?

The best way to secure admin dashboards and protected APIs is by integrating a robust authentication layer. This skill scaffolds configurable server and client auth with route handler integration to protect your application endpoints effectively.

Does this authentication setup support migration paths for existing projects?

Yes, this authentication setup supports migration paths for existing projects. It applies to both new and existing TypeScript/JavaScript applications, guiding you through database migrations and plugin integration without requiring a full rewrite.

How do I configure route handlers for user sign-in flows?

To configure route handlers for user sign-in flows, this skill wires your server and client auth configurations directly to your application routes. It ensures secure API endpoint protection and functional sign-in flows across your web app.