My portfolio site used to be a hand-edited Astro project. Every copy change meant opening the repo, editing a component and pushing. In one afternoon I turned it into something closer to a small software factory: content lives in a CMS, work is written as GitHub issues, an AI agent picks up the issues that are ready, and I review the result on a preview link before anything goes live.
Here's how it fits together, and what I learned along the way.
The stack
- Astro for the site, pre-rendered at build time
- Contentful for content, read through its GraphQL API
- Netlify for hosting, deploy previews and build hooks
- GitHub for code, issues and pull requests
- Claude as the engineer that picks up the work

Step 1: Move content out of the code
The first job was a solution design piece: model the homepage as a Contentful content type and move the existing copy into it. Hero heading, body text, calls to action, availability and SEO metadata all became fields on a single Homepage entry.
The important decision was when to call Contentful. The site is static, so the GraphQL query runs once during astro build and the result is baked into the HTML. Visitors never hit the CMS, there's no API latency on page load, and there's no token in the browser.

Two safety rails made this production-friendly:
- If the Contentful credentials are missing, the build falls back to a local JSON copy, so a fresh checkout still builds.
- If the credentials are set but the request fails, the build fails. Stale content never ships silently.
Step 2: Close the loop with a build hook
Static sites have one catch: publishing in the CMS doesn't change the live site until something rebuilds it. A Contentful webhook now calls a Netlify build hook on publish. I tested it by publishing a one-line change and watched the preview rebuild in about ten seconds.
Step 3: Turn issues into the intake
This is the part that makes it a factory rather than a pipeline. Work now starts as a GitHub issue with a clear "what does complete look like?" section. When an issue is properly scoped, it gets an agent-ready label.
The rule for agents is written into the repo itself, in CLAUDE.md:
Only work on GitHub issues labelled
agent-ready. If an issue does not have the label, do not do any work on it.
That one label is the gate between "an idea I jotted down" and "work an agent is allowed to start".

Step 4: Give the agent standards, not just a task
An agent is only as good as its brief. The repo now carries:
CLAUDE.mdwith the intake rule, branch and PR naming (feat(#2): ...), commands, and "never merge"- A frontend skill describing the Astro, ITCSS and accessibility conventions the site already uses
docs/explaining the content model and the factory workflow- A specialist
blog-engineeragent definition, running on a faster coding model, with its own done criteria
The blog you're reading was the first feature built this way. I wrote issue #2 asking for a homepage "latest posts" section, a /blog listing with tag filters, and individual post pages. The blog agent built it against those standards, then a lead agent reviewed the work before any PR existed. That review mattered: the first version passed the build and the type check but rendered dark text on the site's dark background. The data layer was right and the pages were unreadable. The feedback went back to the blog agent, it added a light page panel matching the homepage hero, and only then did the PR go up with a Netlify preview for me to review.
The lesson: a green build isn't the same as done. Someone, human or agent, has to actually look at the page.
Step 5: Keep a human at the merge
Agents open pull requests. They don't approve or merge them. Every change still goes through a deploy preview and my review. The factory speeds up the making, not the deciding.
What's next
The obvious next step is design. Right now the agent works from CSS conventions written in Markdown. If the UI components lived in Figma and were linked to code, the agent could build new sections straight from the design system, and the whole flow would run from design to content to code to preview.

If you're running a small site or a consultancy, you don't need a platform team to work like this. A CMS, a host with previews, a label and a well-written CLAUDE.md get you most of the way.