<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/document-driven-wordpress-o6lzchd8t" -->

---
title: Document-Driven WordPress | daily.dev
description: A structured workflow for using AI coding agents reliably in WordPress is proposed, replacing casual 'vibe coding' with four layers: writing a concrete...
canonical: https://daily.dev/posts/document-driven-wordpress-o6lzchd8t
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Document-Driven WordPress | daily.dev
og:description: A structured workflow for using AI coding agents reliably in WordPress is proposed, replacing casual 'vibe coding' with four layers: writing a concrete...
og:url: https://daily.dev/posts/document-driven-wordpress-o6lzchd8t
og:image: https://api.daily.dev/og/posts/O6LzcHd8T.png
og:image:alt: Document-Driven WordPress
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Document-Driven WordPress

**[CMS](https://daily.dev/sources/cms_squad)** · [@jakubczechowski](https://daily.dev/jakubczechowski) · 3 min read · 9 upvotes · 0 comments

## Summary

A structured workflow for using AI coding agents reliably in WordPress is proposed, replacing casual 'vibe coding' with four layers: writing a concrete technical spec before any code is written, giving agents runtime visibility into the live WordPress database and hooks via an MCP tool called Novamira, maintaining a human-in-the-loop browser feedback cycle to catch visual regressions linters miss, and using WordPress Studio for client previews while keeping production deployments on classic git-based CI/CD. The argument is that WordPress's stateful, plugin-dependent runtime makes conversational prompting unreliable, and that discipline—specs, runtime inspection, visual verification, controlled deploys—is what makes AI agents dependable in this environment.

## Content

Conversational "vibe coding" works fine for isolated scripts and toy apps. Open an editor, type a casual prompt, and watch a function materialize.

In WordPress, that approach breaks sites.

WordPress is not a loose collection of PHP files. It is an interconnected, stateful runtime where application behavior depends on database rows, global hook priorities, active plugin interactions, and hidden options in `wp_options`. When an agent works strictly from static files and conversational chat prompts, it invents the missing context. The syntax passes linting; the feature breaks in production.

To achieve reliable, predictable results with AI coding agents in WordPress, I abandoned casual prompting. I replaced it with a structured four-layer stack:

### 1. Document-Driven Development (Zero Hallucination Spec)

Before an agent touches a single line of PHP or JavaScript, I spend fifteen minutes writing a concrete technical specification for the feature. It defines three elements:

- **Boundary constraints:** What the feature must do, and what it must explicitly ignore.
- **Data contracts:** Exact custom post type keys, database schemas, function signatures, and hook names.
- **Acceptance criteria:** A deterministic checklist the agent can test against.

The agent reads this specification as its primary prompt. It stops guessing architectural intent and starts executing a defined contract.

### 2. Runtime MCP via Novamira (Eyes on Live State)

An agent restricted to raw files in a repository is partially blind. It cannot see active plugins, database state, or execution order.

Through the Model Context Protocol (MCP), Novamira connects local AI agents directly to the running WordPress engine:

- **Database & Hook Inspection:** Agents inspect tables through `$wpdb`, verify active hooks, and test PHP commands inside the actual runtime.
- **Safe Gutenberg Manipulation:** Block themes and Full Site Editing (FSE) rely on HTML comments and JSON attributes. Direct runtime manipulation prevents markup and attribute corruption.
- **Strict Boundary Rule:** Novamira and full MCP permissions run exclusively on local development and staging. Production environments never run MCP server plugins—they receive only tested, version-controlled git commits.

### 3. Human-in-the-Loop Browser Feedback

Passing static analysis and clean PHP logs do not prove an interface works. In WordPress, theme stylesheets, global layout rules, and admin notices constantly collide with plugin markup.

Linters cannot detect displaced admin notices, broken mobile viewports, or overlapping buttons. I keep a continuous browser feedback loop: I test the running interface, inspect computed CSS and the rendered DOM, and feed concrete visual regressions directly back to the agent for surgical adjustments.

### 4. WordPress Studio for Previews, Classic CI/CD for Production

Showing working features to stakeholders requires an accessible preview without cluttering staging environments.

- **Client Validation:** WordPress Studio publishes instant, cloud-hosted preview environments for client review and acceptance.
- **Production Delivery:** Once approved, code moves through standard engineering controls—git branches, automated CI pipelines, and controlled server deployments. No one-click push buttons from local dev tools directly to live servers.

---

### Why Discipline Beats Vibe Coding

WordPress remains a powerful application platform when treated with engineering discipline. AI agents become dependable not by typing longer conversational prompts, but by anchoring them with written specifications, live runtime visibility, visual verification, and controlled deployments.

**Full breakdown, workflow architecture, and runtime configuration:**

👉 [Read the full article on StackCompass](https://stackcompass.dev/blog/document-driven-wordpress-novamira-stack/)

## Similar posts on daily.dev

- [How MCP Is Changing WordPress Development](https://daily.dev/posts/how-mcp-is-changing-wordpress-development-lpyhqm7tc) · freeCodeCamp · 13 upvotes · 0 comments
- [WordPress.com now lets AI agents write and publish posts, and more](https://daily.dev/posts/wordpress-com-now-lets-ai-agents-write-and-publish-posts-and-more-mlj8daq2v) · TechCrunch · 2 upvotes · 0 comments
- [WordPress for the Agentic Web](https://daily.dev/posts/wordpress-for-the-agentic-web-klg3jo6zz) · Make WordPress Core · 2 upvotes · 1 comments
- [Novamira Review: An MCP Plugin That Gives Your AI Agent Access to WordPress](https://daily.dev/posts/novamira-review-an-mcp-plugin-that-gives-your-ai-agent-access-to-wordpress-hsry2yzte) · WP Mayor · 0 upvotes · 0 comments
- [Build your first AI-Powered WordPress plugin](https://daily.dev/posts/build-your-first-ai-powered-wordpress-plugin-kss2sm0my) · WordPress Developer · 4 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#php](https://daily.dev/tags/php), [#wordpress](https://daily.dev/tags/wordpress), [#mcp](https://daily.dev/tags/mcp), [#vibe-coding](https://daily.dev/tags/vibe-coding)

[View this post on daily.dev](https://daily.dev/posts/document-driven-wordpress-o6lzchd8t)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/document-driven-wordpress-o6lzchd8t","headline":"Document-Driven WordPress","text":"A structured workflow for using AI coding agents reliably in WordPress is proposed, replacing casual 'vibe coding' with four layers: writing a concrete technical spec before any code is written, giving agents runtime visibility into the live WordPress database and hooks via an MCP tool called Novamira, maintaining a human-in-the-loop browser feedback cycle to catch visual regressions linters miss, and using WordPress Studio for client previews while keeping production deployments on classic git-based CI/CD. The argument is that WordPress's stateful, plugin-dependent runtime makes conversational prompting unreliable, and that discipline—specs, runtime inspection, visual verification, controlled deploys—is what makes AI agents dependable in this environment.","url":"https://daily.dev/posts/document-driven-wordpress-o6lzchd8t","datePublished":"2026-09-17T06:22:11.684Z","dateModified":"2026-09-17T06:22:31.237Z","author":{"@type":"Person","name":"Jakub Czechowski","url":"https://daily.dev/jakubczechowski","image":"https://avatars.githubusercontent.com/u/48767339?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":460}},"image":"https://media.daily.dev/image/upload/s--7S2pp3kD--/f_auto/v1789626132/posts/O6LzcHd8T?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":9},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/cms_squad","name":"CMS"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"CMS","item":"https://daily.dev/squads/cms_squad"},{"@type":"ListItem","position":3,"name":"Document-Driven WordPress"}]}
```

