schema

作者: coreyhaines31

当用户想要在其网站上添加、修复或优化schema标记和结构化数据时使用。当用户提到“schema标记”、“结构化数据”、“JSON-LD”、“丰富摘要”、“schema.org”、“FAQ schema”、“产品schema”、“评论schema”、“面包屑导航schema”、“Google丰富结果”、“知识面板”、“搜索结果中的星级评分”或“添加结构化数据”时也适用。每当有人希望其页面在Google中显示增强结果时使用此技能。对于更广泛的SEO问题,请参考seo-audit。对于AI...

npx skills add https://github.com/coreyhaines31/marketingskills --skill schema

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

来自 coreyhaines31 的更多技能

ab-testing
coreyhaines31
当用户想要规划、设计或实施A/B测试或实验,或构建增长实验项目时使用。也适用于用户提及"A/B测试"、"拆分测试"、"实验"、"测试这个改动"、"变体文案"、"多变量测试"、"假设"、"我应该测试这个吗"、"哪个版本更好"、"测试两个版本"、"统计显著性"、"这个测试应该运行多久"、"增长实验"、"实验速度"、"实验积压"、"ICE评分"、"实验...
researchdata-analysismarketing
ad-creative
coreyhaines31
当用户想要为任何付费广告平台生成、迭代或规模化广告创意——包括标题、描述、主要文本或完整广告变体时使用。当用户提及“广告文案变体”、“广告创意”、“生成标题”、“RSA标题”、“批量广告文案”、“广告迭代”、“创意测试”、“广告效果优化”、“帮我写一些广告”、“Facebook广告文案”、“Google广告标题”、“LinkedIn广告文本”或“我需要更多广告变体”时也适用。每当有人...时使用此技能。
marketingcreative
ads
coreyhaines31
当用户需要关于Google Ads、Meta(Facebook/Instagram)、LinkedIn、Twitter/X或其他广告平台的付费广告活动帮助时使用。当用户提及“PPC”、“付费媒体”、“ROAS”、“CPA”、“广告活动”、“再营销”、“受众定位”、“Google Ads”、“Facebook广告”、“LinkedIn广告”、“广告预算”、“每次点击费用”、“广告支出”或“我应该投放广告吗”时也适用。用于广告活动策略、受众定位、出价和优化。对于批量广告创意生成和...
data-analysisresearchmarketing
ai-seo
coreyhaines31
当用户想要优化内容以适应AI搜索引擎、被大语言模型引用、或出现在AI生成的回答中时使用。也适用于用户提及以下术语时:'AI SEO'、'AEO'、'GEO'、'LLMO'、'答案引擎优化'、'生成式引擎优化'、'大语言模型优化'、'AI概览'、'针对ChatGPT优化'、'针对Perplexity优化'、'AI引用'、'AI可见性'、'零点击搜索'、'如何出现在AI回答中'、'大语言模型提及'、或'针对Claude/Gemini优化'。当有人提及相关内容时均可使用。
researchmarketing
analytics
coreyhaines31
当用户想要设置、改进或审计分析追踪和测量时使用。也适用于用户提及“设置追踪”、“GA4”、“Google Analytics”、“转化追踪”、“事件追踪”、“UTM参数”、“标签管理器”、“GTM”、“分析实施”、“追踪计划”、“我该如何测量这个”、“追踪转化”、“归因”、“Mixpanel”、“Segment”、“我的事件是否触发”或“分析无法正常工作”时。每当有人询问如何判断某件事是否正常运作时,也使用此技能。
researchdata-analysismarketing
aso
coreyhaines31
当用户想要审核或优化App Store或Google Play上的应用列表时使用。也适用于用户提及'ASO审核'、'应用商店优化'、'优化我的应用列表'、'提升应用可见度'、'应用商店排名'、'审核我的列表'、'为什么没人下载我的应用'、'提升应用转化率'、'应用关键词优化'或'将我的应用与竞品对比'时。当用户分享App Store或Google Play链接并希望改进时使用。
data-analysisresearchmarketing
attribution
coreyhaines31
当用户想要弄清楚哪些营销活动真正驱动转化和收入时,选择或解读归因模型,或协调不同工具之间相互冲突的数据。当用户提到"归因"、"归因模型"、"首次触点与末次触点"、"多触点"、"哪个渠道驱动收入"、"我真实的CAC是多少"、"我的仪表盘数据不一致"、"Google/Meta说X但GA说Y"、"媒体组合模型"、"MMM"、"增量性"、"地理提升"、"留存测试"、"你是如何...
researchdata-analysismarketing
churn-prevention
coreyhaines31
当用户希望减少流失、构建取消流程、设置挽留优惠、恢复失败支付或实施留存策略时使用。也适用于用户提及“流失”、“取消流程”、“离网流程”、“挽留优惠”、“催收”、“失败支付恢复”、“赢回”、“留存”、“退出调查”、“暂停订阅”、“非自愿流失”、“用户不断取消”、“流失率过高”、“如何留住用户”或“客户正在离开”等场景。每当有人正在流失时使用此技能。
communicationdata-analysismarketing