netlify-access-control
Picks the right Netlify site-protection layer and disambiguates the three unrelated "auth" concepts users conflate — app-user…
Configure Netlify builds and routing via netlify.toml, _redirects, and _headers. Use when setting a build command or publish directory, validating netlify.toml against its JSON schema, adding redirects/rewrites/proxies or an SPA fallback rewrite, or setting custom response
Claude Code
$ npx -y skills add netlify/context-and-tools --skill netlify-config --agent claude-code
Codex
$ npx skills add netlify/context-and-tools --skill netlify-config -a codex -y
Cursor
$ npx skills add netlify/context-and-tools --skill netlify-config -a cursor -y
Gemini CLI
$ npx skills add netlify/context-and-tools --skill netlify-config -a gemini-cli -y
GitHub Copilot
$ npx skills add netlify/context-and-tools --skill netlify-config -a github-copilot -y
OpenCode
$ npx skills add netlify/context-and-tools --skill netlify-config -a opencode -y
Windsurf
$ npx skills add netlify/context-and-tools --skill netlify-config -a windsurf -y
name: netlify-config description: Configure Netlify builds and routing via netlify.toml, _redirects, and _headers. Use when setting a build command or publish directory, validating netlify.toml against its JSON schema, adding redirects/rewrites/proxies or an SPA fallback rewrite, or setting custom response headers or basic auth. Also use when managing environment variables and secrets, scoping vars per deploy context, marking a var as secret or disabling secret scanning, configuring functions bundling, ignoring builds, or wiring up a monorepo or JavaScript SPA on Netlify.
Config lives in three files at the repo **root** (or the base/package directory for monorepos):
`netlify.toml` values **take precedence over the Netlify UI** when they conflict. Paths in `netlify.toml` are absolute relative to the **base directory** (root `/` by default).
"$schema" = "https://open-api.netlify.com/netlify.schema.json"
[build]
base = "frontend"
publish = "dist"
command = "npm run build"
environment = { NODE_VERSION = "18" }
[context.production]
publish = "output/"
command = "make publish"
[context.deploy-preview]
publish = "dist/"
[context."feat/branch"] # quote names with special characters
command = "npm run preview"`[build]` runs in **Bash**. Context-aware keys include `[build]` and `[[plugins]]`. They do **NOT** include `[[redirects]]` or `[[headers]]`, which are always global. Precedence, least→most specific: UI < toml < any-context property < `[context.<name>]` < `[context.branchname]`.
`_redirects` rules are processed **first**, then `netlify.toml`. Within each, the **first matching rule top-to-bottom wins**, so list specific rules before general ones. Edge functions run before redirects.
SPA history-`pushState` fallback (required for clean URLs):
/* /index.html 200
[[redirects]] from = "/*" to = "/index.html" status = 200
`_redirects` syntax is `from to [status] [conditions]`. Lines starting with `#` are comments, paths are case-sensitive, and special chars must be URL-encoded:
/home / 301 /my-redirect / 302 /ecommerce /store-closed 404 # custom 404 for a path /pass-through /index.html 200 # rewrite /best-pets/dogs /best-pets/cats.html 200! # force/shadow (! or force=true) /news/* /blog/:splat # splat /news/:month/:date/:year/:slug /blog/:year/:month/:date/:slug # placeholders /store id=:id /blog/:id 301 # query params / /anz 302 Country=au,nz # no spaces in value list /israel/* /israel/he/:splat 302 Language=he /* /legacy/:splat 200 Cookie=is_legacy,my_other_cookie
`[[redirects]]` keywords:
**Gotchas:**
/api/* https://api.example.com/:splat 200 /netlify-site/* https://my-other-site.netlify.app/:splat 200 # use .netlify.app, not custom domain
[[redirects]] # custom request headers + force
from = "/search"
to = "https://api.mysearch.com"
status = 200
force = true
headers = {X-From = "Netlify"}Signed proxy rules:
[[redirects]] from = "/search" to = "https://api.mysearch.com" status = 200 force = true signed = "API_SIGNATURE_TOKEN_PLACEHOLDER"
**Gotchas:**
Public Netlify skills for AI coding agents. Each skill is a focused, factual reference for a Netlify platform primitive — designed to help agents build correctly on Netlify without needing to search docs.
Picks the right Netlify site-protection layer and disambiguates the three unrelated "auth" concepts users conflate — app-user…
Run AI agent tasks remotely on Netlify using Claude, Codex, or Gemini. Use when the user wants to run an AI agent on their site,…
Use Netlify AI Gateway to call OpenAI, Anthropic Claude, Google Gemini, TypeSafe (Jev), or OpenRouter-hosted models…
Store and retrieve unstructured objects, files, and cache-like state on Netlify with the @netlify/blobs module. Use when…
Cache dynamic and static responses on Netlify's CDN from Functions, Edge Functions, and proxies. Use when you add caching or…
Zero-config Postgres for Netlify apps via @netlify/database — querying data from Functions/Edge Functions, writing schema…
Use this skill whenever the user mentions Horizon by name in a Laravel context. Covers the full Horizon lifecycle: installing…
Use when launching cloud VMs, Kubernetes pods, or Slurm jobs for GPU/TPU/CPU workloads, training or fine-tuning models on cloud…
Use this skill when the user mentions "pinme", or needs to upload files, store to IPFS, create/publish/deploy websites or…