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 (search box)name, 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


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)

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

  • Validates in Rich Results Test
  • No errors or warnings
  • 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 的更多技能

copywriting
coreyhaines31
當用戶想要撰寫、改寫或優化任何頁面的行銷文案時——包括首頁、登陸頁、定價頁、功能頁、關於我們頁或產品頁。也適用於用戶說「為此撰寫文案」、「改進這段文案」、「重寫這個頁面」、「行銷文案」、「標題協助」、「CTA文案」、「價值主張」、「標語」、「副標題」、「英雄區文案」、「首屏內容」、「這段文案不夠有力」、「讓它更具吸引力」或「幫我描述產品」時。使用此...
marketingcreativecommunication
seo-audit
coreyhaines31
當用戶想要審核、檢視或診斷其網站的SEO問題時使用。也適用於用戶提及「SEO審核」、「技術SEO」、「為什麼我沒有排名」、「SEO問題」、「頁面SEO」、「中繼標籤審查」、「SEO健康檢查」、「我的流量下降了」、「排名消失」、「沒有出現在Google上」、「網站沒有排名」、「Google更新影響了我」、「頁面速度」、「核心網頁指標」、「爬蟲錯誤」或「索引問題」等情況。即使用戶只是模糊地說「我的SEO很糟」或「幫幫我...」也適用。
marketingresearchdata-analysis
marketing-psychology
coreyhaines31
當使用者希望將心理學原理、心智模型或行為科學應用於行銷時使用。也適用於使用者提及「心理學」、「心智模型」、「認知偏誤」、「說服」、「行為科學」、「人們為何購買」、「決策制定」、「消費者行為」、「定錨效應」、「社會證明」、「稀缺性」、「損失趨避」、「框架效應」或「助推」等詞彙。每當有人想理解或運用行銷情境中人們的思考與決策方式時,即可使用此技能。用於應用...
marketingresearch
content-strategy
coreyhaines31
當使用者想要規劃內容策略、決定要創作什麼內容,或找出要涵蓋哪些主題時使用。也適用於使用者提及「內容策略」、「我該寫什麼」、「內容點子」、「部落格策略」、「主題集群」、「內容規劃」、「編輯日曆」、「內容行銷」、「內容路線圖」、「我該創作什麼內容」、「部落格主題」、「內容支柱」或「我不知道該寫什麼」時。每當有人需要協助決定該創作什麼內容時,請使用此技能。
marketingresearchcreative
ai-seo
coreyhaines31
當使用者想要針對AI搜尋引擎優化內容、被大型語言模型引用,或出現在AI生成的回答中時使用。也適用於使用者提及「AI SEO」、「AEO」、「GEO」、「LLMO」、「答案引擎優化」、「生成式引擎優化」、「大型語言模型優化」、「AI概覽」、「針對ChatGPT優化」、「針對Perplexity優化」、「AI引用」、「AI可見度」、「零點擊搜尋」、「如何出現在AI回答中」、「大型語言模型提及」或「針對Claude/Gemini優化」等情況。每當有人...
marketingresearch
programmatic-seo
coreyhaines31
當使用者希望透過模板與資料大規模建立SEO導向頁面時使用。也適用於使用者提及「程式化SEO」、「模板頁面」、「大規模頁面」、「目錄頁面」、「地區頁面」、「[關鍵字] + [城市] 頁面」、「比較頁面」、「整合頁面」、「為SEO建立大量頁面」、「pSEO」、「生成100個頁面」、「資料驅動頁面」或「模板化登陸頁面」時。每當有人想針對不同關鍵字或地點建立大量相似頁面時使用。用於...
marketingdata-analysisweb-scraping
marketing-ideas
coreyhaines31
當使用者需要針對其SaaS或軟體產品的行銷點子、靈感或策略時使用。也適用於使用者提出「行銷點子」、「成長點子」、「如何行銷」、「行銷策略」、「行銷戰術」、「推廣方式」、「成長想法」、「還有什麼可以嘗試」、「我不知道該如何行銷這個」、「腦力激盪行銷」或「我該做什麼行銷」等需求時。每當有人卡住或尋找成長靈感時,以此作為起點。針對特定...
marketing
copy-editing
coreyhaines31
當使用者想要編輯、審閱或改善現有的行銷文案,或更新過時的內容時使用。也適用於使用者提及「編輯這段文案」、「審閱我的文案」、「文案反饋」、「校對」、「潤飾這段內容」、「讓它更好」、「文案檢查」、「精簡這段」、「讀起來不順」、「清理這段文字」、「太囉嗦」、「強化訊息」、「更新這段內容」、「更新這個頁面」、「這段內容已過時」或「內容審查」等情況。當使用者已有文案並希望進行處理時使用。
documentcommunicationmarketing