- Home
- Skills
- E-commerce
- Product Schema (JSON-LD) Validator and Generator
Works with the AI Agents you already use
Product Schema (JSON-LD) Validator and Generator
by Saizul Amin
Validate and generate Google-compliant JSON-LD product schema for WooCommerce, Shopify, and headless stores.
$4
Product Schema (JSON-LD) Validator and Generator
Example session with this skill installed
Check the product structured data on my product page and tell me why Google isn't showing price and stars in search.
- Read your context and instructions
- Compiled the product schema json-ld
I ran the bundled script from the product-schema skill and reviewed its findings.
Demo data: this is the real, unedited output of the skill's script on the test fixture that ships with its source repo.
Script output
tests/fixtures/product-schema/bad.html: 3 JSON-LD block(s), 3 product(s), 14 error(s), 3 warning(s)
[ERROR] JSON-LD block 3 is not valid JSON: Expecting property name enclosed in double quotes (line 1)
[WARNING] Product 'leather wallet' is marked up 2 times; two plugins (theme + SEO plugin + reviews app) are probably both printing schema
[ERROR] Product #1 'Leather Wallet': missing image (required for merchant listings)
[ERROR] Product #1 'Leather Wallet' offer 1: price '$1,299.00' must be a number without currency symbols or thousands separators
[ERROR] Product #1 'Leather Wallet' offer 1: priceCurrency 'Tk' must be an ISO 4217 code such as USD or BDT
[WARNING] Product #1 'Leather Wallet' offer 1: write availability as the full URL https://schema.org/InStock
[WARNING] Product #1 'Leather Wallet' offer 1: priceValidUntil 2020-01-01 is in the past; Google may ignore the offer
[ERROR] Product #1 'Leather Wallet': ratingValue 9.2 is outside 1-5 (set bestRating/worstRating)
[ERROR] Product #1 'Leather Wallet': aggregateRating needs reviewCount or ratingCount
[ERROR] Product #1 'Leather Wallet': gtin13 '4006381333932' fails the GS1 check digit
[ERROR] Product #2 'Leather Wallet' offer 1: offer is missing price
[ERROR] Product #2 'Leather Wallet' offer 1: availability 'https://schema.org/Available' is not a schema.org ItemAvailability value
[ERROR] Product #2 'Leather Wallet' offer 1: itemCondition 'Mint' is not a schema.org OfferItemCondition
[ERROR] Product #2 'Leather Wallet' review 1: missing author
[ERROR] Product #2 'Leather Wallet' review 1: reviewRating.ratingValue must be a number
[ERROR] Product #3 'Variant Group' offer 1: lowPrice '1,000' must be a plain number
[ERROR] Product #3 'Variant Group' offer 1: AggregateOffer needs priceCurrency
(recommendations hidden; use --verbose)
Next steps
- Remove the duplicate Product markup so only one plugin outputs schema.
- Fix the invalid JSON-LD block and missing offer fields.
- Re-test in Google's Rich Results Test after deploying.
Connects securely to your tools. The creator never sees your data.
About this skill
Product pages often fail to show stars or prices in Google because of invisible formatting errors. This skill audits your store's HTML or JSON-LD to find "Missing field offers," invalid price formats, and conflicting markup from multiple SEO plugins.
What it does
- Validation scans saved HTML or JSON-LD to detect rich result errors that block Google snippets.
- Conflict detection identifies duplicate
Productblocks generated by competing plugins like Yoast, Rank Math, or WooCommerce core. - Normalization cleans messy input data, converting currency symbols and thousands separators into ISO-compliant numbers.
- Schema generation builds custom
Product,Offer, andAggregateRatingJSON-LD from raw product data or CSV exports. - GTIN verification stops invalid check digits from being published to Search Console.
How it works
- Audit the source by running the
validatecommand on a saved product page HTML or JSON file to surface warnings and errors. - Trace the source of the markup to determine which theme file or plugin is responsible for the output.
- Generate new markup using the
generatecommand, mapping fields from a Shopify/WooCommerce CSV or manual input. - Deploy and verify by proposing theme template changes or plugin setting adjustments and re-validating the final output.
Frameworks & tools
Built for Python 3.8+ environments. Supports schema remediation for WooCommerce, Shopify, Yoast SEO, Rank Math, and headless storefronts.
Why this beats prompting it yourself
Writing schema by hand often leads to invalid priceValidUntil dates or broken GTINs that pass basic syntax checks but fail Google's strict Merchant Listing requirements. This skill uses a logic-based validator to catch high-level errors like thousands-separator price bugs and duplicate @graph IDs that LLMs typically miss.
Use cases
- Fix "Invalid price format" errors in Google Search Console.
- Remove duplicate product schema caused by a theme and an SEO plugin both printing markup.
- Generate batch JSON-LD for a headless storefront using a CSV export.
- Verify that customer review counts and rating values are correctly mapped to
AggregateRating.
Known limitations
Does not support Organization, Breadcrumb, or FAQ markup. Will not generate incentivized or fake reviews to avoid Google manual actions. Requires a rendered HTML copy for JS-only stores.
Open source: saizul/ecommerce-store-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for E-commerce.
Does not handle non-product schema types. Requires Python 3.8+. Does not fix Merchant Center feed files. Cannot scrape JS-only storefronts without a pre-rendered HTML export.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3.8+