netlify-deployment

Automate Netlify deployments and configure netlify.toml build settings.

59|12|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/etylsarin/opencastle --skill netlify-deployment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: netlify-deployment
Source: https://github.com/etylsarin/opencastle/tree/main/src/orchestrator/plugins/netlify
Command: npx skills add https://github.com/etylsarin/opencastle --skill netlify-deployment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes and automates Netlify deployments, build configuration, serverless and edge function placement, environment variable scoping, and build troubleshooting so teams can reliably publish web projects without manual configuration errors.

Core Features & Use Cases

  • Git-based deployment workflows: Automatic production deploys from main, deploy previews for feature branches, and easy rollbacks.
  • Build configuration: Guidance for netlify.toml settings including build command, publish directory, and Node version selection.
  • Serverless and Edge Functions: Conventions for placing functions in netlify/functions and netlify/edge-functions with runtime and timeout considerations.
  • Environment and scheduled tasks: Scoping best practices for production, deploy previews, and local development, plus scheduled/background function patterns.
  • Build troubleshooting: Common failure causes, local reproduction with Netlify CLI, and cache-clearing remediation steps.

Quick Start

Use the netlify-deployment skill to deploy the current branch to Netlify, validate build settings, and confirm required environment variables are configured.

Frequently Asked Questions about netlify-deployment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure netlify.toml for automatic deployments from a Git branch?

To configure Netlify deployments, define your build command, publish directory, and Node version in a netlify.toml file. This standardizes build configuration, enabling automatic production deploys from your main branch and deploy previews for feature branches.

What is the correct directory placement for Netlify serverless and edge functions?

Netlify serverless functions belong in the netlify/functions directory, while edge functions go in netlify/edge-functions. Correct placement ensures proper runtime execution and timeout management for your serverless endpoints.

How do I scope environment variables for Netlify deploy previews and local development?

Scope environment variables by configuring distinct sets for production, deploy previews, and local development. This isolation prevents local dev config from affecting deploy previews and ensures production secrets remain secure during builds.

Why does my Netlify build fail locally but pass in CI, and how do I troubleshoot it?

Troubleshoot Netlify build failures by reproducing the CI build locally with the Netlify CLI, verifying Node version selection, and checking environment variable scoping. If failures persist, clear the build cache to resolve corrupted dependency issues.

Does Netlify support scheduled background functions for recurring tasks?

Yes, Netlify supports scheduled and background function patterns within its serverless architecture. You can configure these in your project to run recurring tasks without requiring a dedicated always-on server instance.

Do I need token-based authentication to deploy with the Netlify CLI?

Yes, token-based authentication is required for Netlify CLI or MCP integration to securely deploy sites. Authentication validates your permissions before pushing builds and modifying serverless configurations.