Command Palette

Search for a command to run...

Back to skills
skill № 76033

generate-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…

FreeNo executable scripts
rondoflowby rondoflow★ 37 GitHub stars

Install generate-schema-markup in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Schema Markup

Implement schema.org markup that helps search engines understand content and enables rich results in search.

Installation

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install schema-markup

When to Use

  • Adding structured data to new or existing pages
  • Fixing schema validation errors
  • Optimizing for specific rich results (FAQ, product, article)
  • Implementing JSON-LD in React/Next.js applications
  • Auditing existing schema markup

Initial Assessment

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? 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 on the page
  • Keep updated when content changes

2. Use JSON-LD

  • Google recommends JSON-LD format
  • Easier to implement and maintain than microdata or RDFa
  • Place in <head> or before </body>

3. Follow Google's Guidelines

  • Only use markup Google supports for rich results
  • Avoid spam tactics
  • Review eligibility requirements for each type

4. Validate Everything

  • Test before deploying
  • Monitor Search Console enhancement reports
  • 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 with required/recommended field annotations: 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

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": "..." }.

Validation and Testing

Tools

Common Errors

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")

Implementation

Static Sites

  • Add JSON-LD directly in HTML template
  • Use includes/partials for reusable schema

Dynamic Sites (React, Next.js)

export function JsonLd({ data }: { data: Record<string, unknown> }) {
  return (
    <script
      type="application/ld+json"
      dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}
    />
  );
}

CMS / WordPress

  • Plugins: Yoast, Rank Math, Schema Pro
  • Theme modifications for custom types
  • Custom fields mapped to structured data

Testing Checklist

  • Validates in Rich Results Test with no errors
  • No warnings for recommended properties
  • Schema content matches visible page content
  • All required properties included for each type
  • URLs are fully qualified
  • Dates are ISO 8601 format
  • Prices are numeric without currency symbols

Task-Specific Questions

Before implementing, gather answers to:

  1. What type of page is this? (product, article, FAQ, local business)
  2. What rich results are you targeting? (FAQ dropdown, pro
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • manifest.json

FAQ

What does the generate-schema-markup skill do?

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.

How do I install the generate-schema-markup skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the generate-schema-markup skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare generate-schema-markup with