create-auth-skill

Configure Better Auth authentication for TypeScript/JavaScript applications.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/devkit-stack/Claude --skill create-auth-skill-devkit-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-auth-skill
Source: https://github.com/devkit-stack/Claude/tree/main/.claude/skills/create-auth-skill
Command: npx skills add https://github.com/devkit-stack/Claude --skill create-auth-skill-devkit-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers add robust authentication to TypeScript/JavaScript applications using Better Auth, reducing manual wiring and security risks.

Core Features & Use Cases

  • Server-side authentication setup: Scaffold auth config, migrations, and provider hooks for TS/JS apps.
  • Client integration: Expose signIn, signUp, signOut, and session hooks for frameworks.
  • Migration & plugin support: Guidance for migrating existing projects and integrating plugins like SSO or 2FA.

Quick Start

Install the Better Auth package, configure environment variables, and generate server/client auth scaffolding for your framework, then run migrations to apply the auth schema.

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 application?

Adding authentication to a TypeScript or JavaScript application involves using Better Auth to scaffold server and client configurations. You install the package, configure environment variables, and run migrations to apply the auth schema.

Does Better Auth work with existing apps or only new projects?

Better Auth supports both new projects and existing TS/JS applications. It provides specific guidance for migrating existing apps, allowing you to integrate authentication without needing to start from scratch.

Can I set up OAuth and JWT in Next.js or Express using Better Auth?

Yes, you can set up OAuth and JWT in Next.js or Express using Better Auth. It scaffolds auth configurations, provider hooks, and session management across these TS/JS backend frameworks.

How do I add 2FA or SSO plugins to my authentication setup?

You can add 2FA or SSO plugins to your authentication setup through Better Auth's optional plugin support. This extends core authentication functionality with additional security and identity provider features.

What do I need to configure before running auth migrations in my app?

Before running auth migrations, you need to install the better-auth package and configure your environment variables. Once configured, you generate server and client auth scaffolding and run migrations to apply the schema.