schema

作者: coreyhaines31

當使用者想要在其網站上新增、修正或優化結構化資料標記與結構化資料時使用。也適用於使用者提及「結構化資料標記」、「結構化資料」、「JSON-LD」、「豐富摘要」、「schema.org」、「常見問題結構化資料」、「產品結構化資料」、「評論結構化資料」、「麵包屑結構化資料」、「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
當使用者想要為任何付費廣告平台生成、迭代或規模化廣告創意——包括標題、描述、主要文案或完整的廣告變體時。也適用於使用者提及「廣告文案變體」、「廣告創意」、「生成標題」、「回應式搜尋廣告標題」、「批量廣告文案」、「廣告迭代」、「創意測試」、「廣告成效優化」、「幫我寫一些廣告」、「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
當使用者想要弄清楚哪種行銷真正驅動轉換和營收時,選擇或解讀歸因模型,或調和不同工具之間的數據差異時使用。也適用於使用者提到「歸因」、「歸因模型」、「首次觸點 vs 最後觸點」、「多觸點」、「哪個渠道驅動營收」、「我真正的CAC是多少」、「我的儀表板數據不一致」、「Google/Meta說X但GA說Y」、「媒體組合模型」、「MMM」、「增量性」、「地理提升」、「保留測試」、「你是怎麼...
researchdata-analysismarketing
churn-prevention
coreyhaines31
當使用者想要降低流失率、建立取消流程、設定挽留優惠、處理付款失敗或實施留存策略時使用。也適用於使用者提及「流失」、「取消流程」、「離職流程」、「挽留優惠」、「催款」、「付款失敗恢復」、「贏回」、「留存」、「退出調查」、「暫停訂閱」、「非自願流失」、「用戶一直取消」、「流失率太高」、「如何留住用戶」或「客戶正在離開」等情況。每當有人正在流失時使用此技能。
communicationdata-analysismarketing