To manage WordPress with an AI agent, you connect a tool such as Claude Code to the MCP server of your site and give it tasks in plain words. With Leitvia Studio the AI agent works through 82 abilities, each with checks, and its changes wait as packages until you approve them or roll them back.
This guide is about our own product, so read it with that in mind. It explains what an AI agent does in WordPress with Leitvia, why it stays on brand, where it stops, and how you start in six steps. After that come ten prompts to copy and the questions we hear most.
What an AI agent does in WordPress with Leitvia
Most tools that let an AI agent into WordPress hand it the REST API or the admin screen and hope for the best. Leitvia Studio gives it named abilities instead, such as leitvia/compose-page, leitvia/set-alt-text or leitvia/update-seo. Each ability reads or writes one thing, says what it expects and refuses input it cannot check.
- Checks before every write. Studio checks the heading structure, alt text, link text, block validity, color pairs, one h1 and landmarks. An error stops the change and tells the AI agent how to fix it; a warning sends it to a person.
- Packages instead of direct changes. Writes of an AI agent land in a change package in the Inbox, with the difference block by block and a preview of the changed pages. You apply all of it, a part or nothing.
- Autonomy per area. Content, corrections, structure, design and products each get a level: locked, suggest, draft or autonomous. By default an AI agent fixes small errors on its own, writes content and structure as drafts and only suggests design changes. Plugins, themes and users stay out of reach on every level.
- Rollback. Every applied package keeps a snapshot of what it changed. A rollback restores it; if someone edited the page since, Studio reports a conflict instead of overwriting that work.
- MCP. Studio runs its own MCP server at
/wp-json/leitvia-studio/v1/mcp. Claude Code, Codex, Cursor, claude.ai, ChatGPT and VS Code connect with OAuth or the application password of an AI agent user. - Skills. The free Leitvia agent skills tell the AI agent how a page, a news post, an audit or a migration is done well, step by step, in any tool that reads Agent Skills.

Why patterns and a design contract keep an AI agent on brand
Describing what you want and letting the AI write it is often called vibe coding. An AI agent with a blank page writes its own layout and its own CSS, and every page looks a bit different. With Leitvia it builds from patterns that already exist on your site: a hero, a grid of features, a FAQ, a call to action. The design contract lists each pattern with its role, its tone and when to use it, and the token set holds colors, fonts and spacing. The AI agent fills slots with your facts; it does not invent a layout.
Before it builds, the AI agent can ask leitvia/check-composition whether the order of sections works: two dark bands in a row, a missing call to action or a FAQ in the wrong place cost points. A pattern from another plugin counts only after a person approves it in the Pattern Lab. That is why the same prompt gives the same kind of page on a bakery site and on a law firm site, each in its own brand.
A real run: one sentence, 33 tool calls, one draft
On our demo site Tidepost we gave Claude Code one sentence: build a page about the public status page with a hero, three features, a FAQ and a call to action, only from the patterns of the site and only with facts the site already states, check it against WCAG and publish it.
The AI agent made 33 calls to the MCP server. It read the contract and five pages for facts, planned the page, picked four patterns, scored the order at 100 of 100 and saved the page as a draft. Then it tried to publish, and Studio put that step into change package 133, because AI agents on this site may only save drafts. Its last answer said so plainly: the page is built, not live, and it cannot approve the package itself.

Transcript of the video
- Claude Code gets one sentence and works on Tidepost through the MCP server of Leitvia.
- It reads the contract, pages and patterns, and checks the composition before it builds.
- The page is saved as a draft. AI agents on this site may only save drafts.
- The request to publish waits in the Inbox, with the AI agent that sent it.
- A person checks the change and applies it.
- The page is live: four patterns of the site, only facts the site already states.
A larger test ran in November: an AI agent rebuilt a live travel blog with a WooCommerce shop, almost 200 posts and pages and about 180 products. It hit 68 gaps in three days. We closed each one in the product, in 12 releases, and wrote down what we learned in WooCommerce relaunch with an AI agent.
Where an AI agent in WordPress reaches its limits
- It knows only what you give it. Prices, opening hours, names and quotes come from you or from the site. A text the AI agent wrote without a source should come back to you as a question, and the skills ask for that.
- The checks see markup, not taste. They catch a skipped heading or a weak contrast. Whether a sentence sounds like you is still your call in the preview.
- The site audit covers published content.
leitvia/audit-sitechecks up to 20 posts per call. A draft is checked when it is written, the full audit runs after it goes live. The AI agent in our run said this without being asked. - Some things are always a person’s job. Plugins, themes, users, settings, the active token set and the global styles. An AI agent never approves its own package and only rolls back what it was allowed to do on its own.
- The AI model is yours. Leitvia does not include AI credits. Claude Code, Codex or ChatGPT bill you under your own plan with them, and the quality of a run depends on that model.
How to connect an AI agent to WordPress in 6 steps
- Install the theme Leitvia and the plugin Leitvia Studio. Both are free on WordPress.org. For a new site on your computer, Start a local project with an AI agent has one prompt that sets up WordPress with Leitvia Pro, the skills and MCP in an empty folder.
- Create an AI agent user. Under Leitvia Studio › Agents, name it after the tool, such as Claude Code, and copy the application password. It is shown once.
- Connect the tool. Add the address of the MCP server in your AI client and sign in with OAuth, or send the application password as a header. Connect an AI agent has the steps per client.
- Set the autonomy. Keep the profile Standard for the first week. Under Autonomy and the Inbox you can raise or lower each area later.
- Give the first task. Start with something small and visible, such as alt texts for one page or a shorter intro. The prompts below are a good start.
- Review and approve. Open the package in the Inbox, read the difference, open the preview, tick what you want and choose Apply selected. If something looks wrong later, Roll back restores the snapshot.

10 prompts to manage WordPress with an AI agent
Copy a prompt, replace the parts in angle brackets and paste it into your AI agent. Each one names the abilities it needs, so the AI agent does not guess. The list of abilities explains every field.
Build a page from patterns
Build a page about <topic> with a hero, three features, a FAQ and a call to action. Use leitvia/plan-page, pick approved patterns with leitvia/list-patterns, check the order with leitvia/check-composition and build it with leitvia/compose-page as a draft. Use only facts the site already states and list every text you could not source.
The AI agent plans the page, scores the order and saves a draft from your own patterns.
Shorten texts
Read the page <page> with leitvia/get-page-outline. Shorten every paragraph over 60 words by about a third without dropping a fact, figure or link, and write the new texts with leitvia/update-block. Show me before and after for each block.
Each paragraph changes on its own, so you can accept one and leave the next.
Alt text for images
Find the images without alt text with leitvia/audit-site and leitvia/get-page-outline. Look at each image and write an alt text that says what it shows in at most 125 characters; list images that only decorate for me instead. Save the texts with leitvia/set-alt-text, up to 25 per call with items.
Up to 25 alt texts arrive in one package, each tied to its image.
Check accessibility
Run leitvia/audit-site over all published content, 20 posts per call, and continue with after until nothing is left. Group the findings by rule, name the page and block of each one, and fix the ones you can fix with leitvia/update-block or leitvia/set-alt-text. List the rest for me.
You get a list of findings for headings, alt text, link text, contrast and landmarks, and a package with the fixes.
SEO titles and descriptions
Read the SEO data of all pages with leitvia/get-seo. For every page with a missing or weak title or description, write an SEO title of at most 60 characters and a meta description of 120 to 160 characters that answers what the page offers, and save them with leitvia/update-seo. Keep the main keyword of each page.
Titles and descriptions go through your SEO plugin, or through Studio when there is none.
Subtle motion
Set the motion of the site to subtle with leitvia/set-motion. On the page <page>, give text sections leitviaAnimation fade and card grids stagger with leitvia/update-block attributes, and linked cards leitviaHover lift, or zoom where they hold an image. Leave buttons and the closing call to action without an effect.
Sections fade in, cards follow one by one, and visitors who prefer reduced motion see none of it.
Choose a better pattern
The first section of <page> does not work. List the patterns with role hook with leitvia/list-patterns, read the two best fits with leitvia/get-pattern and detail slots, and tell me which facts of the page fill which slot. After I choose, switch the section with leitvia/replace-pattern and carry the texts over.
You compare two patterns by their slots before anything changes on the page.
Update the menu
Change the main menu with leitvia/update-navigation: <Home, Services with the sub items …, About, Contact>. Each label names its target, every url points to a published page of this site; check the addresses with leitvia/list-content first.
The new menu waits as a structure change until you apply it.
Write a news post
Follow the skill leitvia-news and write a news post about <topic> from these facts: <facts>. Create it with leitvia/create-content, post_type post, status draft, terms {"category": ["News"]}, an excerpt and seo with title and description. The first paragraph answers the question of the post in at most 60 words.
A draft with category, excerpt and SEO data lands in the Inbox.
Roll back a change
List the applied change packages of the last week with leitvia/list-packages and state applied. Show me what package <ID> changed with leitvia/get-package. Roll it back with leitvia/rollback only after I say yes; if it reports a conflict, show me the diff and stop.
The AI agent rolls back what it may; anything else it hands to you in the Inbox.
Questions about managing WordPress with an AI agent
Can an AI agent break my WordPress site?
Not through Leitvia Studio without you seeing it. Every write passes the checks first, design changes are only suggested by default, and plugins, themes and users are out of reach. Check the page after each change opens each changed page and undoes a change an AI agent made on its own if it broke the page; every applied package can be rolled back.
Which AI agents work with WordPress and Leitvia?
Any AI client that speaks MCP: Claude Code, Codex, Cursor, VS Code, claude.ai and ChatGPT. The skills work in every AI agent that reads Agent Skills, Gemini CLI and GitHub Copilot included.
Do I need to code to manage WordPress with an AI agent?
No. You create an AI agent user, paste one address into your client and write tasks in plain words. Reviewing happens in the Inbox of WordPress. Claude Code and Codex run in a terminal; claude.ai and ChatGPT do not need one.
Can the AI agent publish without me?
Only if you allow it. With the profile Standard, content and structure stay drafts and publishing waits for you. Fully autonomous lets an AI agent publish content, structure and design on its own; settings, the active token set and the global styles still wait in the Inbox.
Is this vibe coding for WordPress?
Yes, with guard rails. You describe the page in plain words and the AI agent builds it. It builds only from your patterns, tokens and abilities, not from code it writes itself, and every change is checked against WCAG 2.2 AA before it goes live.
What does it cost?
The theme Leitvia, Leitvia Studio with its MCP server and all 82 abilities, and the skills are free. Leitvia Pro adds blocks, kits and the views in the chat, see Pricing. The AI model is billed by its provider under your own plan.
Does it work on an existing site?
Yes. With the theme Leitvia active, the AI agent reads your pages, fills patterns and fixes findings. Pages built with WPBakery, Impreza or ACF move to blocks with Leitvia Pro Agency, as a change package you check first; see Move content from a page builder.



