The AI Website Toolkit

The prompts, tools and workflow I use to build WordPress sites with AI.

This is the workflow I actually use. It came out of rebuilding this site , a fifteen-year-old WordPress install with 555 episodes , as a block theme, with AI writing a lot of the code alongside me. Everything here is something that either saved me hours or cost me them.

>_ How to use this

Read part 6 first if you are in a hurry. The checklist is the part that stops you shipping something broken, and it makes more sense of the other four.

01 · The prompt library

The prompts below are the ones I reach for most. They are worded the way they are for a reason, and the notes explain why. A prompt that does not say what not to do usually gets you markup that breaks the editor.

>_ Dustin , fill this in

Drop your real prompts here, one per block below. Keep the note under each one: the “why it is worded this way” is the part people cannot get anywhere else.

Building a block-friendly section

[Your prompt here]

Why it is worded this way: [your note]

Restyling without new markup

[Your prompt here]

Why it is worded this way: [your note]

Writing a template file

[Your prompt here]

Why it is worded this way: [your note]

02 · Give it something to look at

The fastest way to get a section you like is not to describe it. It is to show it.

Use whatever AI tool you already like. The tool matters far less than what you hand it. A screenshot of a layout you admire, a rough sketch on paper, a quick mockup, anything visual beats three paragraphs of description, because you stop having to put the layout into words.

  • Find or make something that looks roughly right.
  • Screenshot it.
  • Ask for block markup that matches the screenshot, naming the blocks you want used.
  • Expect the first attempt to be rough. You are after a starting point, not a finished section.

>_ What this avoids

Describing a layout in prose is where most AI output goes wrong. “Three cards beside an intro” can mean six different things. A picture means one.

03 · Test before you commit

AI-written CSS is cheap to produce and expensive to review. So do not put it in your theme first. Put it where you can see it working and throw it away in one click.

  • Paste it into the Site Editor’s Styles → Additional CSS while you are looking at the page.
  • Keep the page open in a second tab at 390px wide. Most AI CSS is written for desktop only.
  • Once it is right, move it into your stylesheet or theme.json, so it is versioned with everything else.

Two things bit me on this rebuild that no amount of prompting would have caught, because they are WordPress behaviors rather than mistakes:

WordPress will silently override your spacing scale

A theme.json spacing scale in pixels looked correct in the file and came out in rem on the page. The default scale was winning. The fix is one line, and it is not the one you would guess:

"spacing": {
  "defaultSpacingSizes": false,
  "spacingSizes": [ ... ]
}

Setting spacingScale.steps to 0 , the obvious guess , does nothing.

Watch out for color names that collide with WordPress

I named a palette color border. WordPress generates has-border-color for it, which is also the class its border support uses. Every piece of text in that color got a literal box drawn around it. Renaming the color fixed it instantly.

>_ The general lesson

When AI-written styles do not apply, suspect specificity and name collisions before you suspect the CSS. Open devtools and look at which rule actually won. It is usually a core rule with one more class than yours.

04 · Local to live

Build on a local copy. Not a staging site, not the live one, but a real copy on your machine, where you can break things at three in the morning and nobody notices.

I use WordPress Studio. A site takes seconds to make, and every change is on disk, so it is all versioned in git with everything else.

  • Work on a branch, not on main. Fifteen years of content deserves a way back.
  • Commit at each milestone with a message that says why, not what. Future you is the audience.
  • Keep a backup of anything you bulk-change before you change it , see the checklist.
  • Deploy with whatever you already have. The deploy is not the interesting part.

>_ The one that surprised me

A block theme renders its templates before wp_enqueue_scripts runs, so plugins that set up their assets inside a shortcode can break in ways they never do on a classic theme. If a plugin works on your old theme and not the new one, that ordering is the first thing to check.

05 · Connect your live site

Everything so far happens on your machine. The part that saves the most time afterward is closing the loop on the live site, so that “change the headline on the services page” is something you can just say, instead of a trip through the dashboard.

You do that by connecting the site to your AI tool. For a self-hosted WordPress site the route is Jetpack: it links your site to WordPress.com, and the WordPress.com connector then lets your assistant read and change it. Your hosting does not move.

The four steps

  • In the site dashboard, go to Plugins → Add New, search for Jetpack, install and activate it.
  • Follow the prompts to connect the site to WordPress.com.
  • Open Jetpack → My Jetpack, find Connection, and choose Connect my account.
  • In your AI app, add the WordPress.com connector and authorize it with that same WordPress.com account.

Step 3 is the one people skip. Installing the plugin and connecting the site is not enough on its own. Your own dashboard user has to be linked to the WordPress.com account too, or the assistant sees nothing.

>_ The gotcha that costs an hour

Your site login and your WordPress.com login are two different accounts, and they can have different usernames. If you authorize the connector with the wrong WordPress.com account, the site simply does not appear in the list. It looks exactly like a broken connection, and reinstalling Jetpack will not fix it. Check which account you authorized with first.

Full instructions, including troubleshooting, are in the Jetpack getting started guide.

Two rules once it is connected

  • Never paste a password, an application password, or a token into a chat. All of the authentication happens in the browser, where it belongs.
  • Treat a connected live site like production, because it is. Ask for a plan before a bulk change, and keep a backup of anything you are about to rewrite in bulk.

>_ If you want the developer route instead

The MCP Adapter plugin exposes the WordPress Abilities API directly from your own site, with no WordPress.com in the middle. More setup, more control. Worth a look if you are self-hosting and comfortable with MCP.

06 · The ship-it checklist

Run this before AI-written code goes anywhere near a live site. It takes about twenty minutes and it has caught something every single time I have used it.

Does it still work in the editor?

  • Open the page in the block editor, not just the front end.
  • Look for “this block contains unexpected or invalid content”. AI loves to produce markup that renders fine and fails validation.
  • Save, reload, and check it survived.

Does it work at 390px?

  • Check for horizontal scroll. This is the most common failure by a wide margin.
  • Check anything in a flex row has somewhere sensible to wrap to.
  • Check tap targets are at least 44px.

Does it work without a mouse?

  • Tab through it. Can you reach everything, and can you see where you are?
  • Anything interactive needs a visible focus ring. AI almost never adds one.
  • Custom tabs, accordions and menus need real buttons and correct ARIA, not styled divs.

Is it actually accessible?

  • Body text at 4.5:1 contrast against its background.
  • Every meaningful image has alt text , and if one image is reused across many posts, do not describe one of them in the alt.
  • Headings in order, one h1 per page.

Is anything quietly broken?

  • Open the console. Zero errors on the front end.
  • Check the pages you did not touch, especially a search result and a 404.
  • Look at the oldest content you have. It is where the shortcodes from retired plugins are hiding.

>_ Why that last one matters

Switching this site to a block theme silently broke a shortcode the old theme defined, which was being used on 236 episodes. Nothing errored. The pages just quietly showed [ebook] in the middle of the show notes. Always check the old stuff.


That is the whole thing. If you build something with it, or you get stuck, reply to any episode email , it comes straight to me.

Dustin