gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Add experimental Content Guidelines for site-wide editorial rules

Open aagam-shah opened this issue 10 months ago • 18 comments

What problem does this address?

As AI-powered content tools become more common in WordPress, site owners have no standardized way to define their editorial identity, content rules, and brand voice in a machine-readable format.

Today, if a site owner wants to maintain consistency across multiple content creators or AI tools, they must rely on external documents, tribal knowledge, or ad hoc solutions. There is no structured, in-WordPress system for:

  • Documenting brand voice, tone, and copy rules
  • Defining per-block content guidelines (e.g., heading structure, paragraph length, image alt text rules)
  • Providing a single source of truth that both humans and AI tools can reference
  • Importing/exporting editorial guidelines between sites

While theme.json defines how a site looks, there is no equivalent for how a site sounds and how content should be created. This gap becomes more significant as AI writing assistants integrate with WordPress and need to respect site-specific editorial standards.

What is your proposed solution?

Introduce Content Guidelines as an experimental feature in Gutenberg — a persistent, structured system for encoding editorial rules, brand voice, and content standards into WordPress.

The idea is to provide a settings-based UI where site owners can define guidelines across customizable categories (e.g., copy/tone, images, site context, block-specific rules). These guidelines would be stored as a custom post type with revision history, exposed via REST API, and extensible through PHP filters — allowing any plugin (SEO, AI, editorial workflow) to read and build on them.

Think of it as the content counterpart to Global Styles: where Global Styles standardize a site's visual identity, Content Guidelines standardize its editorial identity.

Key capabilities

  • Guideline categories: Copy, images, site context, block-specific rules, and a catch-all for custom needs
  • Block-specific rules: Per-block-type guidelines (e.g., rules for core/heading, core/paragraph, core/image)
  • Revision history: Built on CPT revisions for audit and rollback
  • Import/Export: JSON-based portability between sites
  • Experimental: Gated behind Gutenberg experiment flag, no impact when disabled

Related

  • Technical Discussion - https://github.com/WordPress/gutenberg/issues/75258
  • Design Discussion - https://github.com/WordPress/gutenberg/issues/75260
  • Draft exploration PR: #74789
  • MVP exploration - https://github.com/WordPress/gutenberg/pull/75164

aagam-shah avatar Feb 03 '26 10:02 aagam-shah

Thanks for the proposal, @aagam-shah!

Was there any previous discussion or official proposal for this feature? I'm also not sure if the Gutenberg project is the right place for this. Is it more suitable as a feature or a canonical plugin?

Mamaduka avatar Feb 03 '26 13:02 Mamaduka

@Mamaduka and others; https://make.wordpress.org/ai/2026/02/04/content-guidelines-a-gutenberg-experiment/

Aagam beat me to it, but this is the associated make Core AI post with additional context on what we're thinking here :) We feel that it does belong in Gutenberg due to block-specific guidelines. We are expecting the PR to iterate a bit to use more modern WordPress components and WP build similar to the fonts implementation that recently shipped in Gutenberg.

Jameswlepage avatar Feb 04 '26 01:02 Jameswlepage

We feel that it does belong in Gutenberg due to block-specific guidelines.

From a quick look at the linked PRs, I see what you mean, and from the coding style and use of Gutenberg components, I can see why it's being proposed to be added to Gutenberg.

Just to double check:

Draft exploration PR: https://github.com/WordPress/gutenberg/pull/74789 MVP exploration - https://github.com/WordPress/gutenberg/pull/75164

What's the status of these? Is the MVP exploration at a stage that it's being intended to be merged / landed? I'll take it for a spin and drop a few questions on it.

Was there any previous discussion or official proposal for this feature?

I'm not sure if this is what @Mamaduka was getting at in the above question, but something that makes reviewing these changes challenging is that they appear to have arrived somewhat fully formed with lots and lots decisions already made. That's not necessarily a bad thing, but the Gutenberg repo is both for the development of the plugin and the discussion / issues / and design surrounding features that are intended to land here.

What I mean by that is: is the idea to also continue to develop this in the Gutenberg repo? If so, I'd be keen to see tracking issues / more granular issues surrounding the design decisions / intentions for the overall feature and how it's been developed. That might make it easier for contributors to wrap their heads around and find a way to help the work progress.

I hope this comment reads with the positive intent I'm intending: It's always good to see new contributions to Gutenberg! But it can be challenging to review first-time contributions when they're of a sizable nature, as I'm used to seeing features in Gutenberg evolve from much smaller or simpler beginnings in iterative stages.

It might be worth including a video demo on the issue or PR to better describe some of the decisions made?

and others; https://make.wordpress.org/ai/2026/02/04/content-guidelines-a-gutenberg-experiment/

Thanks for sharing that widely, it very much helps!

andrewserong avatar Feb 04 '26 23:02 andrewserong

It might be worth including a video demo on the issue or PR to better describe some of the decisions made?

On this topic, I've just left a review comment on the MVP PR. I've asked a lot of questions there, many a bit more rhetorical, but I hope the questions capture that it isn't quite clear to me why the particular direction for the feature has been chosen. It's certainly a valid path, but it seems to me that there are many different ways this feature could be built.

My main question: rather than baking in a json schema, what if we leveraged all the native WP stuff that keeps things flexible: store text content as text content in the database (instead of a JSON blob), and use tags and categories for the categorisation? Or is it important for it to be hard-coded?

I'm also not sure if the Gutenberg project is the right place for this. Is it more suitable as a feature or a canonical plugin?

If any of these sorts of discussions are a blocker for the work, then a feature or canonical plugin could still be a viable path (i.e. using wp-build and Gutenberg packages, but not built as part of Gutenberg). If it is to be in Gutenberg, I'd recommend fleshing out either this issue or others with more discussion surrounding the how and whys, not just the what of the feature.


All that said, to be clear, I really like the idea of including editable content guidelines in core. To me it seems a natural feature to sit alongside the Privacy section in the admin. As a contributor, I'm just not quite sure how to determine if this is the right path. I'll just soft ping to @WordPress/gutenberg-design for visibility on this one, as it could possibly use some more eyes 🙂

andrewserong avatar Feb 05 '26 03:02 andrewserong

Thanks for the ping, Andrew. I have to confess that aspects of this are still novel to me, so I need to be careful in my feedback. Mostly it sounds like there are some technical questions that I believe you and other devs should take point on.

What's the main type of design-level feedback you're looking for? Is it the settings page layout? Or is it the actual content guidelines? My best guess which I share so you can validate or invalidate it, is that this is where you can provide instructions for how an LLM is supposed to build using blocks. I.e. "I never want to use the bottom margins, put a spacer between blocks instead", or "I prefer a columns block instead of Media & Text", and "Use sentence case for all titles". Or, "never for the love of all that is good put emoji in headings".

If it's the latter, I'd encourage making the inputs that store this portable, so we can move them around as the territory solidifies. But if I were to suggest a starting place, I'd put this inside the Site editor preferences modal, as a new tab called "Personalization". Not unlike how Lumo does it, except with fewer cat-jokes:

Image

jasmussen avatar Feb 05 '26 08:02 jasmussen

If it's the latter, I'd encourage making the inputs that store this portable, so we can move them around as the territory solidifies.

Good instinct @jasmussen. Not getting to literal to the portability comment but similar to the fonts screen, we're going to want to be able to present these settings in different locations via a modal.

But if I were to suggest a starting place, I'd put this inside the Site editor preferences modal, as a new tab called "Personalization". Not unlike how Lumo does it, except with fewer cat-jokes:

The reason we're going for settings here is that these guidelines are intended, not only for AI but also for humans and other plugins to reference.

fditrapani avatar Feb 05 '26 13:02 fditrapani

I do not have access to add Labels or create sub-issues, so I went ahead and created 2 issues for technical and design discussion. It would be great if someone with elevated access could add the necessary labels!

Please feel free to share your feedback on the respective issues.

aagam-shah avatar Feb 05 '26 18:02 aagam-shah

so I went ahead and created 2 issues for https://github.com/WordPress/gutenberg/issues/75258 and https://github.com/WordPress/gutenberg/issues/75260 discussion.

That's perfect, thanks so much @aagam-shah! I've added them as sub-issues to this one and tweaked the labels a little. Let's continue discussing over on the issues (I've flagged this one as the tracking issue).

andrewserong avatar Feb 05 '26 22:02 andrewserong

Coming from https://github.com/WordPress/gutenberg/issues/75258#issuecomment-3857255833, I thought I'd add a fly-by comment here to encourage the definition of a phased approach.

At a very high level, it could be something like:

  • Phase 1: Foundation. For example:
    • Schema definition
    • CPT Registration
    • REST API, including data layer utilities for sanitizing/storing/validating/returning the settings data
  • Phase 2: Core UI (can be done in parallel to start with). Would include the more complex Block Guidelines:
    • Screens, forms and associated components
    • Data fetching/state management

Each point could be further broken up in focussed areas. The point is that, given this is experimental, my instinct tells me we’ll get better signals/validation of the approach with reviewable slices.

ramonjd avatar Feb 06 '26 01:02 ramonjd

I think it's fine to get this as an experiment in Gutenberg to unblock the work, dogfood the wp/ui, and admin build screen, but with an eye towards moving it to the AI plugin around the 7.0 mark (when it's meant to be renamed from AI experiments to AI). It'd be a good example in gutenberg on how to build admin screens with the new componentry.

mtias avatar Feb 26 '26 00:02 mtias

Thanks for confirming Matías! I've created a [Feature] Content Guidelines label so that we can label all the issues and PRs associated with this feature, to help us keep track.

From the sounds of it, the first / highest priority PR to help land is this one, that proposes the backend API and addition of the experiment:

  • https://github.com/WordPress/gutenberg/pull/75164

andrewserong avatar Feb 26 '26 02:02 andrewserong

Update: I've closed out the following issues, now that the MVP of the feature has landed in the plugin and is guarded behind an experiment:

  • https://github.com/WordPress/gutenberg/issues/75258
  • https://github.com/WordPress/gutenberg/issues/75260

~For the follow-up issues that folks have opened, I've linked them to this issue as the parent / tracking issue.~

For the follow-up issues, they're linked to https://github.com/WordPress/gutenberg/issues/76384 as the parent issue for polishing the MVP of the feature.

Nice progress, everyone!

andrewserong avatar Mar 13 '26 03:03 andrewserong

Okay, I don't know where to comment on this whole thing, but I have some thoughts that will hopefully be helpful:

1.) Giving context on a post vs page vs product would be ideal. It should understand the different post types and allow me to define context for each and they need to be separate because if my AI bot is working on a blog post, I don't want to waste context by giving it information on how to manage pages or products. Marketing pages and blog posts often have different content strategies, language, and style.

2.) Context value should exist so that things that are useful and used are tracked. That way I can determine context that maybe should be removed from the Guidelines. This is hard to track with the singular blob piece that exists today. If there was allowance for multiple pieces of context, we could track what was used and what wasn't over time. That might give clarity into changes that need to be made or things that should be removed, or new context pieces that need to exist.

3.) Token budget isn't managed/helped by this. I need a way to figure out how much context might be taken up by what I put in here. If I put 5000 words into the Copy section, I need to be aware of that and understand how it might impact things. When I use a plugin to pull in this context, I'll need to measure how big each thing is, but would prefer that value to already be pre-measured so I can take my budget of say - 10,000 tokens, and have a way to build out the context needed to fit that total budget maximum.

mperalty avatar Mar 30 '26 19:03 mperalty

Token budget isn't managed/helped by this. I need a way to figure out how much context might be taken up by what I put in here. If I put 5000 words into the Copy section, I need to be aware of that and understand how it might impact things

I'll let @aagam-shah and others working more closely on this to answer fully, but I think could be good UX to display a live token estimate and cost indicator as users write their guidelines. Thanks for raising it.

Maybe it could be tied with the Connectors API somehow as I think some APIs (Anthropic at least) have dedicated endpoints that can return token counts without running inference.

Might be okay to ballpark it too so output, something like ~1 token ≈ 4 characters but that I doubt that would be suitable across all locales.

ramonjd avatar Apr 03 '26 00:04 ramonjd

Hi everyone, thanks for starting this great initiative!

@swissspidy suggested I chime in here to share our perspective. We work closely with small publishers, and during a recent agency "Garage Day", we explored how AI could better support editorial workflows natively in WordPress.

We vibecoded prototype called Content Strategist MVP, which perfectly aligns with the concept of capturing global context in the "Content Guidelines". In our tool, site owners can define their "editorial DNA": their specific niche, target audience, and benchmark/competitor URLs.

How Content Guidelines could lead to a Content Gap Analysis (and enable small publishers to reach a new level on their ai-powered content planning): In our long-term idea, Content Guidelines act as the necessary baseline. Only when WordPress natively understands who and what a site is writing for, can an AI make meaningful comparisons:

  • Cross-referencing with performance data: The AI compares the Guidelines (the goal) with data from tools like Google Analytics (the reality) to see which audience interests are not yet being served.
  • Cross-referencing with benchmarks: The AI uses the competitor URLs stored in the Guidelines to identify trending topics in that specific niche that are still missing on the user's site.

Without these Guidelines stored centrally in Core, AI tools lack the "Source of Truth" to even define what a "gap" is in the first place. That's why we see this experiment as the absolute perfect foundation for data-driven workflows!

Here is a quick video demonstrating our concept: https://github.com/user-attachments/assets/59ca7116-f327-49a5-b243-212bdb525634

And here's the small plugin if you want to play around with it: ai-content-strategist-experiment.zip

Looking forward to hearing about your thoughts on this 👍 😄

simea-simea avatar Apr 23 '26 08:04 simea-simea

As someone who has less than zero interest in having AI integrated into any of my websites (or client websites), and who also doesn't use Gutenberg, what is the benefit of adding this Knowledge CPT into core?

Building sites for clients, I've used used CPT's extensively and have never needed anything remotely akin to a "Knowledge" CPT, nor has a client requested anything remotely similar.

If we have AI disabled within our site, I would expect that this also disables this CPT. From my point of view, this sounds like it should remain as plugin territory only, and not something that should be forced upon everyone’s WordPress site. I can't see any instance where any of my clients would ever make use of this CPT, so it's yet another thing that I'd need to disable/remove to reduce Dashboard clutter.

As a developer, if we need a CPT for a certain content type, then we are well equipped to add Custom Post Types ourselves. Gutenberg shouldn't be requiring sites to have random CPTs for it to work. If there's some specific block that makes use of this type of content, then it should be only added through use of a plugin, and not something that is forced onto everyone by adding it into Core.

maddisondesigns avatar Jun 22 '26 11:06 maddisondesigns

I agree with @maddisondesigns' point. If a designer, developer, or client needs project-specific guidelines, creating a dedicated custom post type is often the most flexible and maintainable approach.

This could be delivered as a standalone community plugin or even as part of a tutorial or course that demonstrates how to build and use it. In practice, it would be especially valuable during website handovers, where clients receive documentation tailored to their site, or as internal documentation for teams responsible for maintaining and evolving an existing website.

miyanialkesh7 avatar Jul 11 '26 20:07 miyanialkesh7

Thanks everyone! The experimental Content Guidelines MVP landed in #75164, and both discussion sub-issues (#75258, #75260) are closed. I'm closing this tracking issue in favour of #76384 (post-MVP follow-ups) and #77230 (Guidelines built on Knowledge). Please add any further feedback, like the per-post-type context and token-budget ideas above, on those issues.

youknowriad avatar Oct 06 '26 06:10 youknowriad