schema-markup-validation
FreeNo executable scriptsNot checkedValidate the JSON-LD structured data on WordPress pages against the official schema.org vocabulary (from the schemaorg/schemaorg GitHub release files) and…
by lightspeedwp★ 20 GitHub starsAbout this skill
Schema Markup Validation
Fetch each page, extract every <script type="application/ld+json"> block,
and check it against the schema.org vocabulary and Google's rich-result
rules. The check is read-only.
When to use this skill
- A full audit, after
schema-test-urlshas produced a URL list. - A spot check of named pages ("check the specials again", "test the tour page").
- Before and after a schema change, to compare runs.
Procedure
1. Gather the facts
- The URLs, or the URL file from
schema-test-urls. - Whether the user wants a particular schema.org release (default: the latest
release in
schemaorg/schemaorg). - For offers and events: whether "today" should be a different date, for example to test what happens after a special ends.
2. Run the check
In a clone of lightspeedwp/.github (Node.js 20+):
node agents/wp-schema-audit-agent/lib/schema-tool.cjs validate --urls-file urls.txt
node agents/wp-schema-audit-agent/lib/schema-tool.cjs validate <url> <url> --details
audit <site-url> runs discovery and validation together, and labels each
page with its kind (for example "Tours: single item") in the output.
| Option | Use |
|---|---|
--details |
List every finding per page, with the path to the node. |
--json |
Machine-readable report, to save or compare between runs. |
--vocab-version 30.1 |
Check against a specific schema.org release. |
--vocab <file> |
Use a local vocabulary file; no network needed. |
--today 2026-12-01 |
Treat this date as today for expired-offer checks. |
--format report |
Plain-English Markdown report for a client (see schema-audit-report). |
--format csv |
One row per finding, for a spreadsheet. |
--out <file>, --csv <file> |
Write the report, and a CSV alongside it, to files (never replaced without --force). |
The first run downloads the release file
(data/releases/<version>/schemaorg-all-https.jsonld) and caches it in
~/.cache/lightspeedwp/schemaorg/. Exit code 0 means no errors or
warnings, 1 findings to review, 2 a tool error.
3. What is checked
| Check | Severity | Meaning |
|---|---|---|
unknown-type, unknown-property |
error | Not a schema.org term; usually a typo or a made-up name. |
invalid-json, http-status, fetch-failed |
error | The block or page could not be read. |
property-domain |
warn | The property is not defined for this type (for example additionalProperty on a Review). |
property-range |
warn | The value is the wrong type (for example a LodgingBusiness as an Offer's itemOffered). |
enum-value |
warn | Not a member of the enumeration (for example a misspelt availability). |
superseded-*, retired-* |
warn | The term has been replaced or retired. |
unresolved-reference |
warn | {"@id": …} points to a node no block on the page defines. |
duplicate-id |
warn | Two blocks define the same @id with different types, usually two plugins. |
rich-result-required |
warn | Google needs this property to show a rich result (for example a Review's itemReviewed). |
expired-offer |
warn | The offer ended but still says it is available. |
date-order, date-format, empty-value |
warn | Reversed date ranges, non-ISO dates, empty strings or lists. |
redirected |
warn | The URL redirects; crawlers see the destination's schema. |
no-structured-data |
warn | The page has no JSON-LD at all. |
pending-* |
info | Valid, but still in schema.org's pending section; Google may ignore it. |
rich-result-recommended, address-text, text-for-thing, html-entity |
info | Improvements, no |
Install schema-markup-validation in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the schema-markup-validation skill do?
Validate the JSON-LD structured data on WordPress pages against the official schema.org vocabulary (from the schemaorg/schemaorg GitHub release files) and Google's rich-result requirements. Use to audit a site's schema, spot-check a few pages after a change, or re-test one post type. Reports unknown terms, wrong property placement, missing required properties, expired offers, redirects and broken references, without changing the site.
How do I install the schema-markup-validation skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the schema-markup-validation skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic