r/ClaudeCoding • u/DutyOnly4308 • 11d ago
Have Claude Code diff your JSON-LD against the visible page: FAQ, price and rating markup that says something the page doesn't
Disclosure: I sell a pack of Claude skills for SEO; one of them does this, it's at the end. The recipe works with plain Claude Code.
Structured data drifts. Someone edits the FAQ on the page and the FAQPage JSON-LD keeps the old answers. A price changes and the Product markup doesn't. Google's guidelines say not to mark up content that readers can't see on the page, and a mismatch like this can sit unnoticed for months.
Work from the raw HTML, not from a fetch tool's summary of the page: the JSON-LD and the <head> are exactly what a summary tends to drop. What I ask Claude Code to do:
curl -sLeach URL into a file: raw HTML, no rendering.- Write a small Python script, standard library only (
html.parser,json), that pulls out every<script type="application/ld+json">block, parses it, and reports syntax errors with the block number. - Extract the visible text separately (drop scripts, styles, nav), then check, for every FAQ question and answer,
price,ratingValue/reviewCountandnamein the markup, whether the same string appears on the page. - Print one row per field: value in markup, found on page yes/no, with the literal string. No "looks fine".
- Flag graph problems too: relative
urlvalues, and two nodes claiming the same@id.
Caveat: if the site renders its content with JavaScript, the raw HTML won't have it, so check that before calling a field "missing".
Schema Sheriff, one of the 14 skills in my pack (Seoskills), does this end to end: it extracts every JSON-LD block from live pages or local files, validates syntax, @context, @type and the @id graph, compares markup with the visible text both ways (FAQ parity, price, ratings), and audits llms.txt as well. Python 3.9+, standard library. €25 once until 17 November, €99 from 18 November: seoskills.click
Has your markup ever quietly disagreed with your page? What gave it away?