src/orchestrator/plugins/netlify/SKILL.md
Deploy sites, configure serverless and edge functions, and verify builds on Netlify. Use when the user mentions: 'deploy preview', 'configure netlify.toml', or 'debug a failed deploy'. Trigger terms: build error, Netlify Functions, deploy logs, deploy preview
npx skillsauth add etylsarin/opencastle netlify-deploymentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Netlify-specific deployment patterns and conventions. For project-specific deployment architecture, environment variables, and key files, see deployment-config.md.
| Branch | Environment |
|--------|-------------|
| main | Production (auto) |
| feature/*, fix/* | Deploy preview (auto, unique URL) |
netlify.toml (build command, publish dir, env vars).netlify build --debug — fix any errors before pushing.curl -fsS -o /dev/null -w '%{http_code}' https://<DEPLOY_URL>/ — expect 200.main — production auto-deploys.[build]
command = "npm run build"
publish = "dist" # or ".next", "out", "build"
[build.environment]
NODE_VERSION = "20"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
conditions = {Role = ["admin"]}
For security headers config, see REFERENCE.md.
Place functions in netlify/functions/. For full examples and CI-ready function patterns see REFERENCE.md.
Config export defines routing (path) instead of the default /.netlify/functions/<name> path.Place edge functions in netlify/edge-functions/:
// netlify/edge-functions/geolocation.ts
import type { Context } from '@netlify/edge-functions';
export default async (request: Request, context: Context) => {
const { country } = context.geo;
return new Response(`You're visiting from ${country}`);
};
export const config = { path: '/geo' };
See REFERENCE.md for environment variable scoping and security header examples.
// netlify/functions/daily-task.ts
import type { Config } from "@netlify/functions";
export default async (req: Request) => {
const { next_run } = await req.json();
console.log("Next invocation at:", next_run);
};
export const config: Config = {
schedule: "0 0 * * *", // Daily at midnight UTC
};
netlify build --debug # reproduce locally with verbose output
netlify env:list # verify env vars are set
netlify status # check linked site and deploy state
Common fixes: set NODE_VERSION in netlify.toml, sync lockfile, verify publish directory matches build output.
curl -fsS -o /dev/null -w '%{http_code}' https://<DEPLOY_URL>/ # expect 200
curl -fsS -o /dev/null -w '%{http_code}' https://<DEPLOY_URL>/api/health # expect 200
If any route fails: inspect deploy logs in Netlify UI, fix, and re-deploy. See REFERENCE.md for extended verification scripts.
development
Defines 10 sequential validation gates: secret scanning, lint/test/build checks, blast radius analysis, dependency auditing, browser testing, cache management, regression checks, and smoke tests. Use when running pre-deploy validation or CI checks, CI/CD pipelines, deployment pipeline validation, pre-merge checks, continuous integration, or pull request validation.
development
Generates test plans, writes unit/integration/E2E test files, identifies coverage gaps, and flags common testing anti-patterns. Use when writing tests, creating test suites, planning test strategies, mocking dependencies, measuring code coverage, or test planning.
development
Provides model routing rules, validates delegation prerequisites, supplies cost tracking templates, and defines dead-letter queue formats for Team Lead orchestration. Load when assigning tasks to agents, choosing model tiers, starting a delegation session, running a multi-agent workflow, delegating work, choosing which model to use, or assigning tasks.
testing
Saves and restores session state including task progress, file changes, and delegation history. Use when saving progress, resuming interrupted work, picking up where you left off, or checkpointing current work.