Agent skill · Better Auth
Better Auth Best Practices skill for Claude Code, Codex and Cursor
Officialname: better-auth-best-practices★ 225 (repo)pushed 2026-10-19SKILL.md on GitHubchecked 2026-11-07
What it does, in the publisher's words
Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables. Use when users mention Better Auth, betterauth, auth.ts, or need to set up TypeScript authentication with email/password, OAuth, or plugin configuration.
The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.
Install Better Auth Best Practices
The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs
npx skills add better-auth/skills --skill better-auth-best-practices
This repo is a plugin marketplace. Inside Claude Code, add it and install the plugin that holds the skill (auth-skills), or copy only this skill into ~/.claude/skills. docs
/plugin marketplace add better-auth/skills /plugin install <plugin>@better-auth-agent-skills # or only this skill: npx skills add better-auth/skills --skill better-auth-best-practices -a claude-code
Download the skill folder, zip it, then Customize > Skills > + > Create skill > Upload a skill. Code execution must be on (Settings > Capabilities). docs
git clone --depth 1 https://github.com/better-auth/skills.git /tmp/best-practices-src cp -r /tmp/best-practices-src/better-auth/best-practices ./better-auth-best-practices zip -r better-auth-best-practices.zip better-auth-best-practices
Codex reads skills from .agents/skills in the repo or ~/.agents/skills. Type $ in Codex to use one. docs
npx skills add better-auth/skills --skill better-auth-best-practices -a codex
gh skill (GitHub CLI 2.90+, preview) installs it for Copilot in VS Code, the CLI and the cloud agent. Copilot also reads .github/skills and ~/.copilot/skills. docs
gh skill install better-auth/skills better-auth-best-practices
Cursor reads .cursor/skills, .agents/skills and ~/.cursor/skills (and .claude/skills). It does not install loose skills from a GitHub URL, so copy it in. docs
npx skills add better-auth/skills --skill better-auth-best-practices -a cursor
Installs from the GitHub repo; --path picks this skill out of the repo. Default scope is user (all projects). docs
gemini skills install https://github.com/better-auth/skills.git --path better-auth/best-practices
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add better-auth/skills --skill better-auth-best-practices -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add better-auth/skills --skill better-auth-best-practices -a windsurf
Works with
Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.
What's in the SKILL.md
- Documentation Version
- Setup Workflow
- Quick Reference
- Environment Variables
- File Location
- CLI Commands
- Core Config Options
- Database
- Session Management
- User & Account Config
- Email Flows
- Security
- Hooks
- Plugins
- Client
- Type Safety
- Common Gotchas
- Resources
Facts
- Skill name
- better-auth-best-practices
- Publisher
- Better Auth (official)
- Repo
- better-auth/skills
- SKILL.md size
- 952 words, 188 lines
- Repo stars
- 225 (as of 2026-10-24)
- SKILL.md checked
- 2026-11-07
More skills from better-auth/skills
- Create Auth (Better Auth): Scaffolds sign-in for a TypeScript app with Better Auth, OAuth providers and auth pages.
Related security & auth skills
- Security Best Practices Review · OpenAI
- Security Threat Model · OpenAI
- Sign In With Google (Web) · Google
- Agentic Actions Auditor · Trail of Bits
- CodeQL Scan · Trail of Bits
- Constant-Time Analysis · Trail of Bits
- Differential Security Review · Trail of Bits
- Semgrep Rule Creator · Trail of Bits
FAQ
What does the better-auth-best-practices skill do?+
Configures Better Auth server and client, database adapters, sessions and plugins. In its own SKILL.md, Better Auth describes it as: "Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables. Use when users mention Better Auth, betterauth, auth.ts, or need to set up TypeScript authentication with email/password, OAuth, or plugin configuration."
How do I install the better-auth-best-practices skill?+
Run npx skills add better-auth/skills --skill better-auth-best-practices and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/better-auth-best-practices/SKILL.md; in Codex and Cursor in .agents/skills/better-auth-best-practices/.
Does Better Auth Best Practices work in Codex, Cursor and Copilot, or only Claude?+
It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.
Who maintains Better Auth Best Practices?+
Better Auth, the company or project behind it, in the better-auth/skills repo on GitHub, last pushed 2026-10-19.
Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers