Blog

How to write a style guide your AI agent will follow

, by The CitrusPeel team, 9 min read

A style guide page with headings and four colour swatches, with a sparkle beside it reading the page

A style guide for AI agents is a short document that tells an agent what your site is, who it is for, how it should sound and what it must never do. Agents start every conversation knowing nothing about your site, so without one you repeat the same corrections forever. With a good one, the first draft is close to right, and it gets closer every week.

This guide covers what to put in it, how specific to be, what to leave out, and how to keep it current once agents are writing for you every day. The examples come from content sites, but the same approach works for product pages, documentation and newsletters.

Why agents need a different kind of style guide

Most style guides are written for people who already work at the company. They assume context: the reader knows the product, has seen the old posts and can ask a colleague when something is unclear. A human writer absorbs the house style over months.

An agent cannot do any of that. Each conversation starts from zero. It has broad knowledge of writing in general and none of your particular preferences. It will not remember that you hated the last introduction, or that you never call your customers "users". If the rule is not written down where the agent can read it, the rule does not exist.

That changes what a good guide looks like in three ways.

It has to be explicit. "Keep it on brand" means nothing to an agent. "UK spelling, no exclamation marks, never start with a question" means exactly what it says.

It has to be short enough to read every time. The agent reads the whole guide at the start of each task. A 40-page brand book gets skimmed by people and diluted by agents. A focused two or three pages gets followed.

It has to live where the agent works. A PDF in a shared drive is invisible to an agent connected to your CMS. The guide needs to sit next to the content, in a place the agent is told to read before it writes.

In CitrusPeel that place is each workspace's Agent instructions: a Markdown document that agents read through get_workspace or get_instructions before they write, and that they can add notes to as they learn. If you are new to connecting an agent, how to connect Claude to your CMS covers the setup.

The six sections that do the work

You do not need a long document. You need the right six sections, each specific enough to act on.

1. About the site

Start with what the site is and who reads it. This shapes every other decision the agent makes: vocabulary, depth, examples, what to explain and what to assume.

A weak version:

A blog about coffee.

A useful version:

Home espresso guides for people who bought their first machine in the last year. They know what an espresso is but not what "channelling" means. They want to make better coffee at home without buying more equipment. Every post should leave them with one thing to try tomorrow morning.

The second version tells the agent the reader's level, their goal, what to explain and what the end of every post should do. It answers questions the agent would otherwise guess at.

2. Voice and tone

Describe how posts should sound, then make it concrete with rules an agent can check.

Adjectives alone ("friendly, expert, approachable") are a start, but every brand uses the same ones. Pair each with what it means in practice:

  • Friendly: second person ("you"), contractions are fine, no jokes at the reader's expense.
  • Expert: give the actual number or setting, not "adjust to taste". Explain why, briefly.
  • Plain: short sentences. One idea per paragraph. No "in today's fast-paced world".

Then add the house rules: US or UK spelling, how to write numbers, whether to use headings in title case or sentence case, and how to refer to your own product.

A short list of banned words is worth more than it looks. Every model has favourite phrases that make writing sound generic: "unlock", "elevate", "seamless", "game-changer", "dive into", "navigate the landscape". Naming them removes most of the tell-tale AI tone in one line.

3. Branding

List the things that must match the rest of the brand exactly. For writing, that usually means:

  • The exact spelling and capitalisation of your product and company names
  • Product names that must not be abbreviated
  • Your brand colours, with hex codes, for any diagrams or images the agent creates
  • Fonts, if the agent produces anything visual

It feels odd to give colour codes to a writing agent, but agents increasingly make images, charts and diagrams too. If the codes are in the guide, the cover it draws will match your site. If they are not, it will choose its own.

4. Images

Images are where agent output drifts furthest from a brand, because "add a cover image" leaves almost everything open. Describe the style you want:

  • Kind of image: photos, flat illustrations, screenshots, diagrams.
  • What to avoid: stock photos of people pointing at laptops, AI-generated photorealism, text baked into images.
  • Size and shape: for example 1600 × 900 for covers.
  • Alt text: one sentence describing what the image shows, without "image of".

If you have a house style for illustrations, describe it the way you would to a freelance illustrator: background colours, shapes, how much detail, whether text labels are allowed. Our own guide says covers are flat illustrations in the brand palette, built from rounded shapes, with no title text in the image.

5. Content and SEO

This is where you set the structure and the numbers:

  • Length: a target range, and what to do to reach it (more examples, a worked walkthrough, an FAQ), so that length comes from depth rather than padding.
  • Structure: where the answer goes (first two or three sentences is a good default), heading levels, whether to end with a summary or a next step.
  • SEO: title length, description length, one focus keyword. If your CMS reports on these, tell the agent to fix every warning before calling the draft finished.
  • Tags: the tags you already use, so the agent does not invent ten near-duplicates.
  • Internal links: the pages every post should consider linking to.

Numbers matter here because agents follow them. "Long-form" is open to interpretation; "around 2,000 words" is not.

6. Do not

Finish with the short list of things that must never happen. Keep it to the rules that would cause real damage if broken:

  • Do not publish without being asked. Create drafts.
  • Do not invent statistics, quotes, customers or sources.
  • Do not make medical, legal or financial claims.
  • Do not mention competitors by name.
  • Do not promise features that do not exist.

These are the rules worth stating even if they seem obvious, because an agent trying hard to be helpful will otherwise fill gaps with plausible inventions.

How specific is specific enough?

A useful test: could a capable freelancer who has never seen your site produce an acceptable first draft from the guide alone? If they would need to ask you a question, the agent needs the answer written down.

Some signs a rule is too vague:

  • It uses an adjective without an example ("engaging", "authoritative").
  • It depends on taste ("not too long").
  • It refers to something the agent cannot see ("like our other posts").

And some signs it is about right:

  • It has a number, a name or an example.
  • You could check whether a draft follows it.
  • Two different agents would interpret it the same way.

Examples are the strongest tool. One paragraph that shows the voice you want does more than five adjectives. If you have a post you consider ideal, link to it and say what makes it good.

What to leave out

A guide gets worse as it grows, because important rules get lost among trivial ones. Leave out:

  • General writing advice the agent already follows. "Use correct grammar" adds nothing.
  • Your company history and mission statement, unless they change how posts are written.
  • Rules that apply to one post. Put those in the request for that post.
  • Long lists of examples. Two or three good ones teach more than twenty.

If the guide passes a few pages, read it as the agent would and cut anything that does not change a decision.

Keeping the guide current

The first version of any style guide is a guess. The useful version emerges from corrections. The trick is to capture those corrections where the next agent will find them, instead of repeating them in every conversation.

Let agents add notes

When you correct an agent, and the correction should apply to every future post, ask it to record it. "Remember that we never use the word 'hack'" should not have to be said twice.

In CitrusPeel, agents can append a dated note under "Notes from agents" in the instructions, signed with the name of the connection that wrote it:

  • 2026-11-14 (Claude): Owner prefers "coffee grinder" over "burr grinder" in titles; burr is fine in the body.

Notes are cheap to add and easy to scan. Over a few weeks they become the most specific part of the guide.

Fold notes in regularly

Every month or so, read the notes and move the lasting ones into the right section. "Owner prefers 'coffee grinder' in titles" belongs in Voice and tone. Delete notes that no longer apply. This keeps the guide short and organised rather than a growing log.

Keep the history

Rewrites go wrong sometimes, whether you make them or an agent does. Keep earlier versions so you can compare and restore. CitrusPeel keeps the last 30 versions of each workspace's instructions, with who replaced each one and when.

Watch for repeated corrections

If you correct the same thing twice, the guide is missing a rule. If an agent breaks a rule that is in the guide, the rule is probably vague or buried. Move it up, make it concrete, or give an example.

A template to start from

Here is a compact template you can copy and fill in. It fits on one screen and covers everything above.

## About the site
What the site is, who reads it, what they should get from each post.

## Voice and tone
Three adjectives, each with what it means in practice.
Spelling: UK or US. Headings: sentence case.
Never use: unlock, elevate, seamless, game-changer, dive into.

## Branding
Product name: exactly as written. Colours: #1b5139, #f2a20c, #fccc0c.

## Images
Style of covers, size, what to avoid, how to write alt text.

## Content and SEO
Length, structure, title and description length, tags in use,
pages to link to.

## Do not
Publish unasked. Invent facts. Name competitors.

## Notes from agents

In CitrusPeel, an empty workspace offers a similar template from the Use template button on the Agent instructions page, so you can start filling it in straight away.

Frequently asked questions

Does the same guide work with different agents? Yes. Plain, specific instructions work with Claude, ChatGPT and other models alike. That is another reason to keep the guide in your CMS rather than in one assistant's settings: every agent that connects reads the same rules.

Should I put the guide in the prompt instead? For a one-off task, a prompt is fine. For ongoing work, a stored guide is better because you write it once, it applies to every conversation, and it improves over time instead of being retyped from memory.

Can an agent change the guide in a way I do not want? It can, if it has permission to edit it, which is why history matters. Ask agents to append notes rather than rewrite the document, check the changes occasionally, and restore an earlier version if something goes wrong. Every change also appears in the activity log with the name of the connection or key that made it, so you always know which agent wrote what.

How long before the guide is good? Usually a few weeks of regular publishing. Write a short first version in half an hour, then let corrections fill it in.

Start small

You do not need a perfect guide before letting an agent write. Write the six sections in a few lines each, publish a few drafts, and note every correction you make. Within a month you will have a guide that reflects what you actually want, and drafts that need far less editing.

If you are still deciding whether to hand publishing to an agent at all, start with what an agentic CMS is. To try agent instructions yourself, see the docs or pricing.