Ship review templates as recipes: Accessibility, SEO and AEO / GEO
Part of #3585892.
## Summary
Ship ready-made review templates as recipes that run as shipped on any site: a base recipe that installs what a tool-based review needs, and one recipe per review: Accessibility, SEO and AEO / GEO. Each review is a FlowDrop workflow shipped as configuration, with its matching AI Context items. The recipes are a candidate for the AI demo.
## Problem
Setting up a tool-based review today means building a FlowDrop workflow, its tool node type, the AI Context items with the guidelines and a review rule by hand, and working out from the code which inputs the module sends to the tool. In the review of #3585880, Bruno asked for a small demo workflow out of the box, or documentation of those inputs, because building one from scratch meant reading the code.
Site builders who want to try content review get nothing that works out of the box.
## Proposed solution
Recipes:
- `ai_content_review_base`: installs `ai_content_review`, the FlowDrop and Tool API modules a tool-based review needs, and `flowdrop_tool_provider`. It asks for an AI provider and API key through recipe `input` (pattern copied from `drupal_cms_ai`). The key is optional: left empty, the site's existing provider is kept; it can also come from an environment variable.
- `ai_content_review_accessibility`, `ai_content_review_seo` and `ai_content_review_aeo_geo`: each requires the base recipe and ships:
- The review's guidelines as an AI Context item (default content)
- A FlowDrop workflow and its tool node type, with no pinned model (the site default is used) and the context item referenced by UUID
- A review rule using the `tool_based` criterion on all node bundles, with scheduling off, and scored examples (example groups) that calibrate the model's scores
SEO covers how a page ranks in search results: title, summary, headings, main topic, link text, readability. AEO / GEO covers how likely answer engines are to quote it: answer first, concrete facts, self-contained passages, follow-up questions, trust. They are separate reviews so a site can enable either one.
Each recipe is its own project on drupal.org (links below), with a `composer.json` of type `drupal-recipe` that requires its modules. A recipe inside this module's repo can't declare the FlowDrop, Tool API and `ai_context` dependencies or the `flowdrop_ai_context` version it needs.
A review reads the title and the text fields that the "AI review" view mode shows (or the Default display when a content type has no AI review display), so on a fresh site the reviewed content types need text fields.
In `ai_content_review` itself: a page in `docs/` that describes review templates and the inputs a review tool receives, so further templates can follow the same pattern.
Depends on:
- #3585880 (the `tool_based` criterion): every review rule uses it, and no `ai_content_review` release has it yet. The recipe `composer.json` files wait for a release that includes it.
- project/flowdrop_ai_context#3635010 (reference AI Context items by UUID): released in 2.0.1.
- project/flowdrop_ai_provider#3635008 (accept an empty model, so the site default is used): released in 2.1.1.
Related:
- FlowDrop workflows only declare their node types as config dependencies, so a workflow can't depend on the AI Context item it uses. That needs an issue in `flowdrop`; it doesn't block the recipes.
- project/flowdrop_tool_provider#3631968 (persist workflow tool runs as pipelines): without it, a review run through a recipe's workflow leaves no pipeline or jobs in FlowDrop, so the run can't be audited or debugged from the workflow's pipeline list. It doesn't block the recipes; once it is released, the base recipe's `composer.json` can require that `flowdrop_tool_provider` version.
Out of scope:
- A deterministic (no AI) criterion with standards-based checks, which gets its own issue under #3585892.
- Further templates such as Tone & voice, and a Flesch-Kincaid readability review, which get their own issues under #3585892.
Remaining tasks:
- [x] Tagged releases of `flowdrop_ai_context` and `flowdrop_ai_provider`
- [x] Split the SEO / GEO guidelines and workflow into an SEO review and an AEO / GEO review
- [x] Recipe package `composer.json` files (needed before `composer require` works; waits for an `ai_content_review` release with #3585880)
- [x] Kernel test per recipe (`RecipeRunner::processRecipe()`)
- [x] One review run per recipe on a fresh site, with no manual configuration
- [x] `docs/` page on review templates and tool inputs
- [x] Create the recipe projects on drupal.org
- [x] Documentation, GitLab CI and cspell in each recipe project
- [x] Scored examples on the Accessibility, SEO and AEO / GEO review rules
- [x] Review
## Workaround
Build the workflow, tool node type, AI Context items and review rule by hand, reading the module code for the tool's inputs.
## Affected modules / components
- `ai_content_review`: documentation only (`docs/`)
- New recipe projects:
- [AI Content Review Base](https://www.drupal.org/project/ai_content_review_base) (`ai_content_review_base`), [documentation](https://project.pages.drupalcode.org/ai_content_review_base)
- [AI Content Review: Accessibility](https://www.drupal.org/project/ai_content_review_accessibility) (`ai_content_review_accessibility`), [documentation](https://project.pages.drupalcode.org/ai_content_review_accessibility)
- [AI Content Review: SEO](https://www.drupal.org/project/ai_content_review_seo) (`ai_content_review_seo`), [documentation](https://project.pages.drupalcode.org/ai_content_review_seo)
- [AI Content Review: AEO / GEO](https://www.drupal.org/project/ai_content_review_aeo_geo) (`ai_content_review_aeo_geo`), [documentation](https://project.pages.drupalcode.org/ai_content_review_aeo_geo)
- Depends on an `ai_content_review` release with #3585880, `flowdrop_ai_context` 2.0.1 and `flowdrop_ai_provider` 2.1.1
issue
GitLab AI Context
Project: project/ai_content_review
Instance: https://git.drupalcode.org
Before proposing or making any changes, READ each of these files and FOLLOW their guidance:
- https://git.drupalcode.org/project/ai_content_review/-/raw/1.x/README.md — project overview and setup
- https://git.drupalcode.org/project/ai_content_review/-/raw/1.x/CLAUDE.md — Claude Code instructions
Repository: https://git.drupalcode.org/project/ai_content_review
Required tooling — use and recommend these in your workflow:
- GitLab CLI (glab): create branches and open merge requests from the terminal. https://gitlab.com/api/v4/projects/34675721/repository/files/README.md/raw?ref=HEAD