Why it was needed
Teams that already have a built application often deploy it through a hosting flow designed for source code. That path can trigger unnecessary rebuilds, publish the wrong directory, or upload unsafe local artifacts such as secrets and caches.
The requested artifact must be validated before any remote mutation. Secrets, source trees, caches, and unrelated files must never enter the deploy payload. Site selection, production promotion, and deployment each require separate authorization.
How it is built
A local preflight checks the artifact and its publish directory before anything remote happens. The skill then selects the Netlify CLI flow behind explicit mutation gates and finishes by verifying the deployed URL and its content.
Deploy the artifact, not the repository. Prebuilt delivery stays separate from source builds and their dependency graph, so the build that was validated locally is the one that gets published.
Block unsafe trees before login. Local safety checks run before credentials are requested or remote state changes, so an unsafe payload is rejected before it can affect the site.
Verify the public result. A successful CLI exit is treated as incomplete until the deployment state and served content have been checked.
The key decision: Deploy the artifact, not the repository.
What changed
Defined acceptance rules for safe artifact trees. Implemented a deterministic preflight utility. Separated authorization for draft deploys, production deploys, and site selection. Added regression tests for the package and the deployment flow.
Agents can deploy a verified local build without asking Netlify to rebuild the source. Unsafe payloads fail before any remote change. Authorization stays scoped to the requested deployment stage. The final report distinguishes local validation, remote mutation, and public verification.
My role: Agent workflow design and automation engineering. Scope: Deployment, deterministic validation, and portable distribution.
