← Back to Skills Marketplace
leonaaardob

Batter Auth Complete Documentation

by leonaaardob · GitHub ↗ · v1.4.18
cross-platform ✓ Security Clean
1604
Downloads
1
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install lb-better-auth-skill
Description
Complete Better Auth documentation in markdown format. Use when implementing authentication in TypeScript projects - covers OAuth providers (Google, GitHub, etc.), email/password, passkeys, 2FA, session management, database adapters (Prisma, Drizzle), and framework integrations (Next.js, SvelteKit, etc.).
README (SKILL.md)

Better Auth Documentation

Complete Better Auth documentation embedded in markdown. Read from references/ to answer questions about authentication implementation, OAuth setup, database configuration, and framework integration.

Documentation Structure

All documentation is in references/ organized by topic:

Core Documentation

Getting Started

  • references/introduction.mdx - What is Better Auth
  • references/installation.mdx - Setup guide
  • references/basic-usage.mdx - Authentication basics
  • references/comparison.mdx - vs other auth libraries

Authentication Methods (references/authentication/)

OAuth providers and authentication strategies:

  • google.mdx - Google OAuth
  • github.mdx - GitHub OAuth
  • microsoft.mdx - Microsoft/Azure AD
  • apple.mdx - Apple Sign In
  • discord.mdx, facebook.mdx, twitter.mdx, etc.
  • email-password.mdx - Email & password auth
  • magic-link.mdx - Passwordless magic links
  • passkey.mdx - WebAuthn passkeys

Database Adapters (references/adapters/)

  • prisma.mdx - Prisma ORM
  • drizzle.mdx - Drizzle ORM
  • kysely.mdx - Kysely
  • mongodb.mdx - MongoDB
  • pg.mdx - node-postgres

Concepts (references/concepts/)

Core authentication concepts:

  • session.mdx - Session management
  • oauth.mdx - OAuth flow
  • database.mdx - Database schema
  • rate-limit.mdx - Rate limiting
  • middleware.mdx - Auth middleware
  • cookies.mdx - Cookie handling

Plugins (references/plugins/)

Extension features:

  • two-factor.mdx - 2FA/TOTP
  • passkey.mdx - WebAuthn/passkeys
  • email-verification.mdx - Email verification
  • magic-link.mdx - Magic link auth
  • organization.mdx - Organizations & teams
  • multi-session.mdx - Multiple sessions
  • anonymous.mdx - Anonymous users

Integrations (references/integrations/)

Framework-specific guides:

  • next-js.mdx - Next.js integration
  • sveltekit.mdx - SvelteKit
  • astro.mdx - Astro
  • solid-start.mdx - SolidStart

Examples (references/examples/)

Working examples:

  • next-js.mdx - Complete Next.js example
  • sveltekit.mdx - SvelteKit example

Guides (references/guides/)

How-to guides:

  • custom-session.mdx - Custom session handling
  • testing.mdx - Testing auth flows
  • deployment.mdx - Production deployment

API Reference (references/reference/)

Complete API documentation.

Quick Reference

Common Tasks

Task File to Read
Initial setup references/installation.mdx
Email & password auth references/authentication/email-password.mdx
Google OAuth references/authentication/google.mdx
GitHub OAuth references/authentication/github.mdx
Setup with Prisma references/adapters/prisma.mdx
Setup with Drizzle references/adapters/drizzle.mdx
Session management references/concepts/session.mdx
Add 2FA references/plugins/two-factor.mdx
Add passkeys references/plugins/passkey.mdx
Next.js integration references/integrations/next-js.mdx
Organizations/teams references/plugins/organization.mdx
Rate limiting references/concepts/rate-limit.mdx

When to Use This Skill

  • Implementing authentication in a TypeScript project
  • Setting up OAuth providers (Google, GitHub, Microsoft, etc.)
  • Configuring database adapters (Prisma, Drizzle, etc.)
  • Adding 2FA, passkeys, or magic links
  • Managing sessions and cookies
  • Integrating with Next.js, SvelteKit, or other frameworks
  • Questions about auth patterns and best practices

How to Navigate

  1. Start with references/introduction.mdx for overview
  2. For setup: Read references/installation.mdx
  3. For auth methods: Browse references/authentication/
  4. For database: Check references/adapters/
  5. For advanced features: See references/plugins/
  6. For framework integration: Use references/integrations/

All files are .mdx (Markdown + JSX) but readable as plain markdown.

Usage Guidance
This skill is a packaged copy of Better Auth documentation and is internally coherent. Before installing or using it, consider: 1) Source trust: the skill's source/homepage is unknown — if you need guarantees, prefer obtaining docs from the official project repo or website. 2) External commands/URLs in the docs: some examples call npx, CLI commands, or reference remote MCP/telemetry endpoints — do not run those commands or enable telemetry unless you trust the upstream project and understand the network interactions. 3) Telemetry: the docs describe an optional telemetry feature — ensure you do not enable telemetry or paste secrets when testing. If you require higher assurance, ask the publisher for the original upstream repository URL or a signed provenance record.
Capability Analysis
Type: OpenClaw Skill Name: lb-better-auth-skill Version: 1.4.18 The OpenClaw AgentSkills skill bundle 'lb-better-auth-skill' is documentation for an authentication library. All files (`_meta.json`, `SKILL.md`, `README.md`, and all files in `references/`) are either metadata or markdown documentation. The `SKILL.md` instructs the AI agent to 'Read from `references/` to answer questions', which is a benign instruction. While the documentation covers various security-related configurations and mentions potential 'security risks' or 'security warnings' for certain settings (e.g., `disableCSRFCheck`, `disableKeyHashing`), these are educational warnings for users implementing the library, not malicious actions within the skill itself. There is no evidence of intentional harmful behavior, data exfiltration, malicious execution, persistence, or prompt injection against the agent.
Capability Assessment
Purpose & Capability
The skill's name/description (Better Auth documentation) matches what is packaged: a large set of markdown/mdx reference files under references/. It does not request unrelated binaries, credentials, or config paths. (Minor nit: the top-level name includes the typo "Batter" but the SKILL.md and files are clearly for "better-auth".)
Instruction Scope
SKILL.md explicitly instructs the agent to read files under references/ and answer questions about authentication implementation. It does not instruct the agent to read other system files, access environment variables, or transmit data externally. The documentation does include examples that reference running npx/CLI commands and external URLs (e.g., GitHub, better-auth.com, an MCP URL), but those are parts of the docs and not instructions for the agent to exfiltrate data. Be aware that following those example commands as a user will perform network actions.
Install Mechanism
No install spec and no code files to execute — this is instruction-only, which is the lowest-risk install posture. Nothing is downloaded or written by the skill itself.
Credentials
The skill declares no required environment variables, no primary credential, and no config paths. The documented examples mention typical env vars used by Better Auth (e.g., GITHUB_CLIENT_ID) but those are part of the referenced documentation and not required by the skill itself.
Persistence & Privilege
The skill is not force-included (always:false) and does not request persistent privileges. Autonomous invocation (disable-model-invocation:false) is platform default and acceptable here; combined with the other factors there is no elevated privilege concern.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install lb-better-auth-skill
  3. After installation, invoke the skill by name or use /lb-better-auth-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.4.18
- Initial release of the better-auth skill, providing comprehensive Better Auth documentation in markdown format. - Covers installation, authentication methods (OAuth, email/password, passkeys, magic links, 2FA), session management, database adapters (Prisma, Drizzle, etc.), and framework integrations (Next.js, SvelteKit, etc.). - Includes quick-reference tables and clear navigation for common authentication and integration tasks. - Documentation is organized by topic (introduction, authentication, adapters, concepts, plugins, integrations, examples, guides, and reference).
Metadata
Slug lb-better-auth-skill
Version 1.4.18
License
All-time Installs 3
Active Installs 3
Total Versions 1
Frequently Asked Questions

What is Batter Auth Complete Documentation?

Complete Better Auth documentation in markdown format. Use when implementing authentication in TypeScript projects - covers OAuth providers (Google, GitHub, etc.), email/password, passkeys, 2FA, session management, database adapters (Prisma, Drizzle), and framework integrations (Next.js, SvelteKit, etc.). It is an AI Agent Skill for Claude Code / OpenClaw, with 1604 downloads so far.

How do I install Batter Auth Complete Documentation?

Run "/install lb-better-auth-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Batter Auth Complete Documentation free?

Yes, Batter Auth Complete Documentation is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Batter Auth Complete Documentation support?

Batter Auth Complete Documentation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Batter Auth Complete Documentation?

It is built and maintained by leonaaardob (@leonaaardob); the current version is v1.4.18.

💬 Comments