create-auth-skill

Automate Better Auth setup in TypeScript/JavaScript projects by detecting frameworks and configuring handlers.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/dotlab-hq/storage-platform --skill create-auth-skill-dotlab-hq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-auth-skill
Source: https://github.com/dotlab-hq/storage-platform/tree/main/.agents/skills/create-auth-skill
Command: npx skills add https://github.com/dotlab-hq/storage-platform --skill create-auth-skill-dotlab-hq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams scaffold robust authentication in TypeScript/JavaScript apps using Better Auth, accelerating secure login, signup, and session management without boilerplate.

Core Features & Use Cases

  • Auto-detect framework ecosystems (Next.js, Hono, Express, etc.) and generate compatible auth handlers.
  • Wire up database adapters, email/password, OAuth providers, and route protection with minimal setup.
  • Create end-to-end auth UI pages and server routes, including optional plugins (2FA, admin dashboard, and organizations).

Quick Start

Initialize a new project and generate a complete auth setup by following the planning and implementation steps.

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 TypeScript project?

To set up Better Auth in a TypeScript project, this skill automates the configuration by scanning your framework, detecting existing auth patterns, and generating compatible route handlers, database adapters, and UI pages.

Does Better Auth work with Next.js and Express frameworks?

Yes, Better Auth works with Next.js, Express, Hono, and other JavaScript frameworks. The skill auto-detects your project's ecosystem and generates compatible authentication handlers and server routes accordingly.

Can I add OAuth providers and 2FA to my JavaScript authentication setup?

You can add OAuth providers and 2FA to your JavaScript authentication setup. The skill configures these features during the planning phase, wiring up adapters and optional plugins like 2FA and admin interfaces.

What is the best way to scaffold authentication without boilerplate in JavaScript?

Scaffolding authentication without boilerplate is achieved by using Better Auth. This skill accelerates secure login, signup, and session management by automatically generating end-to-end auth UI pages and server routes.

How does Better Auth handle database migrations and route protection?

Better Auth handles database migrations and route protection by validating inputs, preparing migrations, and wiring up database adapters. The skill guides you through these implementation steps to secure your application.

Do I need an existing database to configure authentication with Better Auth?

You need a database for Better Auth to configure authentication, as the skill wires up database adapters. It scans your project to detect the database and existing auth patterns before preparing the necessary migrations.