netlify-identity

netlify-identity is a skill for Codex from PracticalSwan/agent-skills. It costs 128 tokens per session (4,327 once invoked), scanned C, a copy of netlify-identity, MIT.

A guide to adding user accounts and access control to a Netlify site with Netlify Identity. It covers sign-up, login, logout, social login, user verification, roles, admin management, and account event hooks.

In plain words
What is it for?
Use it when adding registration and login, OAuth sign-in with services such as Google or GitHub, protected pages, role-based access, or server-side user checks.
Why use it?
It avoids building authentication and social-login flows from scratch while highlighting where Netlify Identity must be configured and tested.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it when adding registration and login, OAuth sign-in with services such as Google or GitHub, protected pages, role-based access, or server-side user checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/practicalswan/agent-skills/netlify-identity
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PracticalSwan/agent-skills --skill netlify-identity
Clone the repo
git clone --depth 1 https://github.com/PracticalSwan/agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for netlify-identity

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/netlify-identity/github.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/netlify-identity)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/netlify-identity"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/netlify-identity/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for netlify-identity

Your own site · 80×15
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/netlify-identity"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/netlify-identity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,327 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00128 $0.04327
Opus 5.5 $0.00051 $0.01731
Sonnet 5.5 $0.00026 $0.00865
Haiku 4.5 $0.00013 $0.00433

Measured 18d ago against content hash 127346103c74, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

netlify-identity scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- system: agent-context/identity/system.md — human-owned, merged by ctx-gen; edit system.md, not this section -->

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> **Identity config is dashboard-only. There is no public API.** Never curl `api.netlify.com` to flip or read Identity settings, never read tokens from local Netlify config, and never probe undocumented endpoints. Enable
Origin

This is a copy

89% identical to netlify-identity — 55 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

netlify-identity/SKILL.md · 349 lines

How it starts

The opening of the file, as written. The whole thing — 349 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Netlify Identity

Use @netlify/identity (npm). For new projects it replaces the legacy netlify-identity-widget and gotrue-js. Do not reach for those.

npm install @netlify/identity

Framework examples (Next.js/Astro/Remix/SvelteKit) and the full API reference are in the @netlify/identity README on npm.

Identity does not run under netlify dev. Test all auth flows on a deploy. Deploy Previews work. Local dev will not complete signup/login/OAuth.

Identity config is dashboard-only. There is no public API. Never curl api.netlify.com to flip or read Identity settings, never read tokens from local Netlify config, and never probe undocumented endpoints. Enable and configure Identity at https://app.netlify.com/projects/{site_name}/identity.

Never build a from-scratch OAuth flow alongside Identity. No provider app registration in code, no client_id/secret in source, and no custom callback token exchange. Use oauthLogin() + handleAuthCallback(). Raw OAuth beside Identity is the most common source of rework.

Client auth (browser)

import { signup, login, logout, getUser, oauthLogin, handleAuthCallback } from '@netlify/identity'

// Register — confirmation email sent by default (unless autoconfirm is on)
const user = await signup('[email protected]', 'securepassword', { full_name: 'Jane Doe' })

// Log in / out
await login('[email protected]', 'securepassword')
await logout()

// Current user or null
const current = await getUser()
if (current) console.log(`Logged in as ${current.email}`)

// External provider — redirects the browser; provider is one of
// 'google' | 'github' | 'gitlab' | 'bitbucket'
oauthLogin('github')

handleAuthCallback() is mandatory on your landing page. Without it, OAuth redirects, email-confirmation links, password-recovery links, and invite links never complete. Call it on page load.

Invites are NOT logged in by handleAuthCallback(). For an invite it returns type === 'invite' with the token in result.token and result.user === null. The account does not exist yet. You must collect a password and call acceptInvite(result.token, password). If you skip this step, invited users never get an account.

Read the full file on GitHub · 349 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · +30 lines 127346103c74
  2. 1mo ago Changed · -26 lines f64b1c35085a
  3. 2mo ago Changed 72b5b67f56e4
  4. 2mo ago Changed 2e0e350195d9
  5. 3mo ago First seen · 345 lines · 128 tokens per session scan C 949178e980d3

Subscribe to this mod's changes

netlify-identity is a skill published in the GitHub repository PracticalSwan/agent-skills (25 stars, last pushed 18d ago), licensed MIT. It adds 128 tokens to every session and 4,327 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 2 findings (hidden instructions, makes network calls). It is 89% identical to netlify-identity, differing in 55 lines, and is treated as a copy.

Related

netlify-identity compared with skills from other repositories

netlify-identity next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
netlify-identityPracticalSwan/agent-skillsSkill2518d agoMITC128Codex
configuring-oauth2-authorization-flowxalgorix/xalgorixSkill1.6ktodayApache-2.0A44Claude Code, Codex
zeroidhighflame-ai/zeroidSkill216todayApache-2.0A51Claude Code
configuring-oauth2-authorization-flow26zl/cybersec-toolkitSkill116todayMITA84Claude Code
configuring-ldap-security-hardening26zl/cybersec-toolkitSkill116todayMITA61Claude Code
keycloak-migration-doctorsky-cloak/skycloak-mcpSkill5yesterdayApache-2.0A72Claude Code, Codex
deepai-assistantDeep-Identity-Inc/agent-skillsSkill34mo agoApache-2.0A47Claude Code, Codex