create-auth-skill

Add Better Auth authentication to TypeScript/JavaScript applications.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/nickstrad/nick-stack-1 --skill create-auth-skill-nickstrad
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-auth-skill
Source: https://github.com/nickstrad/nick-stack-1/tree/main/.agents/skills/create-auth-skill
Command: npx skills add https://github.com/nickstrad/nick-stack-1 --skill create-auth-skill-nickstrad

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers in integrating authentication into TypeScript/JavaScript applications using the Better Auth library, reducing boilerplate and ensuring a secure, scalable setup.

Core Features & Use Cases

  • Guided setup: Quick establishment of authentication flows (email/password and optional social providers) with a solid base configuration.
  • Route and client integration: Instructions for wiring auth into API routes and frontend clients, plus session handling and user management.
  • Migration & plugin support: Steps to migrate existing apps or extend with plugins for enhanced capabilities (2FA, SSO, etc.).

Quick Start

  • Install the core package: npm install better-auth
  • Create a minimal auth configuration in your project (e.g., lib/auth.ts) enabling email/password
  • Wire up a route handler (Next.js App Router, Express, or your preferred framework) to expose authentication endpoints
  • Run migrations or generate schemas as needed per your chosen database/provider

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 or JavaScript app?

This Skill guides you through adding authentication to TypeScript or JavaScript apps using Better Auth, handling framework detection, config creation, route setup, and migrations.

Can I use Better Auth with my existing Next.js or Express project?

Yes, Better Auth works with existing Next.js or Express projects. The Skill detects your framework and provides specific instructions for wiring API routes and frontend clients without requiring a full rebuild.

How do I set up social login and 2FA in Better Auth?

To set up social login and 2FA in Better Auth, the Skill helps you extend your base configuration with plugins, enabling enhanced capabilities like social providers, SSO, and two-factor authentication.

Do I need to run database migrations when integrating Better Auth?

Yes, you need to run database migrations or generate schemas when integrating Better Auth. The Skill provides steps to generate required schemas based on your chosen database provider.

What is needed to configure authentication in a standard TypeScript project?

Configuring authentication in a standard TypeScript project requires the Better Auth core package, a minimal auth configuration file like lib/auth.ts, and proper environment variables for your database and providers.

Related Skills