Skip to content
netlify avatar

Netlify Config

Reference for netlify.toml, _redirects, and _headers covering builds, routing, deploy contexts, and environment variables.

CCM score
75 of 100
skills.sh installs
3.8K
GitHub stars
57
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers build command and publish directory setup, deploy contexts, monorepo base directories, and JavaScript SPA wiring
  • Includes redirect and rewrite rules with splats, placeholders, query params, and country or language conditions, plus proxies and custom headers
  • Enforces that netlify.toml overrides UI settings, and that redirect and header rules are global rather than branch-scoped
  • Designed for developers configuring Netlify builds, routing, functions bundling, or environment variables through the Netlify CLI

Install

$ npx -y skills add netlify/context-and-tools --skill netlify-config -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Netlify configuration

Config lives in three files at the repo root (or the base/package directory for monorepos):

  • netlify.toml: build, contexts, plugins, functions, server, redirects, headers, dev.
  • _redirects: plain-text redirect/rewrite rules, saved to the publish directory, no extension.
  • _headers: plain-text response headers, saved to the publish directory.

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).

Details

Repository
github.com/netlify/context-and-tools
Categories
DevOps & Cloud, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the netlify-config skill do?

It is a reference for netlify.toml configuration and site environment variables, covering build settings, redirects, rewrites, headers, deploy contexts, and the [dev] block. It also covers managing environment variables and secrets with the Netlify CLI, including scoping values to specific deploy contexts.

How do I install the netlify-config skill?

Run npx -y skills add netlify/context-and-tools --skill netlify-config -y in your project. This installs the netlify-config skill into the project so your coding agent can use it.

Which other skills sit in the DevOps & Cloud category with netlify-config?

netlify-config is in the DevOps & Cloud category on Claude Marketplaces, alongside azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. It sets itself apart by focusing on the complete netlify.toml syntax, including redirects with splats and conditions, headers and the [dev] block.

Does netlify-config handle environment variables and secrets?

Yes, it covers managing environment variables and secrets with the Netlify CLI, including scoping values to specific deploy contexts. It also covers marking a variable as secret, disabling secret scanning, and handling sensitive variables in fork Deploy Previews.

More from netlify/context-and-tools

All 12

Similar to Netlify Config

More DevOps & Cloud