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 (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健康检查"、"流量下降"、"排名丢失"、"未出现在谷歌中"、"网站没有排名"、"谷歌更新影响了我"、"页面速度"、"核心网页指标"、"抓取错误"或"索引问题"时。即使用户只是模糊地说"我的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