schema

Khi người dùng muốn thêm, sửa hoặc tối ưu hóa đánh dấu schema và dữ liệu có cấu trúc trên trang web của họ. Cũng sử dụng khi người dùng đề cập đến "đánh dấu schema," "dữ liệu có cấu trúc," "JSON-LD," "rich snippets," "schema.org," "FAQ schema," "product schema," "review schema," "breadcrumb schema," "Google rich results," "knowledge panel," "xếp hạng sao trong tìm kiếm," hoặc "thêm dữ liệu có cấu trúc." Sử dụng điều này bất cứ khi nào ai đó muốn trang của họ hiển thị kết quả nâng cao trên Google. Đối với các vấn đề SEO rộng hơn, hãy xem seo-audit. Đối với 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

Thêm skills từ coreyhaines31

ab-testing
coreyhaines31
Khi người dùng muốn lập kế hoạch, thiết kế hoặc triển khai một bài kiểm tra A/B hoặc thử nghiệm, hoặc xây dựng một chương trình thử nghiệm tăng trưởng. Cũng sử dụng khi người dùng đề cập đến "kiểm tra A/B," "kiểm tra phân chia," "thử nghiệm," "kiểm tra thay đổi này," "bản sao biến thể," "kiểm tra đa biến," "giả thuyết," "tôi có nên kiểm tra điều này không," "phiên bản nào tốt hơn," "kiểm tra hai phiên bản," "ý nghĩa thống kê," "tôi nên chạy kiểm tra này trong bao lâu," "thử nghiệm tăng trưởng," "tốc độ thử nghiệm," "tồn đọng thử
researchdata-analysismarketing
ad-creative
coreyhaines31
Khi người dùng muốn tạo, lặp lại hoặc mở rộng quảng cáo sáng tạo — tiêu đề, mô tả, nội dung chính hoặc các biến thể quảng cáo đầy đủ — cho bất kỳ nền tảng quảng cáo trả phí nào. Cũng sử dụng khi người dùng đề cập đến 'các biến thể nội dung quảng cáo,' 'quảng cáo sáng tạo,' 'tạo tiêu đề,' 'tiêu đề RSA,' 'nội dung quảng cáo hàng loạt,' 'lặp lại quảng cáo,' 'kiểm thử sáng tạo,' 'tối ưu hóa hiệu suất quảng cáo,' 'viết cho tôi một số quảng cáo,' 'nội dung quảng cáo Facebook,' 'tiêu đề quảng cáo Google,' 'nội dung
marketingcreative
ads
coreyhaines31
Khi người dùng muốn trợ giúp về các chiến dịch quảng cáo trả phí trên Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X hoặc các nền tảng quảng cáo khác. Cũng sử dụng khi người dùng đề cập đến 'PPC,' 'paid media,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' 'audience targeting,' 'Google Ads,' 'Facebook ads,' 'LinkedIn ads,' 'ad budget,' 'cost per click,' 'ad spend,' hoặc 'should I run ads.' Sử dụng cho chiến lược chiến dịch, nhắm mục tiêu đối tượng, đặt giá thầu và tối ưu hóa. Đối với việc tạo nội dung quảng cáo hàng loạt và...
data-analysisresearchmarketing
ai-seo
coreyhaines31
Khi người dùng muốn tối ưu hóa nội dung cho công cụ tìm kiếm AI, được các LLM trích dẫn, hoặc xuất hiện trong các câu trả lời do AI tạo ra. Cũng sử dụng khi người dùng đề cập đến 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'tối ưu hóa công cụ trả lời,' 'tối ưu hóa công cụ tạo sinh,' 'tối ưu hóa LLM,' 'AI Overviews,' 'tối ưu hóa cho ChatGPT,' 'tối ưu hóa cho Perplexity,' 'trích dẫn AI,' 'khả năng hiển thị AI,' 'tìm kiếm không nhấp chuột,' 'làm thế nào để tôi xuất hiện trong câu trả lời AI,' 'đề cập LLM
researchmarketing
analytics
coreyhaines31
Khi người dùng muốn thiết lập, cải thiện hoặc kiểm tra việc theo dõi và đo lường analytics. Cũng sử dụng khi người dùng đề cập đến "thiết lập theo dõi," "GA4," "Google Analytics," "theo dõi chuyển đổi," "theo dõi sự kiện," "thông số UTM," "trình quản lý thẻ," "GTM," "triển khai analytics," "kế hoạch theo dõi," "làm thế nào để đo lường điều này," "theo dõi chuyển đổi," "quy kết," "Mixpanel," "Segment," "sự kiện của tôi có đang kích hoạt không," hoặc "analytics không hoạt động." Sử dụng bất cứ khi nào ai đó hỏi cách biết liệu một thứ có đ
researchdata-analysismarketing
aso
coreyhaines31
Khi người dùng muốn kiểm tra hoặc tối ưu hóa danh sách trên App Store hoặc Google Play. Cũng sử dụng khi người dùng đề cập đến 'kiểm tra ASO,' 'tối ưu hóa app store,' 'tối ưu danh sách ứng dụng của tôi,' 'cải thiện khả năng hiển thị ứng dụng,' 'thứ hạng app store,' 'kiểm tra danh sách của tôi,' 'tại sao mọi người không tải ứng dụng của tôi,' 'cải thiện tỷ lệ chuyển đổi ứng dụng,' 'tối ưu hóa từ khóa cho ứng dụng,' hoặc 'so sánh ứng dụng của tôi với đối thủ.' Sử dụng khi người dùng chia sẻ URL App Store hoặc Google Play và muốn cải thiện nó.
data-analysisresearchmarketing
attribution
coreyhaines31
Khi người dùng muốn xác định hoạt động marketing nào thực sự tạo ra chuyển đổi và doanh thu, chọn hoặc diễn giải một mô hình attribution, hoặc đối chiếu các con số mâu thuẫn giữa các công cụ. Cũng sử dụng khi người dùng đề cập đến "attribution," "attribution model," "first-touch vs last-touch," "multi-touch," "kênh nào tạo ra doanh thu," "CAC thực sự của tôi là bao nhiêu," "các dashboard của tôi không khớp nhau," "Google/Meta nói X nhưng GA nói Y," "media mix model," "MMM," "incrementality," "geo lift," "holdout test," "làm sao bạn...
researchdata-analysismarketing
churn-prevention
coreyhaines31
Khi người dùng muốn giảm tỷ lệ rời bỏ, xây dựng luồng hủy, thiết lập ưu đãi giữ chân, thu hồi thanh toán thất bại, hoặc triển khai chiến lược duy trì. Cũng sử dụng khi người dùng đề cập đến 'rời bỏ,' 'luồng hủy,' 'quy trình ra đi,' 'ưu đãi giữ chân,' 'thu hồi nợ,' 'thu hồi thanh toán thất bại,' 'thu hút lại,' 'duy trì,' 'khảo sát khi rời đi,' 'tạm dừng đăng ký,' 'rời bỏ không chủ ý,' 'mọi người liên tục hủy,' 'tỷ lệ rời bỏ quá cao,
communicationdata-analysismarketing