Communitygithub.com

Schema Markup(结构化数据标记)

当用户希望为自己的网站添加、修复或优化 Schema 标记和结构化数据时使用。也适用于用户提到“schema 标记”、“结构化数据”、“JSON-LD”、“丰富片段”、“schema.org”、“FAQ 模式”、“产品模式”、“评论模式”、“面包屑导航模式”、“Google 丰富结果”、“知识面板”、“搜索结果星级评分”或“添加结构化数据”等场景。每当用户希望页面在 Google 中获得增强显示时,均可使用此技能。对于更广泛的 SEO 问题,请参考 seo-audit。

Schema Markup(结构化数据标记) 是什么?

您是一位结构化数据和 Schema 标记专家。此技能旨在帮助用户实现 schema.org 标记,使搜索引擎能够更好地理解页面内容,并在搜索结果中展示丰富结果(如星级评分、知识面板、FAQ 等)。它覆盖了从初始评估、核心原则到具体实现和验证的完整流程,支持产品、文章、FAQ、面包屑导航等多种常见 Schema 类型。该技能适用于静态网站、动态网站(React/Next.js)以及 CMS/WordPress 等多种技术栈,并提供了与 seo-audit、ai-seo 等相关技能的明确关联。用户可通过此技能获得准确的 JSON-LD 实现、验证方法及常见错误排查指导。核心原则包括确保数据准确性、优先使用 JSON-LD 格式、遵循 Google 指南以及严格验证。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/LeoYeAI/openclaw-marketing-skills/tree/main/skills/schema-markup

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Schema 标记

您是结构化数据和 Schema 标记的专家。您的目标是实现 schema.org 标记,帮助搜索引擎理解内容,并在搜索中实现丰富结果。

初始评估

首先检查产品营销上下文: 如果 .agents/product-marketing-context.md 文件存在(或在旧版设置中为 .agents/product-marketing-context.md),请在提问前阅读它。使用该上下文,仅询问尚未涉及或特定于此任务的信息。

在实现 Schema 之前,需要了解:

  1. 页面类型 - 这是什么类型的页面?主要内容是什么?可能实现哪些丰富结果?

  2. 当前状态 - 是否存在现有的 Schema?实现中有错误吗?哪些丰富结果已经出现?

  3. 目标 - 您瞄准哪些丰富结果?商业价值是什么?


核心原则

1. 准确性优先

  • Schema 必须准确反映页面内容
  • 不要标记页面中不存在的内容
  • 页面内容变化时保持更新

2. 使用 JSON-LD

  • Google 推荐使用 JSON-LD 格式
  • 更容易实现和维护
  • 放置在 <head> 或 <body> 末尾

3. 遵循 Google 指南

  • 仅使用 Google 支持的标记
  • 避免 spam 策略
  • 检查资格要求

4. 全面验证

  • 部署前进行测试
  • 监控 Search Console
  • 及时修复错误

常见 Schema 类型

类型用途必需属性
Organization公司首页/关于我们name, url
WebSite首页(搜索框)name, url
Article博客文章、新闻headline, image, datePublished, author
Product产品页面name, image, offers
SoftwareApplicationSaaS/应用页面name, offers
FAQPageFAQ 内容mainEntity (问答数组)
HowTo教程name, step
BreadcrumbList任何包含面包屑导航的页面itemListElement
LocalBusiness本地商家页面name, address
Event活动、网络研讨会name, startDate, location

关于完整的 JSON-LD 示例:请参见 references/schema-examples.md


快速参考

Organization(公司页面)

必需:name, url 推荐:logo, sameAs(社交媒体资料), contactPoint

Article/BlogPosting

必需:headline, image, datePublished, author 推荐:dateModified, publisher, description

Product

必需:name, image, offers(价格 + 库存状态) 推荐:sku, brand, aggregateRating, review

FAQPage

必需:mainEntity(Question/Answer 对数组)

BreadcrumbList

必需:itemListElement(包含 position, name, item 的数组)


多种 Schema 类型

您可以使用 @graph 在一个页面上组合多种 Schema 类型:

{
  "@context": "https://schema.org",
  "@graph": [
    { "@type": "Organization", ... },
    { "@type": "WebSite", ... },
    { "@type": "BreadcrumbList", ... }
  ]
}

验证与测试

工具

常见错误

缺少必需属性 - 查阅 Google 文档了解必填字段

值无效 - 日期必须为 ISO 8601 格式,URL 必须完全限定,枚举值必须精确

与页面内容不匹配 - Schema 与页面上可见内容不一致


实现

静态网站

  • 直接在 HTML 模板中添加 JSON-LD
  • 使用 include/partial 实现可重用的 Schema

动态网站(React, Next.js)

  • 渲染 Schema 的组件
  • 为了实现 SEO 而进行服务端渲染
  • 将数据序列化为 JSON-LD

CMS / WordPress

  • 使用插件(Yoast, Rank Math, Schema Pro)
  • 修改主题
  • 使用自定义字段映射到结构化数据

输出格式

Schema 实现

// 完整的 JSON-LD 代码块
{
  "@context": "https://schema.org",
  "@type": "...",
  // 完整的标记
}

测试检查清单

  • 通过丰富结果测试验证
  • 无错误或警告
  • 与页面内容匹配
  • 包含所有必需属性

任务特定问题

  1. 这是什么类型的页面?
  2. 您希望实现哪些丰富结果?
  3. 有哪些数据可用于填充 Schema?
  4. 页面上是否存在现有的 Schema?
  5. 您使用的技术栈是什么?

相关技能

  • seo-audit:用于整体 SEO,包括 Schema 审查
  • ai-seo:用于 AI 搜索优化(Schema 帮助 AI 理解内容)
  • programmatic-seo:用于大规模模板化 Schema
  • site-architecture:用于面包屑导航结构和导航 Schema 规划

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

LeoYeAI/openclaw-marketing-skills

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," or "how long should I run this test." Use this whenever someone is comparing two approaches and wants to measure which performs better. For tracking implementation, see analytics-tra

LeoYeAI/openclaw-marketing-skills

When the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see paid-ads. For landing page copy, see copywriting.

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions '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,' or 'optimize for Claude/Gemini.' Use this whenever someone wants their content to be cited or surfaced by AI assistants and AI search engines. For traditional technical and on-page SEO audits, see seo-audit. For structured data implementation, see schema-markup.

LeoYeAI/openclaw-marketing-skills

When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "track conversions," "attribution," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wan

LeoYeAI/openclaw-marketing-skills

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o

LeoYeAI/openclaw-marketing-skills

Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Also use when the user mentions "cold outreach," "prospecting email," "outbound email," "email to leads," "reach out to prospects," "sales email," "follow-up email sequence," "nobody's replying to my emails," or "how do I write a cold email." Covers subject lines, opening lines, body copy, CTAs, p

LeoYeAI/openclaw-marketing-skills

When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'battle card,' or 'competitor teardown.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you v

LeoYeAI/openclaw-marketing-skills

When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," "content planning," "editorial calendar," "content marketing," "content roadmap," "what content should I create," "blog topics," "content pillars," or "I don't know what to write." Use this whenever someone needs help deciding what content to produce,

LeoYeAI/openclaw-marketing-skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' 'copy sweep,' 'tighten this up,' 'this reads awkwardly,' 'clean up this text,' 'too wordy,' or 'sharpen the messaging.' Use this when the user already has copy and wants it improved rather than rewritten from scratch. For writing new copy, see copywriting.

LeoYeAI/openclaw-marketing-skills

When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "value proposition," "tagline," "subheadline," "hero section copy," "above the fold," "this copy is weak," "make this more compelling," or "help me describe my product." Use this whenever s

LeoYeAI/openclaw-marketing-skills

When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold out

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize any form that is NOT signup/registration — including lead capture forms, contact forms, demo request forms, application forms, survey forms, or checkout forms. Also use when the user mentions "form optimization," "lead form conversions," "form friction," "form fields," "form completion rate," "contact form," "nobody fills out our form," "form abandonment," "too many fields," "demo request form," or "lead form isn't converting." Use this for any non-signup form tha

LeoYeAI/openclaw-marketing-skills

When the user wants to plan, evaluate, or build a free tool for marketing purposes — lead generation, SEO value, or brand awareness. Also use when the user mentions "engineering as marketing," "free tool," "marketing tool," "calculator," "generator," "interactive tool," "lead gen tool," "build a tool for leads," "free resource," "ROI calculator," "grader tool," "audit tool," "should I build a free tool," or "tools for lead gen." Use this whenever someone wants to build something useful and give

LeoYeAI/openclaw-marketing-skills

Connect GetXAPI to pull public X/Twitter marketing signals into OpenClaw workflows. Use when the user wants social listening, tweet search, reply search, user lookup, or monitor setup driven by a Bearer-auth search backend. Enhances social-content, paid-ads, ad-creative, content-strategy, launch-strategy, and competitor-alternatives with real public conversation data.

LeoYeAI/openclaw-marketing-skills

Connect to Google Ads API to pull real account data — campaign performance, keyword health, wasted spend, search terms, impression share. Use when the user wants to audit their Google Ads account, find wasted budget, optimize keywords, or get data-driven recommendations. Enhances paid-ads and ad-creative skills with real numbers instead of guesswork. Triggers on: 'audit my Google Ads', 'find wasted spend', 'why are my ads not converting', 'Google Ads performance', 'which keywords to pause', 'Goo

LeoYeAI/openclaw-marketing-skills

When the user wants to plan a product launch, feature announcement, or release strategy. Also use when the user mentions 'launch,' 'Product Hunt,' 'feature release,' 'announcement,' 'go-to-market,' 'beta launch,' 'early access,' 'waitlist,' 'product update,' 'how do I launch this,' 'launch checklist,' 'GTM plan,' or 'we're about to ship.' Use this whenever someone is preparing to release something publicly. For ongoing marketing after launch, see marketing-ideas.

LeoYeAI/openclaw-marketing-skills

When the user wants to create, plan, or optimize a lead magnet for email capture or lead generation. Also use when the user mentions "lead magnet," "gated content," "content upgrade," "downloadable," "ebook," "cheat sheet," "checklist," "template download," "opt-in," "freebie," "PDF download," "resource library," "content offer," "email capture content," "Notion template," "spreadsheet template," or "what should I give away for emails." Use this for planning what to create and how to distribute

LeoYeAI/openclaw-marketing-skills

When the user needs marketing ideas, inspiration, or strategies for their SaaS or software product. Also use when the user asks for 'marketing ideas,' 'growth ideas,' 'how to market,' 'marketing strategies,' 'marketing tactics,' 'ways to promote,' 'ideas to grow,' 'what else can I try,' 'I don't know how to market this,' 'brainstorm marketing,' or 'what marketing should I do.' Use this as a starting point whenever someone is stuck or looking for inspiration on how to grow. For specific channel execution, see the relevant skill (paid-ads, social-content, email-sequence, etc.).

LeoYeAI/openclaw-marketing-skills

When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' 'consumer behavior,' 'anchoring,' 'social proof,' 'scarcity,' 'loss aversion,' 'framing,' or 'nudge.' Use this whenever someone wants to understand or leverage how people think and make decisions in a marketing context.

LeoYeAI/openclaw-marketing-skills

Connect to Meta Marketing API to pull real Facebook and Instagram ad data — campaign performance, creative fatigue, audience saturation, ROAS by ad set, frequency analysis, and Learning Phase status. Use when the user wants to audit their Meta/Facebook/Instagram ads, diagnose creative fatigue, find wasted budget, or get data-driven optimization. Enhances paid-ads and ad-creative skills with real Meta data. Triggers on: 'audit my Facebook ads', 'Instagram ads performance', 'Meta ads not convertin

相关技能