SWSkillsWay.ai
View Repo ↗
Skillset · / better-auth / skills

better-authbetter-auth/skills

PurposeA collection of Agent Skills for implementing and securing authentication in TS/JS apps using Better Auth. Covers scaffolding auth, core config, security hardening, email/password, 2FA, and organizations. Each skill auto-loads by context (e.g. mentions of Better Auth, auth.ts, MFA). Modular and model-agnostic, suited for agents assisting with login, signup, OAuth, and access control.
Skill Count
6
Required CLI
@better-auth/cliopenssl
Domains
BusinessCoding
Forms
Style GuideWorkflow
Skillset Analysis

Core Idea

Principles & Methodology

The author's design philosophy, what sets this apart from peer projects, and quick notes on the key workflows. Skill names mentioned in the text auto-link to their detail pages.

Core Idea

This skillset provides a modular, task-focused collection of Agent Skills for implementing and securing authentication with Better Auth in TypeScript/JavaScript projects.

Design Principles

  • Focused: Each skill handles one auth domain (scaffolding, security, 2FA, email/password, orgs).
  • Composable: Use individually or together based on need.
  • Model-agnostic: Works with any agent.

Key Skills

  • create-auth: scaffold auth in new/existing apps
  • better-auth-best-practices: core server/client config
  • better-auth-security-best-practices: harden deployments
  • Domain skills: email-and-password-best-practices, two-factor-authentication-best-practices, organization-best-practices

Workflow

Agent auto-loads the relevant skill when user mentions Better Auth topics; user can invoke create-auth to start a project.

SkillsWay.ai · Heads-Up Agent Skills InspectorUnderstand Agent Skills before you install.

Skill Relationships

Usage Relationships Between Skills

Skill → Skill usage relationships, with cross-layer references. Same color blocks indicate the same skill form.

Relationship Count
1
Standalone Skills
4
Most Referencing
  • better-auth-best-practices1 downstream skills
Most Referenced
  • create-auth1 upstream skills

Note: Each dependency line reads as "the current Skill depends on" the Skill it points to.

Skill Composition

How skills in this set are triggered

Each skill is designed for a specific kind of caller — some only fire when you name them, others load automatically when the model judges them relevant. The split below summarises both modes at a glance.

User-Invoked1

These skills only fire when you call them by name. The agent will not load them on its own — they stay inert until invoked.

create-auth
Model-Invoked6

These skills are loaded automatically by the agent when it judges the context relevant. You usually don't need to call them yourself.

better-auth-best-practicesbetter-auth-security-best-practicescreate-authemail-and-password-best-practicesorganization-best-practicestwo-factor-authentication-best-practices

Skill List

6 Skills · Filter by name or domain

better-auth-best-practices

Guides setup of Better Auth server/client, DB adapters, sessions, plugins, and env vars. Uses CLI migrate/generate and docs reference. Delivers a secure, working TypeScript auth integration with email/password or OAuth.

→
Domain
Coding
Form
Workflow
Location
better-auth/best-practices/SKILL.md

better-auth-security-best-practices

Provides security best practices for Better Auth: secret management, rate limiting, CSRF, trusted origins, session/cookie security, OAuth token encryption, IP tracking, and audit logging. Delivers hardened auth configs and a production checklist to prevent attacks and protect user data.

→
Domain
CodingBusiness
Form
Style GuideWorkflow
Location
security/SKILL.md

create-auth

Scaffolds and implements authentication in TS/JS apps using Better Auth. Detects frameworks, configures DB adapters, route handlers, OAuth, and auth UI. Outputs a planned, step-by-step integrated auth setup, accelerating secure login/sign-up delivery.

→
Domain
Coding
Form
Workflow
Location
better-auth/create-auth/SKILL.md

email-and-password-best-practices

Configures Better Auth email/password auth: verification, reset flows, policies, hashing. Provides TS code and CLI migrate. Delivers secure, validated credential login.

→
Domain
Coding
Form
Style Guide
Location
better-auth/emailAndPassword/SKILL.md

organization-best-practices

Configures multi-tenant orgs, members, invitations, teams and RBAC via Better Auth organization plugin. Provides setup steps, code samples, limits and security tips. Value: fast, secure org/access-control implementation.

→
Domain
Coding
Form
Style GuideWorkflow
Location
better-auth/organization/SKILL.md

two-factor-authentication-best-practices

Configures TOTP authenticator apps, email/SMS OTP, backup codes, trusted devices, and 2FA sign-in flows using Better Auth's twoFactor plugin. Provides setup steps, code snippets, and security configs. Delivers hardened MFA for TypeScript apps with secure session and recovery.

→
Domain
Coding
Form
Style GuideWorkflow
Location
better-auth/twoFactor/SKILL.md

Showing 6 / 6

Installation

One command to install the entire Skillset.

Copy and run in your terminal to add better-auth/skills to your Agent environment.

$npx skills add better-auth/skills