跳到正文
cccskills
免费在 GitHub 公开中文介绍

schema

为商品、文章和企业信息等页面添加或修复结构化数据,选择合适的Schema.org类型并准备JSON-LD代码,同时整理验证项目,区分Google仍支持和已停止的搜索展示功能。

原文查看原文说明

When the user wants to add, fix, or optimize schema markup and structured data on their site. Also use when the user mentions "schema markup," "structured data," "JSON-LD," "rich snippets," "schema.org," "FAQ schema," "product schema," "review schema," "breadcrumb schema," "Google rich results," "knowledge panel," "star ratings in search," or "add structured data." Use this whenever someone wants their pages to show enhanced results in Google. For broader SEO issues, see seo-audit. For AI search optimization, see ai-seo.

集成工具Search Console

实测评分 未实测

查看安装方法

适用场景

  • 为商品或文章页添加结构化数据
  • 修复现有标记中的错误
  • 实现面包屑结构化数据
  • 确认Google搜索功能是否支持

中文介绍

功能

schema 帮助为商品页、文章、企业信息等内容添加或修复结构化数据,让搜索引擎更容易理解页面。它会结合页面类型、现有标记和目标搜索展示,建议合适的Schema.org类型及JSON-LD代码。检查内容还包括必填字段缺失、值不正确,以及标记与访客实际可见内容不一致等问题。它也会整理验证项目,可使用Schema.org Validator和Google Rich Results Test等工具检查。

适用场景

需要为商品页或文章添加结构化数据、修复现有标记错误,或实现面包屑数据时,可以使用此技能。它还能根据网站结构,考虑静态HTML、React、Next.js或WordPress的实现方式。

使用示例

  • “为这个商品页添加包含价格和库存状态的JSON-LD。”
  • “检查现有结构化数据,并整理修正代码和验证项目。”

注意事项

结构化数据必须与页面上实际显示的内容一致。符合Schema.org规范不代表一定能获得Google搜索功能的展示。所提供的资料称FAQ和HowTo富媒体搜索结果已停止,并建议实现前确认当前支持情况。验证工具的用途也不同:Google Rich Results Test只检查Google支持的功能,并不覆盖所有Schema.org类型。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好资料要求与可见内容一致,并提示不要以已停止的功能为目标。
安装难易度所需工具和 API 密钥是否少且有说明
A良好资料列出验证工具,并说明常见网站架构的实现方式。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月24日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(3)

  • SKILL.md7.0 KB
  • evals/evals.json9.6 KB
  • references/schema-examples.md9.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Schema Markup

You are an expert in structured data and schema markup. Your goal is to implement schema.org markup that helps search engines understand content and enables rich results in search.

Initial Assessment

Check for product marketing context first: If .agents/product-marketing.md exists (or .claude/product-marketing.md, or the legacy product-marketing-context.md filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.

Before implementing schema, understand:

  1. Page Type - What kind of page? What's the primary content? What rich results are possible?

  2. Current State - Any existing schema? Errors in implementation? Which rich results already appearing?

  3. Goals - Which rich results are you targeting? What's the business value?


Core Principles

1. Accuracy First

  • Schema must accurately represent page content
  • Don't markup content that doesn't exist
  • Keep updated when content changes

2. Use JSON-LD

  • Google recommends JSON-LD format
  • Easier to implement and maintain
  • Place in <head> or end of <body>

3. Follow Google's Guidelines

  • Only use markup Google supports
  • Avoid spam tactics
  • Review eligibility requirements

4. Validate Everything

  • Test before deploying
  • Monitor Search Console
  • Fix errors promptly

Common Schema Types

TypeUse ForRequired Properties
OrganizationCompany homepage/aboutname, url
WebSiteHomepage/site identityname, url
ArticleBlog posts, newsheadline, image, datePublished, author
ProductProduct pagesname, image, offers
SoftwareApplicationSaaS/app pagesname, offers
FAQPageFAQ contentmainEntity (Q&A array)
HowToTutorialsname, step
BreadcrumbListAny page with breadcrumbsitemListElement
LocalBusinessLocal business pagesname, address
EventEvents, webinarsname, startDate, location

For complete JSON-LD examples: See references/schema-examples.md

Check Google Feature Support First

Schema.org vocabulary validity does not establish Google feature eligibility. Before implementing markup for a requested search appearance, check Google's current supported structured data gallery.

  • FAQPage: Google stopped showing FAQ rich results on May 7, 2026, and removed the feature's documentation in June. The earlier government/health-site exception is no longer a route to FAQ rich results. See Google's documentation updates.
  • HowTo: Google retired HowTo rich results in September 2023. See the retirement announcement.
  • WebSite / SearchAction: Google retired the sitelinks search box in November 2024; WebSite still supports site names. See the search box announcement.

These types can still describe matching visible content in Schema.org. Explain that distinction, ask which consumer needs the markup, and do not recommend implementation to obtain a retired Google appearance. Do not treat missing retired-feature reports or Rich Results Test detection as a broken implementation, or remove unrelated supported markup.


Quick Reference

Organization (Company Page)

Required: name, url Recommended: logo, sameAs (social profiles), contactPoint

Article/BlogPosting

Required: headline, image, datePublished, author Recommended: dateModified, publisher, description

Product

Required: name, image, offers (price + availability) Recommended: sku, brand, aggregateRating, review

FAQPage

Required: mainEntity (array of Question/Answer pairs) Optional semantic markup for visible FAQs; not a way to obtain Google FAQ rich results. Check the feature-support guidance above before offering code.

BreadcrumbList

Required: itemListElement (array with position, name, item)


Multiple Schema Types

You can combine multiple schema types on one page using @graph:

{
  "@context": "https://schema.org",
  "@graph": [
    { "@type": "Organization", ... },
    { "@type": "WebSite", ... },
    { "@type": "BreadcrumbList", ... }
  ]
}

Validation and Testing

Tools

Common Errors

Missing required properties - Check Google's documentation for required fields

Invalid values - Dates must be ISO 8601, URLs fully qualified, enumerations exact

Mismatch with page content - Schema doesn't match visible content


Implementation

Static Sites

  • Add JSON-LD directly in HTML template
  • Use includes/partials for reusable schema

Dynamic Sites (React, Next.js)

  • Component that renders schema
  • Server-side rendered for SEO
  • Serialize data to JSON-LD

CMS / WordPress

  • Plugins (Yoast, Rank Math, Schema Pro)
  • Theme modifications
  • Custom fields to structured data

Output Format

Schema Implementation

// Full JSON-LD code block
{
  "@context": "https://schema.org",
  "@type": "...",
  // Complete markup
}

Testing Checklist

  • Requested Google appearance is currently supported, or a separate semantic consumer is identified
  • Validates in Schema.org Validator; supported Google features also pass Rich Results Test
  • Required-field errors resolved; recommended-field warnings reviewed
  • Matches page content
  • All required properties included

Task-Specific Questions

  1. What type of page is this?
  2. What rich results are you hoping to achieve?
  3. What data is available to populate the schema?
  4. Is there existing schema on the page?
  5. What's your tech stack?

Related Skills

  • seo-audit: For overall SEO including schema review
  • ai-seo: For AI search optimization (schema helps AI understand content)
  • programmatic-seo: For templated schema at scale
  • site-architecture: For breadcrumb structure and navigation schema planning

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

ab-testing

免费有简介

规划页面改动的A/B测试,从提出假设、确定指标,到估算样本量、测试时长和流量分配,并帮助解读结果、排序实验方案及记录持续改进中的经验。

  • 比较标题或注册按钮
  • 估算样本量和测试时长
  • 检查结果及可能的不利影响
coreyhaines31/marketingskills5.6万2026年10月23日 更新

ad-creative

免费有简介

为不同广告平台撰写标题、正文及静态或视频创意方案。结合投放表现和顾客反馈拓展文案,检查格式限制,并制定可衡量的测试假设,用于下一轮优化。

  • 撰写符合字数限制的搜索广告
  • 根据广告表现开发新方案
  • 依据顾客评价策划静态广告
coreyhaines31/marketingskills5.6万2026年10月23日 更新

ads

免费有简介

为 Google Ads、Meta、LinkedIn 等平台规划和复核付费广告,整理受众、预算、竞价策略,并依据获客成本和销售数据评估效果,区分已知事实、假设与缺失信息。

  • 选择广告平台并分配预算
  • 根据投放结果决定后续行动
  • 排查搜索广告中的无效支出
coreyhaines31/marketingskills5.6万2026年10月23日 更新

ai-seo

免费有简介

调查品牌在AI搜索回答中的展示和引用情况,检查内容结构、依据与网站访问设置,整理改进方向,帮助AI系统获取关键信息。

  • 查看AI搜索是否引用品牌
  • 改进文章的回答结构和依据
  • 调查AI无法读取网站的原因
coreyhaines31/marketingskills5.6万2026年10月23日 更新

analytics

免费有简介

为营销和产品决策规划并验证数据追踪,定义事件、配置 GA4 和 Google Tag Manager、统一活动链接的 UTM 命名,并按相同时间段计算指标。

  • 规划注册与购买事件追踪
  • 排查事件未发送或重复
  • 统一活动链接的 UTM 命名
coreyhaines31/marketingskills5.6万2026年10月23日 更新

aso

免费有简介

检查 App Store 或 Google Play 的应用页面,从六个方面评分,并给出总分、按优先级排列的文案与图片视频改进建议,也可比较竞品。

  • 通过商店链接诊断页面
  • 改进应用名称或说明
  • 检查截图和预览视频
coreyhaines31/marketingskills5.6万2026年10月23日 更新

查看 coreyhaines31 的全部技能

报告此技能的问题