/aeo-toolkit:aeo-structured-data-validationfrom aeo-toolkit
Validates structured data (JSON-LD, Microdata, RDFa) on web pages, detecting invalid JSON, missing required properties, duplicate blocks from plugins, and colliding @id values. Use when debugging schema markup errors or Rich Results Test failures.
Ships in aeo-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Two audit rules, two different questions: is there any structured data at all, and is what exists well formed enough to be used. Most "invalid" results come from a handful of mechanical causes (a stray comma, two plugins, an entity in a string) and are quick to fix once you know where the block comes from.
It matters when markup exists but is not being parsed, or when several sources emit overlapping markup. Broken markup is ignored, which is worse than none because the page looks covered.
Passing the audit is a low bar. The audit checks a small set of required properties on a short list of types. A page can pass every structured-data rule and still contain markup that does not match the visible content, which Google's guidelines forbid and which no validator detects. Valid is not the same as true.
Do not chase warnings for their own sake. Google says fewer, complete and accurate recommended properties beat many badly formed ones. Missing recommended properties are not errors.
Rich result eligibility is a different question. Several Google rich result types have been
deprecated (see aeo-faq-qa-schema), so a clean Rich Results Test may show no eligible
features even for perfect markup. Do not read "no rich results detected" as a markup bug.
| Rule | Passes when |
|---|---|
tech.structured-data-present | At least one typed structured-data item was detected across the crawled pages (JSON-LD, Microdata or RDFa all count). A JSON-LD block that fails to parse does not count. |
tech.structured-data-valid | No detected item is marked invalid. With zero items it passes ("nothing to validate"). |
How the audit defines the words, from packages/schema-validator:
Present means at least one typed node was extracted. JSON-LD in
<script type="application/ld+json">, @graph members and top-level arrays are each
flattened into items. A node with no @type produces no item.
A JSON-LD block that does not parse is counted as one invalid item. It makes valid
fail, with the warning "JSON-LD script contains invalid JSON and was skipped", and it does not
count toward present. A site with only broken markup fails both.
Valid means every top-level item satisfies the required properties the validator defines for its type:
| Type | Required by the toolkit |
|---|---|
Organization | name |
Person | name |
Article, NewsArticle, BlogPosting | headline |
BreadcrumbList | itemListElement |
Product | name |
Review | reviewRating |
LocalBusiness | name, address (a plain string address warns) |
FAQPage | mainEntity of Question items with acceptedAnswer |
QAPage | mainEntity Question with acceptedAnswer or suggestedAnswer |
HowTo | step |
Any other type is treated as valid. TechArticle, WebSite, WebPage, Event,
Recipe, VideoObject and every other type pass without checks. "Valid" here means "no
rule defined was broken", not "complete".
Only top-level items are validated. A Person nested inside author counts for presence
but is not itself checked for name.
Property names are matched case-insensitively, which is more lenient than schema.org and
Google. Headline passes the toolkit and can still be ignored elsewhere.
Several types an item declares are validated together; a ["Product","Review"] node must
satisfy both.
The toolkit's required lists are its own and differ from Google's. Google's Article
documentation, for example, lists no required properties, while the toolkit requires
headline. Both are right for their purpose; when they disagree, satisfy both.
What the audit does not detect: duplicate blocks, @id collisions, markup that
contradicts the page, @id references that point nowhere, wrong value types, and any
Organization disagreement except through aeo.entity-identity-consistent.
With the MCP server: analyze_website_aeo and read both rules plus the structured-data detail
on the failing page.
Without it, the validator is a library (there is no CLI). Install it in a scratch directory and run it over saved HTML:
curl -s https://example.com/page -o page.html
npm install @advance-labs/schema-validator
node --input-type=module -e "
import { analyzeStructuredData } from '@advance-labs/schema-validator';
import { readFileSync } from 'node:fs';
const r = analyzeStructuredData(readFileSync('page.html', 'utf8'), 'https://example.com/page');
console.log({ total: r.totalItems, invalid: r.invalidCount, types: r.typesPresent });
for (const i of r.items) console.log(i.format, i.type || '(unparsed)', i.valid ? 'ok' : 'INVALID', i.missingRequired, i.warnings);"
An (unparsed) item means invalid JSON; look at that block by hand. Fetch the page the way a
crawler does (no JavaScript), because the audit sees the served HTML; if the markup is only
injected client-side, present fails here even though Google's renderer might see it
(see aeo-server-rendering).
External validators, for a second opinion:
gsc_url_inspect if the aeo-toolkit server is connected).| What you see | Cause to check first |
|---|---|
(unparsed) item, "invalid JSON" | Trailing comma, comment, single quotes, unescaped quote or newline inside a string, smart quotes, template placeholder left in |
Item invalid, missingRequired lists a prop | The property is absent or an empty string/array; often a template that outputs "" when a field is blank |
| Same type appears twice with different values | Two emitters (SEO plugin + theme + page builder); pick one |
Organization @id/url differ across pages or hosts | aeo-organization-entity |
Two different nodes share one @id | Copy-pasted block, or an id built from a constant instead of the entity |
| Valid in toolkit, error in Google | Google requires more for that feature, or the feature is deprecated |
| Present only after JavaScript runs | Server-render it |
| Markup describes content not on the page | Remove or fix. This is a guideline violation, not a lint error |
Fixes, by cause:
JSON.parse), fix the
reported position. Generate JSON-LD with JSON.stringify (or the language's encoder) from an
object; do not build it by string concatenation.&, " and
' appear literally in the strings, and \" is the only way to include a quote. Write
the real character. Escape < as < when the content is user-controlled, so a
</script> in a string cannot break out of the tag.ld+json; note which are inside the theme, which carry plugin signatures such as
yoast-schema-graph). Keep one emitter per entity type. Disable the others rather than
hand-merging. If the nodes are identical, duplication is harmless but wasteful; if they
differ, it is the defect.@id collisions. @id identifies a node, and Google's guidelines use @id to link
related items. Two different things sharing an @id (for example the WebPage and the
Organization both using https://example.com/) are ambiguous. Use distinct fragments:
/#organization, /#website, /page#webpage, /page#article. A given @id should mean the
same entity wherever it appears, and different entities should never share one.url/image as absolute URLs, numbers as
numbers when a number is expected, sameAs as an array of URL strings.@graph per page with stable @ids beats a pile of
disconnected blobs. See aeo-organization-entity and aeo-article-author-schema for the
node shapes.Stack notes: references/nextjs.md, references/wordpress.md. Plain HTML and Astro have
no stack-specific causes beyond the above; see the recipes in the other schema skills.
analyze_website_aeo or the validator script on each page type (home, article,
product, FAQ). tech.structured-data-present and tech.structured-data-valid should
pass, and no item should be (unparsed).curl -s URL | grep -c 'application/ld+json'. It should equal the number
you intend.@id and url generated from the request host publish preview
domains.aeo-faq-qa-schema.@id in JSON-LD): https://schema.org/docs/datamodel.html (verified 2026-11-13)packages/schema-validator/src/{validation,json-ld,analyze}.ts, packages/scoring/src/technical-seo-rules.ts (read 2026-11-13)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
25 skills in this plugin
/aeoEntry point for making a website show up and get cited in AI answers (ChatGPT, Claude, Perplexity, Gemini, Google AI Overviews, Copilot). Use when someone asks to "do AEO" on a site, improve AI search visibility, get recommended by ChatGPT, audit a site for answer engines, or fix a list of AEO audit findings, and it is not yet clear which specific fix applies. Runs or reads an audit, groups the failures, orders them by impact, and hands each group to the skill that owns it. Uses the aeo-research MCP server if connected; works without it./aeo-ai-crawler-accessCheck and fix whether AI crawlers can reach a site, and decide which ones to allow. Use when someone asks "why isn't ChatGPT or Perplexity citing my site", "should I block GPTBot", "allow AI crawlers", "AI bots blocked", "robots.txt for AI", "Cloudflare is blocking AI bots", or when the audit fails aeo.ai-bots-allowed or tech.robots-present. Covers training bots vs search and user-fetch bots, robots.txt, and CDN/WAF blocking that overrides robots.txt. Uses the aeo-research MCP server if connected; works without it./aeo-ai-referral-analyticsMeasure traffic that AI assistants send to a site, using Google Analytics 4. Use when someone asks "how much traffic comes from ChatGPT/Perplexity/Claude", "are AI answers sending us visitors", "set up an AI traffic channel in GA4", "which pages do AI assistants send people to", or "is our AEO work driving visits". Covers the GA4 query, a reusable referrer regex, landing pages, and why the number is always an undercount. Requires the aeo-toolkit MCP server, signed in to an AEO Toolkit account with Google connected.Other plugins' skills for the same job
npx claudepluginhub advance-labs/aeo-toolkit --plugin aeo-toolkit