跳到主要内容

schema-markup-generator 标准

Generate structured data markup (JSON-LD) for rich results, AI search visibility, and enhanced SERP features. Supports Article, FAQ, HowTo, Product, Review, LocalBusiness, Event, BreadcrumbList, Person, Organization, and more. Use when the user needs schema markup, structured data, rich snippets, JSON-LD, or wants to improve search appearance.

在 GitHub 打开

安装方式

cp -r skills/schema-markup-generator ~/.claude/skills/schema-markup-generator

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/thatrebeccarae/claude-marketing.git

依赖与权限

  • 无需 API Key
  • 需要联网访问外部服务
  • 依赖外部命令:git
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
触发场景
structured datarich snippetsJSON-LDwants to improve

SKILL.md 正文

来源 thatrebeccarae/claude-marketing@a8a63ec · 许可 MIT · 内容未修改

Schema Markup Generator

Generate JSON-LD structured data for rich results, AI citations, and enhanced search visibility.

Install

git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/schema-markup-generator ~/.claude/skills/

When to Use

  • Adding structured data to new or existing pages
  • Generating JSON-LD for specific schema types
  • Auditing existing schema for errors or missing fields
  • Improving AI search visibility (pairs with aeo-geo-optimizer)
  • Enabling rich results (FAQ dropdowns, star ratings, how-to steps)

Workflow

Step 1: Identify Content Type

ContentPrimary SchemaRich Result
Blog postArticleEnhanced listing with author, date
FAQ sectionFAQPageExpandable Q&A in SERPs
TutorialHowToStep-by-step with images/time
Product pageProductPrice, availability, ratings
ReviewReview + RatingStar ratings in SERPs
RecipeRecipeCooking time, ingredients, ratings
EventEventDate, location, ticket info
Local businessLocalBusinessMaps, hours, contact
Person/authorPersonKnowledge panel
BreadcrumbsBreadcrumbListBreadcrumb trail in SERPs
VideoVideoObjectVideo carousel, thumbnails
SoftwareSoftwareApplicationApp info in SERPs
CourseCourseCourse info in SERPs
DatasetDatasetDataset search results

Step 2: Generate JSON-LD

Generate a <script type="application/ld+json"> block with all required and recommended fields for the schema type. Always use JSON-LD format (not Microdata or RDFa).

Step 3: Validate

  • Google Rich Results Test: https://search.google.com/test/rich-results
  • Schema.org Validator: https://validator.schema.org/
  • Check Google Search Console for structured data errors

Schema Templates

Article

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "Article Title (max 110 chars)",
  "description": "Brief description of the article",
  "author": {
    "@type": "Person",
    "name": "Author Name",
    "url": "https://example.com/author/name",
    "jobTitle": "Author Title",
    "sameAs": ["https://linkedin.com/in/author", "https://twitter.com/author"]
  },
  "publisher": {
    "@type": "Organization",
    "name": "Publisher Name",
    "logo": {"@type": "ImageObject", "url": "https://example.com/logo.png"}
  },
  "datePublished": "2026-03-18T00:00:00Z",
  "dateModified": "2026-03-18T00:00:00Z",
  "image": "https://example.com/article-image.jpg",
  "mainEntityOfPage": {"@type": "WebPage", "@id": "https://example.com/article-url"}
}

FAQPage

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What is the question?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "The complete answer text. Can include <a href=url>HTML links</a>."
      }
    }
  ]
}

HowTo

{
  "@context": "https://schema.org",
  "@type": "HowTo",
  "name": "How to Do Something",
  "description": "Brief description",
  "totalTime": "PT30M",
  "estimatedCost": {"@type": "MonetaryAmount", "currency": "USD", "value": "0"},
  "step": [
    {
      "@type": "HowToStep",
      "name": "Step 1 Title",
      "text": "Detailed step instructions",
      "image": "https://example.com/step1.jpg"
    }
  ]
}

Product

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Product Name",
  "description": "Product description",
  "image": "https://example.com/product.jpg",
  "brand": {"@type": "Brand", "name": "Brand Name"},
  "sku": "SKU-12345",
  "offers": {
    "@type": "Offer",
    "price": "29.99",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "url": "https://example.com/product"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.5",
    "reviewCount": "127"
  }
}

BreadcrumbList

{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {"@type": "ListItem", "position": 1, "name": "Home", "item": "https://example.com"},
    {"@type": "ListItem", "position": 2, "name": "Category", "item": "https://example.com/category"},
    {"@type": "ListItem", "position": 3, "name": "Current Page"}
  ]
}

Required vs Recommended Fields

Schema TypeRequired FieldsRecommended Fields
Articleheadline, author, datePublished, imagedateModified, publisher, description
FAQPagemainEntity (Question + Answer)—
HowToname, steptotalTime, estimatedCost, image
Productname, offers (price + currency + availability)brand, sku, aggregateRating, image
LocalBusinessname, addressphone, hours, geo, image, priceRange
Eventname, startDate, locationendDate, offers, image, performer
PersonnamejobTitle, url, sameAs, image

Common Mistakes

  1. Missing required fields — always check per-type requirements
  2. Incorrect date format — use ISO 8601 (YYYY-MM-DDTHH:MM:SSZ)
  3. Markup does not match visible content — schema must reflect what users see
  4. Using Microdata instead of JSON-LD — Google recommends JSON-LD
  5. Nesting errors — validate JSON syntax before deploying
  6. Duplicate schema — one schema block per type per page
  7. Self-referencing Organization — publisher should be the organization, not the page

Integration with Other Skills

  • aeo-geo-optimizer — Schema is a key AEO signal; implement types recommended by the AEO audit
  • technical-seo-audit — Audit identifies missing/broken schema; this skill generates the fixes
  • seo-content-writer — Content structure should align with schema structure

质量与来源

所属仓库
thatrebeccarae/claude-marketing
仓库星标
163
最近更新
5 个月前
采集时间
今天
commit
a8a63ec1341f
内容指纹
sha256:fda6e2b1058614a
文件路径
skills/schema-markup-generator/SKILL.md

同仓库其它 Skill

查看全部 50 个
ab-testing-framework
A/B and multivariate testing methodology. Design experiments, calculate sample sizes, determine statistical significance, avoid common pitfalls, and interpret results. Platform-agnostic framework applicable to landing pages, emails, ads, pricing, and product features. Use when the user asks about A/B testing, split testing, experiment design, statistical significance, or conversion experiments.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
account-structure-review
Google and Meta paid media account structure evaluation. Audits campaign/ad set architecture against conversion volume minimums, budget thresholds, and targeting overlap. Identifies over-segmentation, under-segmentation, budget fragmentation, and structural anti-patterns blocking algorithmic learning. Provides consolidation roadmaps with migration plans. Use when inheriting accounts, quarterly health checks, or before scaling budgets.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
aeo-geo-optimizer
Answer Engine Optimization (AEO) and Generative Engine Optimization (GEO) specialist. Optimize content and websites to appear in AI-generated answers from ChatGPT, Perplexity, Claude, Google AI Overviews, and other LLM-powered search experiences. Use when the user asks about AI search optimization, AEO, GEO, AI Overviews, appearing in AI answers, LLM citations, or optimizing for generative search.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
brand-dna
Extract brand identity from a website URL — voice, colors, typography, imagery, values, and target audience — into a structured brand-profile.json. The profile feeds downstream skills (seo-content-writer, email-composer, frontend-design, pro-deck-builder, cross-platform-audit) for brand-consistent output. Use when the user says brand DNA, brand profile, extract brand, analyze brand, brand voice, brand identity, brand colors, or brand style guide.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
brand-voice-guidelines
Develop brand voice, tone matrices, messaging frameworks, and brand book documentation. Use when the user asks about brand voice, tone of voice, brand guidelines, messaging framework, or brand consistency.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
braze
Braze customer engagement platform expertise. Audit campaigns, Canvases, segments, messaging channels, and data architecture. Use when the user asks about Braze, customer engagement, push notifications, in-app messaging, cross-channel orchestration, or lifecycle marketing at scale.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端