Netlify Deploy

Use when the user wants to deploy, publish, preview, or link a web project on Netlify; prefer the Netlify CLI, verify auth and site linkage first, and default to preview deploys unless production is explicitly requested.

hebertzhu 4f57482 1.4 KB Updated

File contents

Netlify Deploy

Intent

  • Use for Netlify site linking, preview deploys, production deploys, and netlify.toml-aware deployment setup.

Default operating pattern

  1. Check npx netlify status first to confirm CLI access, login state, and whether the current repo is already linked.
  2. If the repo is not linked, inspect the Git remote before choosing between npx netlify link --git-remote-url <remote> and npx netlify init.
  3. Inspect package.json, netlify.toml, and the detected package manager before installing dependencies or guessing build settings.
  4. Default to npx netlify deploy for a preview URL; only use npx netlify deploy --prod when the user explicitly asks for production.
  5. Return the deploy URL, the site URL if available, and any remaining manual steps such as setting environment variables in the Netlify dashboard.

Pack fit

  • Included in: deploy-ops
  • Keep instructions CLI-first, host-agnostic, and reusable across modern web projects.

Boundary

  • Do not claim the deploy succeeded unless the CLI returns a success result or URL.
  • Do not invent build commands, publish directories, or site settings when the project config is ambiguous.

hebertzhu/agent-foundry/tree/main/skills/netlify-deploy commit 4f57482e2c

Frequently asked questions

npx skillmds@latest add hebertzhu/netlify-deploy