schema

โดย coreyhaines31

เมื่อผู้ใช้ต้องการเพิ่ม แก้ไข หรือปรับแต่ง schema markup และ structured data บนเว็บไซต์ของตน รวมถึงเมื่อผู้ใช้พูดถึง "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" หรือ "add structured data" ให้ใช้ทุกครั้งที่มีคนต้องการให้หน้าเว็บแสดงผลลัพธ์ที่ดียิ่งขึ้นใน 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

Skills เพิ่มเติมจาก coreyhaines31

copywriting
coreyhaines31
เมื่อผู้ใช้ต้องการเขียน เขียนใหม่ หรือปรับปรุงข้อความการตลาดสำหรับหน้าใดๆ รวมถึงหน้าแรก หน้าแลนดิ้ง หน้าราคา หน้าฟีเจอร์ หน้าเกี่ยวกับ หรือหน้าสินค้า รวมถึงเมื่อผู้ใช้พูดว่า "เขียนข้อความการตลาดให้" "ปรับปรุงข้อความนี้" "เขียนหน้าใหม่" "ข้อความการตลาด" "ช่วยเรื่องพาดหัว" "ข้อความ CTA" "คุณค่าที่นำเสนอ" "แท็กไลน์" "พาดหัวรอง" "ข้อความส่วนฮีโร่" "เหนือรอยพับ" "ข้อความนี้ยังอ่อน" "ทำให้ดูน่าสนใจขึ้น" หรือ "ช่วยอธิบายสินค้าของฉัน" ใช้สิ่งนี้...
marketingcreativecommunication
seo-audit
coreyhaines31
เมื่อผู้ใช้ต้องการตรวจสอบ ทบทวน หรือวินิจฉัยปัญหา SEO บนเว็บไซต์ของตน ใช้เมื่อผู้ใช้พูดถึง "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," หรือ "indexing issues." ใช้แม้ผู้ใช้พูดคลุมเครือเช่น "my SEO is bad" หรือ "help...
marketingresearchdata-analysis
marketing-psychology
coreyhaines31
เมื่อผู้ใช้ต้องการประยุกต์ใช้หลักจิตวิทยา แบบจำลองทางความคิด หรือวิทยาศาสตร์พฤติกรรมกับการตลาด รวมถึงเมื่อผู้ใช้กล่าวถึง 'จิตวิทยา' 'แบบจำลองทางความคิด' 'อคติทางความคิด' 'การโน้มน้าว' 'วิทยาศาสตร์พฤติกรรม' 'เหตุผลที่คนซื้อ' 'การตัดสินใจ' 'พฤติกรรมผู้บริโภค' 'การยึดติด' 'หลักฐานทางสังคม' 'ความขาดแคลน' 'การกลัวสูญเสีย' 'การวางกรอบ' หรือ 'การกระตุ้น' ใช้สิ่งนี้เมื่อมีคนต้องการเข้าใจหรือใช้ประโยชน์จากวิธีที่ผู้คนคิดและตัดสินใจในบริบททางการตลาด สำหรับการประยุกต์ใช้...
marketingresearch
content-strategy
coreyhaines31
เมื่อผู้ใช้ต้องการวางแผนกลยุทธ์เนื้อหา ตัดสินใจว่าจะสร้างเนื้อหาอะไร หรือหาว่าควรครอบคลุมหัวข้อใด นอกจากนี้ยังใช้เมื่อผู้ใช้พูดถึง "กลยุทธ์เนื้อหา" "ควรเขียนเกี่ยวกับอะไร" "ไอเดียเนื้อหา" "กลยุทธ์บล็อก" "กลุ่มหัวข้อ" "การวางแผนเนื้อหา" "ปฏิทินบรรณาธิการ" "การตลาดเนื้อหา" "แผนงานเนื้อหา" "ควรสร้างเนื้อหาอะไร" "หัวข้อบล็อก" "เสาหลักเนื้อหา" หรือ "ไม่รู้จะเขียนอะไร" ใช้สิ่งนี้ทุกครั้งที่มีคนต้องการความช่วยเหลือในการตัดสินใจว่าจะสร้างเนื้อหาอะไร...
marketingresearchcreative
ai-seo
coreyhaines31
เมื่อผู้ใช้ต้องการปรับเนื้อหาให้เหมาะสมกับเครื่องมือค้นหา AI ถูกอ้างอิงโดย LLM หรือปรากฏในคำตอบที่สร้างโดย AI รวมถึงเมื่อผู้ใช้พูดถึง 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for Perplexity,' 'AI citations,' 'AI visibility,' 'zero-click search,' 'how do I show up in AI answers,' 'LLM mentions,' หรือ 'optimize for Claude/Gemini.' ใช้สิ่งนี้เมื่อมีคน...
marketingresearch
programmatic-seo
coreyhaines31
ใช้เมื่อผู้ใช้ต้องการสร้างหน้าเว็บที่ขับเคลื่อนด้วย SEO ในปริมาณมากโดยใช้เทมเพลตและข้อมูล รวมถึงเมื่อผู้ใช้พูดถึง "programmatic SEO," "template pages," "pages at scale," "directory pages," "location pages," "[keyword] + [city] pages," "comparison pages," "integration pages," "building many pages for SEO," "pSEO," "generate 100 pages," "data-driven pages," หรือ "templated landing pages." ใช้สิ่งนี้ทุกครั้งที่มีคนต้องการสร้างหน้าเว็บที่คล้ายกันจำนวนมากเพื่อกำหนดเป้าหมายคีย์เวิร์ดหรือสถานที่ต่างๆ สำหรับ...
marketingdata-analysisweb-scraping
marketing-ideas
coreyhaines31
เมื่อผู้ใช้ต้องการแนวคิดทางการตลาด แรงบันดาลใจ หรือกลยุทธ์สำหรับผลิตภัณฑ์ SaaS หรือซอฟต์แวร์ของตน รวมถึงเมื่อผู้ใช้ถามถึง 'แนวคิดทางการตลาด' 'แนวคิดการเติบโต' 'วิธีการทำการตลาด' 'กลยุทธ์การตลาด' 'กลวิธีทางการตลาด' 'วิธีโปรโมท' 'แนวคิดในการเติบโต' 'มีอะไรอีกที่ฉันลองได้' 'ฉันไม่รู้จะทำการตลาดสิ่งนี้อย่างไร' 'ระดมสมองเรื่องการตลาด' หรือ 'ฉันควรทำการตลาดแบบไหน' ใช้สิ่งนี้เป็นจุดเริ่มต้นเมื่อมีคนติดขัดหรือต้องการแรงบันดาลใจในการเติบโต สำหรับรายละเอียดเฉพาะ...
marketing
copy-editing
coreyhaines31
เมื่อผู้ใช้ต้องการแก้ไข ตรวจทาน หรือปรับปรุงสำเนาการตลาดที่มีอยู่ หรือรีเฟรชเนื้อหาที่ล้าสมัย รวมถึงเมื่อผู้ใช้พูดถึง 'แก้ไขสำเนานี้' 'ตรวจสอบสำเนาของฉัน' 'ข้อเสนอแนะเกี่ยวกับสำเนา' 'พิสูจน์อักษร' 'ขัดเกลาสิ่งนี้' 'ทำให้ดีขึ้น' 'กวาดสำเนา' 'กระชับสิ่งนี้' 'อ่านแล้วไม่ลื่นไหล' 'ทำความสะอาดข้อความนี้' 'ใช้คำมากเกินไป' 'ทำให้ข้อความคมชัดขึ้น' 'รีเฟรชเนื้อหานี้' 'อัปเดตหน้านี้' 'เนื้อหานี้ล้าสมัย' หรือ 'ตรวจสอบเนื้อหา' ใช้เมื่อผู้ใช้มีสำเนาอยู่แล้วและต้องการให้...
documentcommunicationmarketing