Building with Cursor agents — a reproducible loop

This site itself is an example of the loop below: markdown in git, Zod at build time, static deploy. The goal is not “AI wrote my site”—it is reviewable increments with clear human ownership.

The loop (five steps)

  1. Spec in markdown — one file per URL, frontmatter as contract (implementation.md for this repo).
  2. Agent implements in a branch — small diffs; no drive-by refactors.
  3. npm test + npm run verify — fast health checks before I read UI.
  4. Human previewnpm run dev, click the routes that changed.
  5. Push — private repo; public only what Netlify ships.

What I automate vs what I do not

AutomateKeep human
Scaffolding pages, RSS, sitemapTier policy (access fields)
Repetitive Astro componentsWording of summaries and cite lines
Test boilerplateAnything that could leak trading detail

Tooling choices (why Astro)

Failure modes I watch for

If you are adapting this

Copy templates/ from the repo, not generators. The target is a 15-minute weekly publish for trading summaries, not a bespoke CLI per post type.