better-auth-security-best-practices
Hardens a Better Auth setup with rate limiting, CSRF protection, secure cookies and audit logging.
- Pinned commit
- 20c9e88a5c00Committed 2026-09-01
- Files
- 110 KB
- License
- None declared
- Snapshot taken
- 2026-11-28
Description from the skill
Configure rate limiting, manage auth secrets, set up CSRF protection, define trusted origins, secure sessions and cookies, encrypt OAuth tokens, track IP addresses, and implement audit logging for Better Auth. Use when users need to secure their auth setup, prevent brute force attacks, or harden a Better Auth deployment.This is the text your agent reads to decide when to use the skill.
Install
Choose your agent. Pinned commands install exactly the commit this page describes.
Skill directory .claude/skills/Claude Code · Official docs
Does not read the shared .agents/skills directory. A skill must land in .claude/skills, or arrive inside a plugin.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent claude-code --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a claude-code --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .claude/skills
$ cp -R "$tmp/security" .claude/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .claude/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .claude/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.claude/skills/Claude Code · Official docs
Does not read the shared .agents/skills directory. A skill must land in .claude/skills, or arrive inside a plugin.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent claude-code --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a claude-code --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.claude/skills
$ cp -R "$tmp/security" ~/.claude/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.claude/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.claude/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .agents/skills/Codex · Official docs
Uses .agents/skills as its primary directory, from the working directory up to the repository root.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent codex --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a codex --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .agents/skills
$ cp -R "$tmp/security" .agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.agents/skills/Codex · Official docs
Uses .agents/skills as its primary directory, from the working directory up to the repository root.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent codex --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a codex --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.agents/skills
$ cp -R "$tmp/security" ~/.agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .agents/skills/Cursor · Official docs
No per-skill install command. Reads several directories, including .claude/skills for compatibility.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent cursor --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a cursor --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .agents/skills
$ cp -R "$tmp/security" .agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.cursor/skills/Cursor · Official docs
No per-skill install command. Reads several directories, including .claude/skills for compatibility.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent cursor --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a cursor --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.cursor/skills
$ cp -R "$tmp/security" ~/.cursor/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.cursor/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.cursor/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .agents/skills/GitHub Copilot · Official docs
Which directories are read differs between VS Code, the CLI and the cloud coding agent. Check the surface you use.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent github-copilot --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a github-copilot --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .agents/skills
$ cp -R "$tmp/security" .agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.copilot/skills/GitHub Copilot · Official docs
Which directories are read differs between VS Code, the CLI and the cloud coding agent. Check the surface you use.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent github-copilot --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a github-copilot --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.copilot/skills
$ cp -R "$tmp/security" ~/.copilot/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.copilot/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.copilot/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .agents/skills/Gemini CLI · Official docs
Has its own install command, but it takes no commit pin. Unpaid and Google One users were moved to Antigravity CLI on 2026-06-18.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent gemini-cli --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a gemini-cli --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Gemini CLInot pinned
$ gemini skills install https://github.com/better-auth/skills.git --path security --scope workspaceNot pinned: installs the default branch as it is when you run it.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .agents/skills
$ cp -R "$tmp/security" .agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.gemini/skills/Gemini CLI · Official docs
Has its own install command, but it takes no commit pin. Unpaid and Google One users were moved to Antigravity CLI on 2026-06-18.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent gemini-cli --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a gemini-cli --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Gemini CLInot pinned
$ gemini skills install https://github.com/better-auth/skills.git --path security --scope userNot pinned: installs the default branch as it is when you run it.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.gemini/skills
$ cp -R "$tmp/security" ~/.gemini/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.gemini/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.gemini/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .agents/skills/Antigravity · Official docs
Project skills live in .agents/skills. The CLI and the IDE each have further user-level paths.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent antigravity --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a antigravity --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .agents/skills
$ cp -R "$tmp/security" .agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.gemini/config/skills/Antigravity · Official docs
Project skills live in .agents/skills. The CLI and the IDE each have further user-level paths.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent antigravity --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a antigravity --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.gemini/config/skills
$ cp -R "$tmp/security" ~/.gemini/config/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.gemini/config/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.gemini/config/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .devin/skills/Devin Local (formerly Windsurf) · Official docs
The docs now name .devin/skills as primary and keep .windsurf/skills as legacy. Installer CLIs may still write to the legacy path.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent windsurf --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a windsurf --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .devin/skills
$ cp -R "$tmp/security" .devin/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .devin/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .devin/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.config/devin/skills/Devin Local (formerly Windsurf) · Official docs
The docs now name .devin/skills as primary and keep .windsurf/skills as legacy. Installer CLIs may still write to the legacy path.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent windsurf --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a windsurf --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.config/devin/skills
$ cp -R "$tmp/security" ~/.config/devin/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.config/devin/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.config/devin/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .cline/skills/Cline · Official docs
Cline's own docs do not list .agents/skills, while the gh and skills CLIs install there for Cline. Copying into .cline/skills follows the official docs.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent cline --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a cline --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .cline/skills
$ cp -R "$tmp/security" .cline/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .cline/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .cline/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.cline/skills/Cline · Official docs
Cline's own docs do not list .agents/skills, while the gh and skills CLIs install there for Cline. Copying into .cline/skills follows the official docs.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent cline --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a cline --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.cline/skills
$ cp -R "$tmp/security" ~/.cline/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.cline/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.cline/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .kiro/skills/Kiro · Official docs
Does not read .agents/skills. The IDE also offers an Import a skill action.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent kiro-cli --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a kiro-cli --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .kiro/skills
$ cp -R "$tmp/security" .kiro/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .kiro/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .kiro/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.kiro/skills/Kiro · Official docs
Does not read .agents/skills. The IDE also offers an Import a skill action.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent kiro-cli --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a kiro-cli --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.kiro/skills
$ cp -R "$tmp/security" ~/.kiro/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.kiro/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.kiro/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .agents/skills/OpenCode · Official docs
No first-party registry or install command. Reads .claude/skills as well.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent opencode --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a opencode --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .agents/skills
$ cp -R "$tmp/security" .agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.config/opencode/skills/OpenCode · Official docs
No first-party registry or install command. Reads .claude/skills as well.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent opencode --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a opencode --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.config/opencode/skills
$ cp -R "$tmp/security" ~/.config/opencode/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.config/opencode/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.config/opencode/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .agents/skills/Goose · Official docs
The official docs list .agents/skills, while the skills CLI writes to .goose/skills. Both are shown here; confirm against the docs before relying on either.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent goose --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a goose --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .agents/skills
$ cp -R "$tmp/security" .agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.config/goose/skills/Goose · Official docs
The official docs list .agents/skills, while the skills CLI writes to .goose/skills. Both are shown here; confirm against the docs before relying on either.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent goose --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a goose --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.config/goose/skills
$ cp -R "$tmp/security" ~/.config/goose/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.config/goose/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.config/goose/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory .agents/skills/Amp · Official docs
Also has its own amp skill add command; see the Amp docs for its source format.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent amp --pin 20c9e88a5c007461a703f1c213572b073196113egh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a amp --copyDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p .agents/skills
$ cp -R "$tmp/security" .agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in .agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd .agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
Skill directory ~/.config/agents/skills/Amp · Official docs
Also has its own amp skill add command; see the Amp docs for its source format.
GitHub CLIpinned
$ gh skill install better-auth/skills security --agent amp --pin 20c9e88a5c007461a703f1c213572b073196113e --scope usergh picks the directory for the agent, names the folder after the source directory (security), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 7cd035c1dd03aafc236ea43492d31ca3306b7ab6.
skills CLIpinned
$ npx skills add better-auth/skills@20c9e88a5c007461a703f1c213572b073196113e --skill better-auth-security-best-practices -a amp --copy -gDownloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.
Plain gitpinned
$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/better-auth/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 20c9e88a5c007461a703f1c213572b073196113e
$ mkdir -p ~/.config/agents/skills
$ cp -R "$tmp/security" ~/.config/agents/skills/better-auth-security-best-practicesNo extra tooling. Files land byte for byte as published in ~/.config/agents/skills/better-auth-security-best-practices, so the content hash below can be checked directly.
Check what landed
Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.
$ cd ~/.config/agents/skills/better-auth-security-best-practices && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256Expectedabc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.
What is inside
Pattern matches in the files, each linked to its line. A match is a place to read, not a verdict, and no match is not proof of absence.
Runs commandsNo match
Code that spawns other processes, or shell code blocks in the instructions.
Network accessNo match
Calls that fetch from or send to a remote host.
Installs packagesNo match
Commands that pull and run third-party packages at use time.
Reads env or credentials4
References to environment variables, tokens, keys or credential files.
0 in scripts · 4 in docs and other text files
- SKILL.md:14
process.env - SKILL.md:20
BETTER_AUTH_SECRET - SKILL.md:21
AUTH_SECRET
Privileged or destructiveNo match
sudo, recursive deletes, permission changes and similar commands.
Dynamic or encoded codeNo match
eval, exec, base64 decoding and remote-script piping, which hide what runs.
Outside hosts mentioned
Hostnames of every URL in the text files.
- api.example.com×2
- app.example.com×2
- *.example.com×1
- *.preview.example.com×1
- admin.example.com×1
- app.example.com,https×1
Entries worth a second look
No symlinks, submodules, hidden files, archives, compiled files or unscanned files.
File manifest
Every file in the skill directory at the pinned commit.
- Content hash
- abc4a92b4c8793058e49ed670f5607f063a99d75af08a7752fe0ad9e056de7c9
- Git tree SHA
- 7cd035c1dd03aafc236ea43492d31ca3306b7ab6
| Path | Kind | Size | SHA-256 |
|---|---|---|---|
| SKILL.md | SKILL.md | 10 KB | 042f01c76b63b436… |
Spec and portability
Checked against the Agent Skills specification.
- Frontmatter
- Parses as YAML
- Name matches directory
- No
better-auth-security-best-practices≠security. Installed asbetter-auth-security-best-practices. - Name uses lowercase letters, digits and hyphens
- Yes
- Description length
- 322limit 1,024 characters
- SKILL.md body
- 429 linesthe spec suggests under 500 lines
- Fields outside the spec
- None
- License field
- None declared
- License file
- None declared
- Repository license
- None declared
Change history
No changes recorded since the first snapshot on 2026-11-28.
Follow changes to this skill in a feed reader: Atom feed · all skills