Better Auth Best Practices
latitude-dev/latitude-llm
Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables.
How auth works in agent-native apps. An agent skill from BuilderIO/agent-native.
$ npx skills add BuilderIO/agent-native --skill authentication -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install BuilderIO/agent-native authentication --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/BuilderIO/agent-native.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/authentication .claude/skills/authentication && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "authentication" agent skill from https://github.com/BuilderIO/agent-native/tree/main/.agents/skills/authentication into .claude/skills/authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authentication", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/BuilderIO/agent-native/tree/main/.agents/skills/authenticationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add BuilderIO/agent-native --skill authentication -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install BuilderIO/agent-native authentication --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BuilderIO/agent-native.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/authentication .agents/skills/authentication && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "authentication" agent skill from https://github.com/BuilderIO/agent-native/tree/main/.agents/skills/authentication into .agents/skills/authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authentication", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BuilderIO/agent-native --skill authentication -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install BuilderIO/agent-native authentication --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BuilderIO/agent-native.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/authentication .cursor/skills/authentication && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "authentication" agent skill from https://github.com/BuilderIO/agent-native/tree/main/.agents/skills/authentication into .cursor/skills/authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authentication", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/BuilderIO/agent-native.git --path .agents/skills/authentication--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add BuilderIO/agent-native --skill authentication -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install BuilderIO/agent-native authentication --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BuilderIO/agent-native.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/authentication .gemini/skills/authentication && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "authentication" agent skill from https://github.com/BuilderIO/agent-native/tree/main/.agents/skills/authentication into .gemini/skills/authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authentication", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install BuilderIO/agent-native authenticationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add BuilderIO/agent-native --skill authentication -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/BuilderIO/agent-native.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/authentication .github/skills/authentication && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "authentication" agent skill from https://github.com/BuilderIO/agent-native/tree/main/.agents/skills/authentication into .github/skills/authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authentication", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BuilderIO/agent-native --skill authentication -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install BuilderIO/agent-native authentication --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BuilderIO/agent-native.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/authentication .opencode/skills/authentication && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "authentication" agent skill from https://github.com/BuilderIO/agent-native/tree/main/.agents/skills/authentication into .opencode/skills/authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authentication", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
authenticationHow auth works in agent-native apps. An agent skill from BuilderIO/agent-native.
Authentication is an agent skill from BuilderIO/agent-native. How auth works in agent-native apps. Use when wiring login/signup, configuring auth modes, setting up organizations, protecting routes, or debugging session issues.
Its SKILL.md is about 6.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Authentication. It works with Better Auth. The repository describes itself as: A framework for building agentic apps.
Read from SKILL.md and the folder at commit e16da0c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pnpmnpxFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
dispatch.agent-native.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
A2A_SECRETACCESS_TOKENAGENT_NATIVE_IDENTITY_FEDERATION_SECRETFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Authentication loads about 6.8k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 3,427 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
d persist shared browser credentials in `.env`. Agents then use the built-in `get-browser-connection` tool to provisionAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Without a licence we can't republish the file, so here is its outline and opening line. It has 3,427 words (~6,813 tokens).
“Auth is powered by Better Auth with account-first design. Every new user creates an account on first visit. Use getSession(event) to authenticate custom routes; actions are auto-protected. Normal app HTML and React Router page-data responses are one impersonal, public-cacheable shell…”
Just SKILL.md in .agents/skills/authentication of BuilderIO/agent-native.
Open the folder on GitHubat commit e16da0c
Authentication next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Authentication this skillBuilderIO/agent-native | 7.1k | — | ~6.8k | Automated safety check: Notes | None | |
| Better Auth Best Practiceslatitude-dev/latitude-llm | 4.7k | 7 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Neon Authneondatabase/agent-skills | 100 | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| Email And Password Best Practicesever-works/ever-works | 158 | 3 repos | ~1.5k | Automated safety check: Pass | AGPL-3.0 | |
| Two Factor Authentication Best Practicesever-works/ever-works | 158 | 2 repos | ~1.8k | Automated safety check: Pass | AGPL-3.0 | |
| Workosusenotra/notra | 256 | — | ~6.2k | Automated safety check: Pass | AGPL-3.0 |
latitude-dev/latitude-llm
Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables.
neondatabase/agent-skills
Add authentication to a new app. An agent skill from neondatabase/agent-skills.
ever-works/ever-works
Configure email verification, implement password reset flows, set password policies, and customise hashing algorithms for Better Auth email/password authentication.
ever-works/ever-works
Configure TOTP authenticator apps, send OTP codes via email/SMS, manage backup codes, handle trusted devices, and implement 2FA sign-in flows using Better Auth's twoFactor plugin.
usenotra/notra
A skill your agent uses when the user asks for a WorkOS docs URL, term, or dashboard field (Sign-in endpoint, initiateloginuri, Redirect URI, WORKOS env vars), or is implementing, debugging, or…
anolilab/lunora
Adds authentication to a Lunora app with the auth registry item (better-auth via @lunora/auth, users and sessions in D1).
BuilderIO/agent-native
How to create and run agent actions. An agent skill from BuilderIO/agent-native.
BuilderIO/agent-native
Client method surface rules. An agent skill from BuilderIO/agent-native.
BuilderIO/agent-native
The four-area checklist every new feature must complete. An agent skill from BuilderIO/agent-native.
BuilderIO/agent-native
Triage feedback from docs, issues, Slack threads, or pasted notes into verified bugs, UX proposals, unclear questions, and skipped noise.
BuilderIO/agent-native
Durable, access-scoped, append-only record of who changed what app data, when, and whether it was the agent or a human.
BuilderIO/agent-native
Event-triggered and schedule-triggered automations with natural-language conditions.
Works with
Categories
How auth works in agent-native apps. An agent skill from BuilderIO/agent-native. Authentication is an agent skill from BuilderIO/agent-native. How auth works in agent-native apps.
Authentication fits situations like: wiring login/signup; configuring auth modes; setting up organizations; protecting routes.
Run `npx skills add BuilderIO/agent-native --skill authentication -a claude-code`. Or copy the skill folder (.agents/skills/authentication in BuilderIO/agent-native) into .claude/skills/authentication in your project. Claude Code loads it when a task matches its description.
Run `npx skills add BuilderIO/agent-native --skill authentication -a codex`. Or copy the skill folder (.agents/skills/authentication in BuilderIO/agent-native) into .agents/skills/authentication in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add BuilderIO/agent-native --skill authentication -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/authentication, .gemini/skills/authentication, .github/skills/authentication and .opencode/skills/authentication in your project.
Going by SKILL.md and its folder, Authentication needs the command-line tools its instructions call (pnpm and npx) and credentials named A2A_SECRET, ACCESS_TOKEN and AGENT_NATIVE_IDENTITY_FEDERATION_SECRET. Our summary lists: Node.js; A credential in ACCESS_TOKEN.
SKILL.md names 1 domain. In commands or code: dispatch.agent-native.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
No licence was found for Authentication or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.
About 6.8k tokens (SKILL.md is roughly 27k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Authentication: Better Auth Best Practices (latitude-dev/latitude-llm, 4.7k stars), Neon Auth (neondatabase/agent-skills, 100 stars), Email And Password Best Practices (ever-works/ever-works, 158 stars) and Two Factor Authentication Best Practices (ever-works/ever-works, 158 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
BuilderIO (a GitHub organization) maintains it in BuilderIO/agent-native, which has 7,087 GitHub stars. The repository holds 102 skills in this directory. The repository was last updated on October 8, 2026.
Source: BuilderIO/agent-native on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.