Catalog
coreyhaines31/schema-markup

coreyhaines31

schema-markup

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.

global
version:1.1.0
0installs0uses~1.3k
v1.1Saved Apr 20, 2026

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-context.md exists (or .claude/product-marketing-context.md 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?

  • 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
Files3
3 files · 15.0 KB

Select a file to preview

Overall Score

86/100

Grade

A

Excellent

Safety

95

Quality

88

Clarity

85

Completeness

82

Summary

This skill guides agents through implementing schema.org structured data markup (JSON-LD format) to enable rich search results. It covers common schema types (Organization, Article, Product, FAQ, etc.), provides complete code examples, explains validation and testing approaches, and includes decision-making guidance for selecting appropriate schema types based on page content.

Detected Capabilities

Schema type selection and recommendation based on page contentJSON-LD code generation for 10+ common schema typesMulti-schema implementation using @graph patternSchema validation guidance using Google Rich Results Test and Schema.org ValidatorCMS/framework-specific implementation advice (static, dynamic, React/Next.js, WordPress)Common schema errors diagnosis and correctionProduct context integration (reads product-marketing-context.md if available)

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

add schema markupimplement structured datajson-ldfaq schemaproduct schemarich resultsgoogle rich snippetsschema validation

Risk Signals

INFO

External domain references in examples (facebook.com, linkedin.com, twitter.com, schema.org, search.google.com, validator.schema.org)

SKILL.md Quick Reference section and references/schema-examples.md examples
INFO

Instruction to read product-marketing-context.md file if it exists

SKILL.md Initial Assessment section
INFO

No shell execution, no file writes, no credential access detected

Overall skill content

Referenced Domains

External domains referenced in skill content, detected by static analysis.

example.comfacebook.comlinkedin.comschema.orgsearch.google.comtwitter.comvalidator.schema.org

Use Cases

  • Add Organization schema to company homepage for knowledge panel eligibility
  • Implement FAQ schema to show Q&A snippets in Google search results
  • Add Product schema with ratings and pricing to e-commerce pages
  • Implement Article/BlogPosting schema for blog content to appear in rich results
  • Add BreadcrumbList schema alongside other markup for improved navigation in search
  • Validate and debug existing schema markup for syntax errors and missing required properties

Quality Notes

  • Skill is well-structured with clear sections: assessment, principles, schema types, validation, implementation, examples
  • Comprehensive reference table of 8 common schema types with required properties
  • Supporting examples file (references/schema-examples.md) provides 11 complete, production-ready JSON-LD code samples
  • Includes implementation examples for static sites, dynamic sites, and specific frameworks (React/Next.js, WordPress)
  • Clear validation section with specific tool recommendations (Google Rich Results Test, Schema.org Validator, Search Console)
  • Includes common errors section addressing invalid values, missing properties, and content mismatch
  • Task-specific question checklist helps agents gather necessary context
  • Evals file demonstrates expected behavior across 6 realistic scenarios with clear assertions
  • Related skills cross-referenced (seo-audit, ai-seo, programmatic-seo, site-architecture) preventing scope creep
  • Initial assessment asks agent to check for product-marketing-context.md first, showing good context awareness
  • No error handling instructions provided for agent implementation failures or validation rejections
  • Skill assumes agent has access to project files and can understand JSON structure
Model: claude-haiku-4-5-20251001Analyzed: Apr 20, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

v1.1

Content updated

2026-04-20

Latest
v1.0

No changelog

2026-04-19

Add coreyhaines31/schema-markup to your library

Command Palette

Search for a command to run...