Agent skill · Better Auth
Create Auth (Better Auth) skill for Claude Code, Codex and Cursor
Officialname: create-auth★ 225 (repo)pushed 2026-10-19SKILL.md on GitHubchecked 2026-11-07
What it does, in the publisher's words
Scaffold and implement authentication in TypeScript/JavaScript apps using Better Auth. Detect frameworks, configure database adapters, set up route handlers, add OAuth providers, and create auth UI pages. Use when users want to add login, sign-up, or authentication to a new or existing project with Better Auth.
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 Create Auth (Better Auth)
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 create-auth
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 create-auth -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/create-auth-src cp -r /tmp/create-auth-src/better-auth/create-auth ./create-auth zip -r create-auth.zip create-auth
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 create-auth -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 create-auth
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 create-auth -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/create-auth
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add better-auth/skills --skill create-auth -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add better-auth/skills --skill create-auth -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
- Phase 1: Planning (REQUIRED before implementation)
- Step 1: Scan the project
- Step 2: Ask planning questions
- Step 3: Summarize the plan
- Phase 2: Implementation
- Installation
- Environment Variables
- Server Config (auth.ts)
- Client Config (auth-client.ts)
- Route Handler Setup
- Database Migrations
- Database Adapters
- Drizzle + PostgreSQL Setup
- Drizzle Config (drizzle.config.ts)
- Common Plugins
- Auth UI Implementation
- Security Checklist
- Troubleshooting
- Resources
Facts
- Skill name
- create-auth
- Publisher
- Better Auth (official)
- Repo
- better-auth/skills
- SKILL.md size
- 1,503 words, 386 lines
- Repo stars
- 225 (as of 2026-10-24)
- SKILL.md checked
- 2026-11-07
More skills from better-auth/skills
- Better Auth Best Practices: Configures Better Auth server and client, database adapters, sessions and plugins.
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 create-auth skill do?+
Scaffolds sign-in for a TypeScript app with Better Auth, OAuth providers and auth pages. In its own SKILL.md, Better Auth describes it as: "Scaffold and implement authentication in TypeScript/JavaScript apps using Better Auth. Detect frameworks, configure database adapters, set up route handlers, add OAuth providers, and create auth UI pages."
How do I install the create-auth skill?+
Run npx skills add better-auth/skills --skill create-auth and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/create-auth/SKILL.md; in Codex and Cursor in .agents/skills/create-auth/.
Does Create Auth (Better Auth) 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 Create Auth (Better Auth)?+
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