Schema Markup

When the user wants to add, fix, or optimize schema markup and structured data on their site.

How to use it

  1. Hit Copy SKILL.md — or use the Claude Code line below to get every file.
  2. Claude: ⋯ → Download .md, then Customize → Skills → Add → Upload skill.
    ChatGPT: make a Project and paste it into Instructions.
    Neither? Paste it at the top of a new chat — it works for that chat.
  3. Describe your job in plain words. The AI follows the skill from there.
Claude Code — installs the whole folder, not just SKILL.md
npx degit coreyhaines31/marketingskills/skills/schema#main ~/.claude/skills/schema

For one project only, change the path to .claude/skills/schema. This skill also uses product-marketing-context.md, Next.js — copying SKILL.md alone won't be enough. See the folder on GitHub.

Not working?
  • Check which app you pasted it into — the steps above name the right one.
  • Some skills need the paid tier of Claude or ChatGPT.
Step-by-step guide with screenshots · Ask in the forum

Paste into Claude, ChatGPT or Cursor.

Show the full text180 lines
schema/SKILL.md180 lines5.1 KBpushed 130d agoRawView on 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 (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: 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
1---
2name: schema
3description: 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 their pages to show enhanced results in Google. For broader SEO issues, see seo-audit. For AI search optimization, see ai-seo.
4metadata:
5 version: 2.0.0
6---
7 
8# Schema Markup
9 
10You 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.
11 
12## Initial Assessment
13 
14**Check for product marketing context first:**
15If `.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.
16 
17Before implementing schema, understand:
18 
191. **Page Type** - What kind of page? What's the primary content? What rich results are possible?
20 
212. **Current State** - Any existing schema? Errors in implementation? Which rich results already appearing?
22 
233. **Goals** - Which rich results are you targeting? What's the business value?
24 
25---
26 
27## Core Principles
28 
29### 1. Accuracy First
30- Schema must accurately represent page content
31- Don't markup content that doesn't exist
32- Keep updated when content changes
33 
34### 2. Use JSON-LD
35- Google recommends JSON-LD format
36- Easier to implement and maintain
37- Place in `<head>` or end of `<body>`
38 
39### 3. Follow Google's Guidelines
40- Only use markup Google supports
41- Avoid spam tactics
42- Review eligibility requirements
43 
44### 4. Validate Everything
45- Test before deploying
46- Monitor Search Console
47- Fix errors promptly
48 
49---
50 
51## Common Schema Types
52 
53| Type | Use For | Required Properties |
54|------|---------|-------------------|
55| Organization | Company homepage/about | name, url |
56| WebSite | Homepage (search box) | name, url |
57| Article | Blog posts, news | headline, image, datePublished, author |
58| Product | Product pages | name, image, offers |
59| SoftwareApplication | SaaS/app pages | name, offers |
60| FAQPage | FAQ content | mainEntity (Q&A array) |
61| HowTo | Tutorials | name, step |
62| BreadcrumbList | Any page with breadcrumbs | itemListElement |
63| LocalBusiness | Local business pages | name, address |
64| Event | Events, webinars | name, startDate, location |
65 
66**For complete JSON-LD examples**: See [references/schema-examples.md](references/schema-examples.md)
67 
68---
69 
70## Quick Reference
71 
72### Organization (Company Page)
73Required: name, url
74Recommended: logo, sameAs (social profiles), contactPoint
75 
76### Article/BlogPosting
77Required: headline, image, datePublished, author
78Recommended: dateModified, publisher, description
79 
80### Product
81Required: name, image, offers (price + availability)
82Recommended: sku, brand, aggregateRating, review
83 
84### FAQPage
85Required: mainEntity (array of Question/Answer pairs)
86 
87### BreadcrumbList
88Required: itemListElement (array with position, name, item)
89 
90---
91 
92## Multiple Schema Types
93 
94You can combine multiple schema types on one page using `@graph`:
95 
96```json
97{
98 "@context": "https://schema.org",
99 "@graph": [
100 { "@type": "Organization", ... },
101 { "@type": "WebSite", ... },
102 { "@type": "BreadcrumbList", ... }
103 ]
104}
105```
106 
107---
108 
109## Validation and Testing
110 
111### Tools
112- **Google Rich Results Test**: https://search.google.com/test/rich-results
113- **Schema.org Validator**: https://validator.schema.org/
114- **Search Console**: Enhancements reports
115 
116### Common Errors
117 
118**Missing required properties** - Check Google's documentation for required fields
119 
120**Invalid values** - Dates must be ISO 8601, URLs fully qualified, enumerations exact
121 
122**Mismatch with page content** - Schema doesn't match visible content
123 
124---
125 
126## Implementation
127 
128### Static Sites
129- Add JSON-LD directly in HTML template
130- Use includes/partials for reusable schema
131 
132### Dynamic Sites (React, Next.js)
133- Component that renders schema
134- Server-side rendered for SEO
135- Serialize data to JSON-LD
136 
137### CMS / WordPress
138- Plugins (Yoast, Rank Math, Schema Pro)
139- Theme modifications
140- Custom fields to structured data
141 
142---
143 
144## Output Format
145 
146### Schema Implementation
147```json
148// Full JSON-LD code block
149{
150 "@context": "https://schema.org",
151 "@type": "...",
152 // Complete markup
153}
154```
155 
156### Testing Checklist
157- [ ] Validates in Rich Results Test
158- [ ] No errors or warnings
159- [ ] Matches page content
160- [ ] All required properties included
161 
162---
163 
164## Task-Specific Questions
165 
1661. What type of page is this?
1672. What rich results are you hoping to achieve?
1683. What data is available to populate the schema?
1694. Is there existing schema on the page?
1705. What's your tech stack?
171 
172---
173 
174## Related Skills
175 
176- **seo-audit**: For overall SEO including schema review
177- **ai-seo**: For AI search optimization (schema helps AI understand content)
178- **programmatic-seo**: For templated schema at scale
179- **site-architecture**: For breadcrumb structure and navigation schema planning
180 

Discussion

From GitHub

1 comment on 1 thread

Alternatives

Also in SEO & keywords