netlify-access-control

netlify-access-control is a skill for Codex from PracticalSwan/agent-skills. It costs 142 tokens per session (3,298 once invoked), scanned C, a copy of netlify-access-control, MIT.

A guide for choosing Netlify's site and team protection settings. It separates site password protection, project visibility, team single sign-on, and user login inside an application.

In plain words
What is it for?
Use it when restricting sites or deploy previews, controlling project visibility, requiring team SSO, or deciding whether app login belongs in a separate identity system.
Why use it?
It prevents developers from configuring the wrong kind of access control for a site, a Netlify team, or the app's own users.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: mentions Claude Code; mentions Codex.

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.

agentmods
npx agentmods add skills/practicalswan/agent-skills/netlify-access-control
Any agent
npx skills add PracticalSwan/agent-skills --skill netlify-access-control
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-access-control

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/netlify-access-control.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/netlify-access-control)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/netlify-access-control"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/netlify-access-control.svg" alt="Measured on agentmods" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,298 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin 94% 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.00142 $0.03298
Opus 5 $0.00071 $0.01649
Sonnet 5 $0.00028 $0.00660
Haiku 4.5 $0.00014 $0.00330

Measured 2d ago against content hash 8d4f7356240c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

netlify-access-control 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 2d 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/access-control/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.

These settings have **no public API, no CLI command, and no MCP tool**. Do NOT curl `api.netlify.com` or read local auth tokens to inspect or change them. Hand the user the dashboard path and checklist. On failure, repor
Origin

This is a copy

94% identical to netlify-access-control — 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-access-control/SKILL.md · 217 lines

How it starts

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

Netlify access control (picking the protection layer)

This skill ROUTES. Its job is choosing the correct protection layer for loading a site, not implementing app auth. Before recommending anything, disambiguate — three unrelated layers get called "auth":

  • Netlify Identity — "who is this user inside my app" (issues nf_jwt). App login, OAuth providers for your users, auth code. → Route to the netlify-identity skill. Not covered here.
  • Password Protection / Project visibility — "can this request load the site at all." Platform perimeter. This skill.
  • Team/Org SAML SSO — "can you log into the Netlify dashboard." Team member access to Netlify itself.

Sessions are separate. The same provider (e.g. Google) can be an Identity OAuth provider for app users AND a SAML IdP for team members — unrelated wiring.

Footgun: no API, CLI, or MCP for these settings

These settings have no public API, no CLI command, and no MCP tool. Do NOT curl api.netlify.com or read local auth tokens to inspect or change them. Hand the user the dashboard path and checklist. On failure, report what you tried and stop.

Footgun: the double login is real

A Password-Protection / team-login perimeter session and a Netlify Identity app session have no bridge — no shared cookie, no header forwarding, no JWT exchange. Don't burn iterations trying to wire them together. For the combined Password-Protection + Identity pattern and its tradeoffs, see references/two-layer-pattern.md.

For company-wide app-level SSO with a single sign-in (no double login), recommend the Auth0 extension (federating to the corporate IdP) BEFORE the two-layer stack.

Pick the layer

Goal Use
Restrict site to your team, invite by email Private project (Credit-based) or team login protection
Shared password anyone can use Basic password protection, or Password visibility (Pro only)
Protect only previews, keep production open "Non-production deploys only" / "Previews only"
Require SSO to view the site Org/Team SSO with Only SSO allowed (strict) + team login protection
Log in users inside your app → netlify-identity skill
Single company-wide app SSO, no double login → Auth0 extension

Read the full file on GitHub · 217 lines

Files

What ships with it

3 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. 2d ago First seen · 217 lines · 142 tokens per session scan C 8d4f7356240c

Subscribe to this mod's changes

netlify-access-control is a skill published in the GitHub repository PracticalSwan/agent-skills (13 stars, last pushed 5d ago), licensed MIT. It adds 142 tokens to every session and 3,298 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it C with 2 findings (hidden instructions, makes network calls). It is 94% identical to netlify-access-control, differing in 55 lines, and is treated as a copy.