Add, fix, or optimize schema markup and structured data. Use when the user mentions schema markup, structured data, JSON-LD, rich snippets, schema.org, FAQ schema, product schema, review schema, or breadcrumb schema.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install schema-markup或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install schema-markup⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/schema-markup/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: schema-markup model: fast version: 1.0.0 description: > Add, fix, or optimize schema markup and structured data. Use when the user mentions schema markup, structured data, JSON-LD, rich snippets, schema.org, FAQ schema, product schema, review schema, or breadcrumb schema. tags: [seo, schema, structured-data, json-ld, rich-snippets, search] ---
Implement schema.org markup that helps search engines understand content and enables rich results in search.
npx clawhub@latest install schema-markup
Before implementing schema, understand:
or before | Type | Use For | Required Properties | |------|---------|-------------------| | Organization | Company homepage/about | name, url | | WebSite | Homepage (search box) | 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 with required/recommended field annotations: See references/schema-examples.md
Required: name, url Recommended: logo, sameAs (social profiles), contactPoint
Required: headline, image, datePublished, author Recommended: dateModified, publisher, description
Required: name, image, offers (price + availability) Recommended: sku, brand, aggregateRating, review
Required: mainEntity (array of Question/Answer pairs)
Required: itemListElement (array with position, name, item)
Combine multiple schema types on one page using @graph:
{
"@context": "https://schema.org",
"@graph": [
{ "@type": "Organization", "..." : "..." },
{ "@type": "WebSite", "..." : "..." },
{ "@type": "BreadcrumbList", "..." : "..." }
]
}
Use @id to create referenceable entities — define once, reference elsewhere with { "@id": "..." }.
| Error | Cause | Fix | |-------|-------|-----| | Missing required field | Required property not included | Add the missing property | | Invalid URL | Relative URL or malformed | Use fully qualified URLs (https://...) | | Invalid date format | Not ISO 8601 | Use YYYY-MM-DDTHH:MM:SS+00:00 | | Invalid enum value | Wrong enumeration value | Use exact schema.org URLs (e.g., https://schema.org/InStock) | | Content mismatch | Schema doesn't match visible content | Ensure schema reflects actual page content | | Invalid price | Currency symbol or commas included | Use numeric value only ("149.99") |
export function JsonLd({ data }: { data: Record<string, unknown> }) {
return (
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}
/>
);
}
Before implementing, gather answers to:
安装 Schema Markup 后,可以对 AI 说这些话来触发它
Help me get started with Schema Markup
Explains what Schema Markup does, walks through the setup, and runs a quick demo based on your current project
Use Schema Markup to add, fix, or optimize schema markup and structured data
Invokes Schema Markup with the right parameters and returns the result directly in the conversation
What can I do with Schema Markup in my product manager workflow?
Lists the top use cases for Schema Markup, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/schema-markup/ 目录(个人级,所有项目可用),或 .claude/skills/schema-markup/(项目级)。重启 AI 客户端后,用 /schema-markup 主动调用,或让 AI 根据上下文自动发现并使用。
Schema Markup 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Schema Markup 可免费安装使用。请查阅仓库了解许可证信息。
Add, fix, or optimize schema markup and structured data. Use when the user mentions schema markup, structured data, JSON-LD, rich snippets, schema.org, FAQ schema, product schema, review schema, or breadcrumb schema.
Schema Markup 属于「Product Manager」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my product manager tasks using Schema Markup
Identifies repetitive steps in your workflow and sets up Schema Markup to handle them automatically