product
它能做什么
这个技能检查商品页面的 Product schema 标记,并添加或补全价格、库存和评分信息。它面向希望商品在搜索中显示更丰富细节的店主。
适用场景
- ✓你请智能体为网上店铺页面添加商品结构化数据的时候。
- ✓搜索中的商品列表没有显示价格、库存状态或评分的时候。
- ✓你更新了价格或库存,并想确认结构化数据仍与页面一致的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/product/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为店铺页面添加商品结构化数据,让 Google 能显示价格和库存状态吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会在每个商品页面添加 JSON-LD 代码块,包含名称、图片、描述和报价信息。在存在真实评论的情况下,它还会添加评分信息,并检查标记中的价格是否与页面上显示的价格一致。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Add Product schema markup
Product schema enables Google to show price, availability, ratings, and review count directly in search results—rich results have significantly higher click-through rates than standard blue links.
Quick Reference
- Add Product JSON-LD schema to every product page for rich result eligibility
- Required for rich results: name, image, description, and offers (with price and priceCurrency)
- Include aggregateRating for star ratings in search results
- Prices in schema must match the prices displayed on the page
Check
Check each product page for a JSON-LD script block with @type 'Product'. Verify it includes: name, image, description, and an offers property with price, priceCurrency, and availability. Check that prices in schema match the visible page prices. Validate with Google's Rich Results Test.
Fix
Add a Product JSON-LD block to each product page. Required: name, image (array of URLs), description, offers.price, offers.priceCurrency, offers.availability. Recommended: aggregateRating (ratingValue, reviewCount), brand, sku, gtin13/gtin8/mpn.
Explain
Product structured data enables Google Shopping-style rich results in organic search, showing price, star ratings, and stock status directly in the SERP. These rich results have higher visual prominence and click-through rates. Without schema, Google can only show a plain blue link for your product pages.
Code Review
Find JSON-LD blocks with @type 'Product'. Verify required fields: name, image (must be absolute URL array), description, offers.price (numeric), offers.priceCurrency (ISO 4217 code), offers.availability (schema.org URL). Check that offers.price matches the visible price on the page. Validate that aggregateRating.reviewCount > 0 if rating is present. Run through Google's Rich Results Test.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
常见问题
商品要显示富媒体结果,需要哪些内容?
这个技能把名称、图片、描述,以及带价格和货币的报价列为必需部分。
我可以添加没有的评分吗?
不可以。这个技能说,评分必须反映真实评论,标记内容也必须与页面可见内容一致。
为什么价格必须一致?
如果标记与页面可见内容不一致,富媒体结果可能会丢失,或者标记可能被视为误导。
详情
作者的原始描述
Use when auditing e-commerce product pages or implementing structured data for a shop. Applies to any page selling or describing a specific product.
热度
- GitHub 星标
- 75k
- 排名
- #2984
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。