跳到正文
Skillpedia
SEO55k · #3331

schema

它能做什么

这个工具可以帮你在网站中添加一些额外信息,让 Google 等搜索引擎更容易理解页面内容。这样,你的网站在搜索结果中就能以更丰富的形式展示,比如显示星级评分或常见问题。

适用场景

  • ✓当你希望网站在搜索结果中展示更多信息时。
  • ✓当页面上有问答内容,并且你希望它们以特殊形式展示时。
  • ✓当你希望商品价格、评价等详细信息直接显示在搜索结果中时。

技能链接

https://github.com/coreyhaines31/marketingskills/blob/main/skills/schema/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/coreyhaines31/marketingskills/blob/main/skills/schema/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我的园艺常见问题页面添加 FAQ schema。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会分析你的页面内容,以及你希望突出展示的信息类型。然后它会生成一段特殊代码(称为 JSON-LD),你可以把它添加到网站中,帮助搜索引擎更好地理解内容。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

Type Use For Required Properties
Organization Company homepage/about name, url
WebSite Homepage/site identity name, url
Article Blog posts, news headline, image, datePublished, author
Product Product pages name, image, offers
SoftwareApplication SaaS/app pages name, offers
FAQPage FAQ content mainEntity (Q&A array)
HowTo Tutorials name, step
BreadcrumbList Any page with breadcrumbs itemListElement
LocalBusiness Local business pages name, address
Event Events, webinars name, 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", ... }
  ]
}

…

常见问题

什么是“schema 标记”?

它是你添加到网站中的代码,用来帮助搜索引擎理解内容,并在搜索结果中以更丰富的方式展示。

什么是“富媒体搜索结果”(rich results)?

这是指在搜索结果中,除了链接和描述之外还会显示额外信息的结果,比如图片、星级评分,或者问题的直接答案。

为什么要使用 JSON-LD?

它是 Google 推荐用来添加 schema 标记的格式,实现和管理起来都更简单。

详情

作者的原始描述

When the user wants to add, fix, or optimize schema markup and structured data on their site. Also use when the user mentions "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," or "add structured data." Use this whenever someone wants

repo: coreyhaines31/marketingskills

热度

GitHub 星标
55k
排名
#3331
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能