r/webdev • u/iHaveNoTimeForGaming • 12d ago
Discussion Claude Code + Astro + Headless WordPress for the only webbed in the company
A bit of context: I've been working with WordPress for nearly 14 years, mainly on small- to mid-sized websites.
I currently work at an agency, where I'm the only web developer. This means that when I'm away and something happens, my coworkers either have to wait until I get back or ask a freelance developer for help.
I usually build my own themes and templates using ACF, and I never use ready-made themes because I prefer to build things from scratch.
Recently, I decided to change my workflow a bit. For one of our projects, I decided to go with Claude Code + Astro + Headless WordPress, with version control on GitHub.
I chose WordPress because it's a platform my client is already familiar with.
It's a mid-sized project, and the client will be updating the website constantly with news, job offers, events, etc.
So far, the experience has been amazing. The website runs like a breeze, and development time was reduced from weeks to just a few days.
Even better, my coworkers (who are all designers) can now use Claude to request changes and even add new ACF fields, and it's working surprisingly well.
Do you think it was a bad decision to give my coworkers access to the codebase and let them use Claude Code to make changes, even though none of them have a development background?
14
u/iligal_odin 12d ago
Yes a huge issue to give them access like that
Unless you have a company server where Claude runs on and has a great set of documentation than maybe. Now your project will become bloated and a huge knotted weave of different decisions made by different ai memories and contexts
6
u/anders9000 12d ago
You should limit them to being able to submit merge requests, you should review the code and integrate. Never let them push to main.
5
u/JaseciLabs 12d ago
Make sure ACF field changes get saved as JSON in the repo (Local JSON), so they go through PR review too instead of living only in the database.
1
u/Menelabs 11d ago
One thing that bites this setup later: if Astro builds static pages, the client's constant news and job updates don't appear until the next build. Make sure a WordPress publish or update fires a deploy hook that rebuilds the site, or render those listing pages on request. Otherwise the first complaint will be "I published the job ad an hour ago and it isn't there", and you'll be away when it happens.
3
u/Mani_Khan_Web_Master 12d ago
Not a bad decision by itself, but I'd put guardrails between "designer asks Claude" and "live site" instead of relying on everyone being careful:
The question that matters for when you're away is who can roll back. If a designer can revert a bad deploy in one click, you're in good shape. If not, I'd set that up first.
2
u/Discordbothost 12d ago
PR-only is the right call, the other thing I'd add is a preview deploy per PR (netlify/vercel/cloudflare pages all do it off github for free). designers can't review a diff, but they can click a link and see if the page looks right, so you only need to read the code part.
also watch the ACF side specifically. when a designer has claude add a field, the astro code starts expecting it before the field exists on the live WP install, and the next build dies on undefined. defaulting fields in your fetch layer (field ?? '') plus a CLAUDE.md line like "never assume a new ACF field exists in prod" saves you from the friday afternoon broken build
1
u/EnzoValley 12d ago
One thing I'd add: if every change has to wait for your review, you've rebuilt the bottleneck you were trying to get rid of. I'd split it by blast radius. Copy and content tweaks can merge on a green build plus a look at the preview deploy, and only templates, build config and ACF fields need you. CODEOWNERS with required code owner review gets you that. Also keep a CLAUDE.md in the repo so every designer's Claude starts from the same conventions and not from whatever each of them told it last week
1
u/mau_cervera 11d ago
Not a bad call imo, but I'd split what they're actually asking Claude for. Most of what changes day to day (news, jobs, events) should never touch the repo, that's literally what WP is there for. So Claude access is really for layout stuff and new fields, and that's exactly what breaks builds.
I'd only review the changes that touch templates or the ACF schema. Copy and styling tweaks can go through if the build is green and the preview looks right, otherwise you're the bottleneck again.
The real test is the week you're on vacation. If one of them can roll back a bad deploy without calling you, you're fine.
1
u/MysteriousListen1109 11d ago
Our designer is actually heavily involved in dev collaboration now too, though I don't let her touch the main frontend/backend branches—she only has read access there. Instead, we set up a dedicated
designbranch for her to tweak UI visuals and interactions, and she mostly uses Codex to read and understand the codebase.1
u/Accomplished_Fix9569 11d ago
It is not about the code breaking. It is about the database schema drifting from your version control and Claude hallucinating complex ACF group structures that no longer match your Astro components after a week of designer edits
1
u/Fit-Implemented 12d ago
Not a bad decision, especially since it reduces the “only dev” bottleneck. The key is guardrails. Protect the main branch, have coworkers work on branches, and require pull requests that you or a CI check approve before anything goes live. That way they can move fast without accidentally breaking production.
0
u/Standard_Scarcity_74 12d ago
Might want to leave wordpress soon. It has not been worthwhile to use for a while now. U can provide a system similar to what you described here through other, better builders.
-8
u/jroberts67 12d ago
You're still working with WP? Do you have a MySpace account and use Yahoo for search?