Skill: Better Auth: Two-Factor Auth
by Better Auth
Adds real 2FA to a Better Auth app — TOTP, email/SMS OTP, backup codes, trusted devices — including the sign-in interrupt and the encryption-at-rest details.
Turns a single-user app multi-tenant with Better Auth's organization plugin: orgs, members, invitations, teams, roles and dynamic access control.
Adding organizations is the point at which a side project becomes a product that companies can buy, and it is a much larger change than the plugin line suggests — every query gains a tenant, every permission gains a scope. This official Better Auth skill covers that plugin end to end.
Setup is the short part: add organization() server-side and organizationClient() client-side, migrate, and confirm the organization, member and invitation tables exist. The skill then works through creating organizations (including on a user's behalf, and gating who may create them at all), the active-organization concept that scopes subsequent calls, and membership — adding and removing members server-side, assigning multiple roles to one member, changing roles, and enforcing organization and membership limits.
Invitations get their own treatment: wiring the invitation email, sending and accepting, shareable invitation URLs, and the configuration around expiry and reuse, with a dedicated note on invitation security. Roles and permissions cover the built-in checks; Teams adds a second level of grouping inside an organization with its own membership and limits; and Dynamic Access Control lets custom roles be defined at runtime rather than baked into the config, which is what enterprise buyers usually ask for.
The last third is the part that is easy to skip and expensive to skip. Lifecycle hooks let you react to organization and membership events. Schema customization covers renaming tables and adding your own columns. Security considerations spell out owner protection — you cannot leave an organization ownerless — the cascade behaviour of organization deletion, and how invitations can be abused. It closes with a complete configuration example putting all of it together.
Published by the Better Auth team in their official skills repository, in the portable Agent Skills format.
The instructions your agent loads, as published by Better Auth.
by Better Auth
Adds real 2FA to a Better Auth app — TOTP, email/SMS OTP, backup codes, trusted devices — including the sign-in interrupt and the encryption-at-rest details.
by Better Auth
Credential auth done to spec in Better Auth: verification email, reset flow, token and session handling, password policy and custom hashing.
by Better Auth
The reference an agent needs to configure Better Auth correctly: adapters, session strategy, hooks, plugins, type safety and the gotchas that bite in production.
Auth0's official agent skill: a router that detects your framework and intent, then loads the right Auth0 guidance for login, MFA, Organizations, tenant audits, debugging or provider migration.