create-auth-skill

Generate authentication layers for TypeScript/JavaScript apps using Better Auth.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding robust authentication and authorization layers to TypeScript and JavaScript applications, simplifying complex security setups.

Core Features & Use Cases

  • Framework Agnostic: Supports popular frameworks like Next.js, SvelteKit, Nuxt, and Express.
  • Multiple Auth Methods: Enables email/password, social OAuth, magic links, and passkeys.
  • Extensible Features: Integrates features like two-factor authentication, organizations, and password resets.
  • Use Case: Quickly add secure Google and GitHub sign-in to your new Next.js application with email verification and user organizations.

Quick Start

Use the create-auth-skill to add email and password authentication to a new Next.js 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 application?

To add authentication to a TypeScript application, you can use this Skill to generate secure auth layers using the Better Auth framework. It supports multiple web frameworks, databases, and methods like OAuth and passkeys.

Can I use Better Auth with Next.js, SvelteKit, and Express?

Yes, Better Auth works with Next.js, SvelteKit, Nuxt, and Express. This framework-agnostic approach lets you integrate secure email/password and OAuth authentication across various JavaScript web frameworks.

What's the best way to implement OAuth and passkeys in JavaScript?

The best way to implement OAuth and passkeys in JavaScript is using this Skill to generate the necessary authentication layers. It streamlines adding social OAuth, magic links, and passkeys to your application.

Does this authentication approach support two-factor authentication and organizations?

Yes, this authentication approach supports two-factor authentication and organizations. It facilitates secure user management, email verification, and feature extensions through plugins.

How do I set up email verification and password resets?

You can set up email verification and password resets by generating an authentication layer with this Skill. It simplifies adding robust authorization and secure user management features to your TypeScript or JavaScript app.