Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

netlify-config

Skill by NVlabs

Reference for writing netlify.toml files that configure Netlify sites. It covers build settings, redirects, headers, deploy contexts, environment variables and functions. Aimed at developers deploying sites on Netlify.

  • Score 73
  • 214 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install netlify-config

Built from the published package, never by AI.

git clone --depth 1 https://github.com/NVlabs/Skill2Env /tmp/Skill2Env && mkdir -p ~/.claude/skills && cp -r /tmp/Skill2Env/SkillHub/skills/netlify/netlify-config ~/.claude/skills/netlify-config

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install netlify-config in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a reference for the netlify.toml configuration file. It lists the syntax for build settings, redirects and rewrites (including splats, path parameters, forced redirects and country or language conditions), and HTTP headers. It also covers deploy contexts, environment variables, functions and edge functions configuration, the dev server, plugins and the Image CDN.

The file is placed at the repository root, or at the base directory for monorepos. The source notes that Netlify processes the first matching redirect rule, so specific rules should come before general ones. It also warns against putting secrets in netlify.toml because the file is committed to source control. The skill is intended for developers who need to write or review Netlify site configuration.

Written from the project's SKILL.md and checked against it.

What it can do

  • Build settingsSets the base directory, build command and publish directory in the [build] table.
  • Redirects and rewritesDefines redirects with splats, path parameters, forced rules, proxies and country or language conditions.
  • HeadersSets response headers such as X-Frame-Options and Cache-Control for matching paths.
  • Deploy contextsOverrides build commands and environment values for production, deploy previews, branch deploys and dev.
  • Environment variablesSets non-secret variables at build level or per deploy context in netlify.toml.
  • Functions configurationSets the functions directory, the node bundler and scheduled functions.
  • Edge functions configurationMaps paths to edge functions and sets a Deno import map.
  • Dev serverSets the dev server command, Netlify Dev port, target port and framework detection.
  • PluginsAdds Netlify build plugins with package names and inputs.
  • Image CDNLists remote image hosts allowed through the Image CDN.

Try asking

  • Add a SPA catch-all redirect to my netlify.toml
  • Set long-lived cache headers for my assets folder in netlify.toml
  • Configure a production deploy context with NODE_ENV set to production

Good to know

  • Headers apply only to files served from Netlify's CDN, not to function or edge function responses.
  • Do not store secrets in netlify.toml because it is committed to source control.
  • Redirect rules are processed in order, so the first match wins.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: SkillHub/skills/netlify/netlify-config/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB

Alternatives to netlify-config

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

netlify-config: common questions

Where should netlify.toml be placed?

The source says to place netlify.toml at the repository root, or at the base directory for monorepos.

Can I store API keys in netlify.toml?

No. The source says not to put secrets in netlify.toml because the file is committed to source control. Use the Netlify UI or CLI for sensitive values.

Do headers from netlify.toml apply to function responses?

No. The source says headers apply only to files served from Netlify's CDN, so function or edge function responses must set headers in code.

How do I install netlify-config?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is netlify-config free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is netlify-config safe to use?

It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to netlify-config?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

netlify-config Install

Add to stack

Loading.