installskill

Skills / neondatabase/agent-skills

neon-auth

Adding authentication with Neon Auth (Managed Better Auth): OAuth, OTP, passkeys and MFA.

Pinned commit
d3601d9e1f93Committed 2026-11-18
Files
442 KB
License
Apache-2.0
Snapshot taken
2026-11-28
Description from the skill
Add authentication to a new app. Use for "add auth", "add login", Neon Auth (Managed Better Auth), identity routing, sign-up, sign-in, password reset, email OTP, magic links, organizations, phone OTP, OAuth, OAuth server for MCP or third-party OAuth clients, passkeys, MFA, trusted domains, invalid domain, and @neon/auth. No existing identity: default to Managed Better Auth. Keep working Better Auth, Clerk, Supabase Auth, or another IdP. User asked to migrate from Supabase Auth: Managed Better Auth. A required plugin outside Managed support: self-managed Better Auth on a Neon Function or the existing app host. Also use for auth APIs in @neon/neon-js.

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 neondatabase/agent-skills skills/neon-auth --agent claude-code --pin d3601d9e1f9398b96a1ee25047bafba5f04199eb

gh picks the directory for the agent, names the folder after the source directory (neon-auth), 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 1673f10e66fe2fdb3092391f7fb8064132c5ae3b.

skills CLIpinned

$ npx skills add neondatabase/agent-skills@d3601d9e1f9398b96a1ee25047bafba5f04199eb --skill neon-auth -a claude-code --copy

Downloads 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/neondatabase/agent-skills.git "$tmp"
$ git -C "$tmp" checkout --quiet d3601d9e1f9398b96a1ee25047bafba5f04199eb
$ mkdir -p .claude/skills
$ cp -R "$tmp/skills/neon-auth" .claude/skills/neon-auth

No extra tooling. Files land byte for byte as published in .claude/skills/neon-auth, 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/neon-auth && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256

Expected4605fae31fe37ba980dd6eb22ed92259d8489ed769026b8f01ee95fc2bf02426

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.

Docs · 3SKILL.md · 1

Runs commands7

Code that spawns other processes, or shell code blocks in the instructions.

0 in scripts · 7 in docs and other text files

Network access1

Calls that fetch from or send to a remote host.

0 in scripts · 1 in docs and other text files

Installs packages8

Commands that pull and run third-party packages at use time.

0 in scripts · 8 in docs and other text files

Reads env or credentials7

References to environment variables, tokens, keys or credential files.

0 in scripts · 7 in docs and other text files

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.

  • neon.com×26
  • app.example.com×3
  • better-auth.com×3
  • api.example.com×2
  • github.com×2
  • reports.example.com×2
  • ep-example.neonauth.us-east-1.aws.neon.tech×1
  • localhost×1
  • mcp.example.com×1
  • old.example.com×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
4605fae31fe37ba980dd6eb22ed92259d8489ed769026b8f01ee95fc2bf02426
Git tree SHA
1673f10e66fe2fdb3092391f7fb8064132c5ae3b
PathKindSizeSHA-256
SKILL.mdSKILL.md15 KB42fc58a1914ad23a…
references/managed-auth.mdDocs13 KB93be8e4c4e231024…
references/oauth-server.mdDocs12 KBa19fa4d9fa861bd2…
references/self-managed.mdDocs1.8 KBddcb6d35207e1595…

Spec and portability

Checked against the Agent Skills specification.

Frontmatter
Parses as YAML
Name matches directory
Yes
Name uses lowercase letters, digits and hyphens
Yes
Description length
657limit 1,024 characters
SKILL.md body
150 linesthe spec suggests under 500 lines
Fields outside the spec
None
License field
None declared
License file
None declared
Repository license
LICENSE (Apache-2.0)

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

Get an email when this skill changes

Email alerts are not built yet. Leave your address and we will write to you once, when they are. The feed above works today.

We store your address, the name of this skill and the date. It is used for nothing else.