Write the build contract before changing configuration
Recording where the build runs, what it produces, and which directory is published makes most deploy bugs visible in writing first. Configuration changes then stay minimal and traceable.
An agent skill for Codex and Claude Code that audits a web app's Netlify build contract and prepares local repairs without deploying.

A build can succeed locally and still fail on Netlify, or deploy and serve the wrong thing, because the base path, publish directory, runtime model, redirects, adapter, or environment requirements were misidentified. These are not compiler errors, so they tend to surface only after a deploy, as a site that opens empty or where only the home page works.
Static, SPA, hybrid, and SSR apps each need a different routing and function contract.
Netlify adapter behavior depends on the framework and its version.
Dashboard settings, environment variables, and deploys are remote actions that need explicit authority.
The skill detects the package manager, framework, and runtime model, then writes down an explicit build contract. A Python auditor checks netlify.toml and the build output against that contract using documented patterns, and local build and route checks confirm the repair before any remote step is handed back for authorization.
Project, framework, and lockfile detection establishes the runtime model before anything changes.
A deterministic Python auditor checks netlify.toml and the output shape against documented rules for base, publish, functions, redirects, and adapters.
Local builds verify root and nested routes, and any remote change is handed off only with explicit authorization.
Recording where the build runs, what it produces, and which directory is published makes most deploy bugs visible in writing first. Configuration changes then stay minimal and traceable.
Hand-written function shims drift silently when the framework changes, while maintained adapters follow those changes. The skill accepts less direct control in exchange.
Sending every route to index.html can make a broken build look healthy, which is the hardest kind of failure to notice. Unrelated configuration is also preserved rather than rewritten.
Share your challenge, scope, and timeline to start a focused conversation.