Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Better Auth documentation embedded as a skill, covering the full Better Auth TypeScript authentication library. Includes OAuth providers, email/password, passkeys, 2FA, session management, database adapters, and framework integrations. Agents can answer implementation questions by reading from structured reference files.
Having the full Better Auth docs embedded means agents can answer implementation questions without fetching external docs or hallucinating API details.
When to use it
- Setting up Google or GitHub OAuth in a Next.js app
- Adding 2FA with TOTP to an existing TypeScript project
- Configuring Prisma or Drizzle as the auth database adapter
- Implementing passwordless login with magic links or passkeys
- Integrating session management and rate limiting in SvelteKit
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: How do I set up GitHub OAuth with Prisma in Next.js?
- 1Read references/authentication/github.mdx for OAuth configuration steps
- 2Read references/adapters/prisma.mdx for database adapter setup
- 3Read references/integrations/next-js.mdx for framework-specific wiring
- 4Combine the three guides into a unified implementation plan
Step-by-step code showing GitHub OAuth configured with a Prisma adapter and mounted in a Next.js route handler