Structured Data Testing Tool for Claude Code
Install a skill, validate any URL, fix issues directly in your code.
A single skill file gives Claude Code the ability to validate JSON-LD structured data on any URL. It checks values against schema.org and Google requirements, reports findings with fix suggestions, and can apply fixes directly in your codebase.
Install
Download and install with a single command:
curl -o ~/.claude/skills/structured-data-testing-tool/skill.md \
--create-dirs \
https://xoocode.com/skills/structured-data-testing-tool.mdOr download the file directly and save it to ~/.claude/skills/structured-data-testing-tool/skill.md.
The skill walks you through API key setup on first use. Or sign up at xoocode.com/signup beforehand.
Usage
Run it on any URL:
/structured-data-testing-tool https://example.com/product-pageThe skill fetches the page, validates all JSON-LD blocks, and reports findings:
Structured Data Validation: https://example.com/product-page
Found 2 blocks, 1 error, 2 warnings.
Block 1: Product (name: "Widget Pro")
Error: offers[0].priceCurrency
Current value: "dollars"
Issue: "dollars" is not a recognized ISO 4217 currency code
Suggestion: USD
Warning: brand
Missing property "brand" (recommended by Google for Product rich result)
Block 2: BreadcrumbList
No issues found.
API usage: 3 / 50 requests used this month.If you are in the codebase that generates this page, the skill offers to locate the source files and apply the fixes directly.
How it works
Install the skill
Run on any URL
Review findings
Fix in your codebase
What it validates
The skill validates JSON-LD values against schema.org and Google's structured data requirements. It checks:
- URL formats (absolute URLs, correct protocol)
- ISO 8601 dates and durations
- ISO 4217 currency codes
- Schema.org enum values and casing
- Number types (string vs numeric)
- Position indexing (1-based for BreadcrumbList)
- Required and recommended fields per Google's rich result spec
- @type validity against the schema.org hierarchy