Skip to content

make-app-netlify-ready

An agent skill for Codex and Claude Code that audits a web app's Netlify build contract and prepares local repairs without deploying.

Role
Agent workflow design and automation engineering
Scope
Agent workflow, validation automation, and packaging
Status
Published npm package v0.1.0
A passing local build next to a deployment pipeline with mismatched paths

Problem

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.

Constraints

  1. C1

    Static, SPA, hybrid, and SSR apps each need a different routing and function contract.

  2. C2

    Netlify adapter behavior depends on the framework and its version.

  3. C3

    Dashboard settings, environment variables, and deploys are remote actions that need explicit authority.

Architecture

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.

01

Skill workflow

Project, framework, and lockfile detection establishes the runtime model before anything changes.

02

Automation

A deterministic Python auditor checks netlify.toml and the output shape against documented rules for base, publish, functions, redirects, and adapters.

03

Verification

Local builds verify root and nested routes, and any remote change is handed off only with explicit authorization.

Decisions

D1

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.

D2

Prefer maintained framework adapters

Hand-written function shims drift silently when the framework changes, while maintained adapters follow those changes. The skill accepts less direct control in exchange.

D3

Never mask defects with catch-all redirects

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.

Contribution

  • Implemented package manager, framework, and runtime detection.
  • Built a Python Netlify configuration auditor.
  • Codified redirect, base, publish, functions, and adapter rules.
  • Added installer and package verification.

Outcomes

  • Agents can classify a project's runtime model before touching its configuration.
  • Agents make minimal local configuration repairs instead of rewriting netlify.toml.
  • Root and nested routes and the output shape are verified locally.
  • Reports separate a deployment-ready local state from dashboard and deploy actions that were not performed.

Verified stack

  • Agent Skills
  • Python
  • JavaScript
  • Node.js
  • npm
  • Netlify
  • GitHub Actions
  • CI/CD

Working through something similar?

Share your challenge, scope, and timeline to start a focused conversation.