Schema markup validation

From lightspeedwp/.github · View interactive version

Schema markup validation is an AI agent skill from the GitHub repository lightspeedwp/.github. 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

How to use this skill

Skill file

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

produced a URL list.

page").

Procedure

1. Gather the facts

release in schemaorg/schemaorg).

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 CODE1). |

| --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, not faults. |

The page table also shows which plugin produced the JSON-LD (Yoast SEO,

Rank Math, All in One SEO or unattributed for anything else, such as a

custom plugin).

4. Hand over

Pass the report to CODE0

to turn it into fixes. For a quick spot check, summarise directly: what

changed since the last run, and what still fails.

Known false alarms

property; the tool accepts it.

item) is accepted; Google reads it as a reference.

Rules

telephone numbers) in the summary; say it is present.

the tool; tell the user to confirm eligibility with Google's Rich Results

Test (https://search.google.com/test/rich-results) for public URLs.


_Built by 🧱 LightSpeedWP with ☕, 🚀, and open-source spirit!_

Contributors

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.