create-auth-skill

Configure Better Auth for TypeScript and JavaScript applications.

4|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/allthingslinux/portal --skill create-auth-skill-allthingslinux
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-auth-skill
Source: https://github.com/allthingslinux/portal/tree/main/.cursor/skills/create-auth-skill
Command: npx skills add https://github.com/allthingslinux/portal --skill create-auth-skill-allthingslinux

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a practical blueprint for adding robust authentication to TypeScript/JavaScript applications using Better Auth, reducing boilerplate and security risk.

Core Features & Use Cases

  • Core setup: Install better-auth, configure server (auth.ts) and client (auth-client.ts).
  • Framework coverage: Next.js App Router, Express, SvelteKit, Vue, and vanilla JS apps.
  • Migration & extension: Supports migrating existing projects and extending auth with plugins (2FA, SSO, etc.).

Quick Start

Install Better Auth in your project, create the core auth files (auth.ts, auth-client.ts), and wire a route handler for your framework.

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, install Better Auth, configure the server in auth.ts and client in auth-client.ts, then wire route handlers to connect the layers.

Does Better Auth work with frameworks like Next.js, Express, and SvelteKit?▼

Yes, Better Auth works with Next.js App Router, Express, SvelteKit, Vue, and vanilla JS apps by providing specific route handling wiring for multi-framework integration.

Can I migrate an existing JavaScript project to Better Auth?▼

Yes, you can migrate existing JavaScript projects to Better Auth by installing the package and adapting your current route handlers to the new auth.ts and auth-client.ts configuration.

How do I set up 2FA and SSO in Better Auth?▼

To set up 2FA and SSO in Better Auth, configure your base auth.ts and auth-client.ts files, then install and wire the specific authentication plugins into your route handlers.

What is the best way to reduce boilerplate when adding OAuth to a JavaScript app?▼

The best way to reduce OAuth boilerplate in JavaScript apps is using Better Auth, which provides a pre-configured blueprint for server and client integration along with multi-framework route handling.

Do I need to configure route handlers separately for Better Auth?▼

Yes, you need to configure route handlers separately for Better Auth to wire the server and client authentication layers together across your chosen framework.