agentleFS
darkweb19darkweb19/skills/schema-markup/SKILL.md

schema-markup

Skill0 starsChanged 28 days agoApache-2.0View on GitHub

When the user wants to implement, audit, or validate structured data (schema markup) on their website. Use when the user mentions 'structured data,' 'schema.org,' 'JSON-LD,' 'rich results,' 'rich snippets,' 'schema markup,' 'FAQ schema,' 'Product schema,' 'HowTo schema,' or 'structured data errors in Search Console.' Also use when someone asks why their content isn't showing rich results or wants to improve AI search visibility. NOT for general SEO audits (use seo-audit) or technical SEO crawl issues (use site-architecture).

61 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use internal-link-audit, product-marketing-context and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • semrushSkill

    internal-link-audit

    Audit internal linking to find orphan pages, broken internal links, crawl-depth problems, and weak anchor distribution, then plan the hub-and-spoke structure that fixes them. Use when the user asks about internal links, orphan pages, site architecture, crawl depth, or how to pass authority to priority pages.

    Also in 3 projects that use this

  • xfstudioSkill

    product-marketing-context

    When the user wants to create or update their product marketing context document. Also use when the user mentions 'product context,' 'marketing context,' 'set up context,' 'positioning,' or wants to avoid repeating foundational information across marketing tasks. Creates `.claude/product-marketing-context.md` that other marketing skills reference.

    Also in 19 projects that use this

  • LangChainSkill

    content-brief

    Turn a vague or multi-asset design ask into a brief. Pull what is already known, ask at most two questions with reasons, decide the rest and say what you decided.

    Also in 5 projects that use this

  • ukunal91appSkill

    revops

    When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and processes that connect marketing to revenue. For cold outreach emails, see cold-email. For email drip campaigns, see email-sequence. For pricing decisions, see pricing-strategy.

    Also in 14 projects that use this

  • alaraakcasizSkill

    technical-seo-audit

    Technical and on-page SEO audit of any website — a client site, your own site, a competitor, or a staging build before a CMS migration. Use this skill whenever the user asks for an SEO audit, technical SEO audit, on-page audit, site health check, crawl analysis, or the SEO section of a broader digital marketing audit. Also trigger for migration/replatform work ("are we losing pages", "build a redirect map", "compare old site vs new site", Webflow to Framer, WordPress to Shopify, any CMS to any CMS), and whenever the user uploads Screaming Frog exports (internal_all.csv, image_details.csv, All Inlinks), a GSC Pages export, or a sitemap and wants them analysed. Covers indexability, canonicals, crawl directives, headings, titles and metas, alt text, schema markup, page speed, robots.txt, llms.txt, internal linking, page-inventory diffing and redirect mapping.

    Also in 3 projects that use this

  • buildingwithaiSkill

    sales-enablement

    Master world-class sales enablement from foundations to execution. Build comprehensive enablement programs, develop effective training and coaching systems, implement data-driven content strategies, leverage AI and modern technology stacks, establish cross-functional collaboration, measure ROI with precision, and drive revenue growth. Covers sales methodologies (MEDDIC, SPICED, BANT), maturity models (Forrester, Gartner), enablement frameworks, change management, remote enablement, market segment strategies (SMB, Mid-Market, Enterprise), and team building. Based on 2024-2025 industry research from Gartner, Forrester, Product Marketing Alliance, Sales Enablement Collective, and leading practitioners.

    Also in 14 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 9 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 58 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If .claude/product-marketing-context.md exists, read it before asking questions.

    line 19
  2. Distinctive:

    Do they have any existing schema markup?

    line 24
  3. Distinctive:

    When they have a site and want to know what schema exists and what's broken.

    line 43
  4. Very specific:

    Run scripts/schema_validator.py on the page HTML (or paste URL for manual check)

    line 45
  5. Distinctive:

    When they need to add structured data to pages — from scratch or to a new page type.

    line 51
  6. Distinctive:

    When schema exists but rich results aren't showing or GSC reports errors.

    line 60
  7. Distinctive:

    Test at rich-results.google.com and validator.schema.org

    line 62
  8. Very specific:

    Always add BreadcrumbList to any non-homepage if breadcrumbs exist on the page

    line 86
  9. Very specific:

    Never add Product to a page that doesn't sell a product — Google will penalize misuse

    line 88
  10. Distinctive:

    Use JSON-LD. Full stop. Google recommends it, it's the easiest to maintain, and it doesn't require touching your HTML markup.

    line 96
  11. Distinctive:

    Add FAQPage schema to any page with Q&A content — even if it's just 3 questions

    line 159
  12. Very specific:

    Add author with sameAs pointing to real author profiles (LinkedIn, Wikipedia, Google Scholar)

    line 160
  13. Very specific:

    Add Organization with sameAs linking your social profiles and Wikidata entry

    line 161
  14. Very specific:

    Keep datePublished and dateModified accurate — AI systems filter by freshness

    line 162
  15. Distinctive:

    Always test before publishing.

    line 168
  16. Distinctive:

    All output follows the structured communication standard:

    line 220

“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Schema Markup Implementation

You are an expert in structured data and schema.org markup. Your goal is to help implement, audit, and validate JSON-LD schema that earns rich results in Google, improves click-through rates, and makes content legible to AI search systems.

Before Starting

Check for context first: If .claude/product-marketing-context.md exists, read it before asking questions. Use that context and only ask for what's missing.

Gather this context:

1. Current State

  • Do they have any existing schema markup? (Check source, GSC Coverage report, or run the validator script)
  • Any rich results currently showing in Google?
  • Any structured data errors in Search Console?

2. Site Details

  • CMS platform (WordPress, Webflow, custom, etc.)
  • Page types that need markup (homepage, articles, products, FAQ, local business)
  • Can they edit <head> tags, or do they need a plugin/GTM?

3. Goals

  • Rich results target (FAQ dropdowns, star ratings, breadcrumbs, HowTo steps, etc.)
  • AI search visibility (getting cited in AI Overviews, Perplexity, etc.)
  • Fix existing errors vs implement net new

How This Skill Works

Mode 1: Audit Existing Markup

When they have a site and want to know what schema exists and what's broken.

  1. Run scripts/schema_validator.py on the page HTML (or paste URL for manual check)
  2. Review Google Search Console → Enhancements → check all schema error reports
  3. Cross-reference against references/schema-types-guide.md for required fields
  4. Deliver audit report: what's present, what's broken, what's missing, priority order

Mode 2: Implement New Schema

When they need to add structured data to pages — from scratch or to a new page type.

  1. Identify the page type and the right schema types (see schema selection table below)
  2. Pull the JSON-LD pattern from references/implementation-patterns.md
  3. Populate with real page content
  4. Advise on placement (inline <script> in <head>, CMS plugin, GTM injection)
  5. Deliver complete, copy-paste-ready JSON-LD for each page type

Mode 3: Validate & Fix

When schema exists but rich results aren't showing or GSC reports errors.

  1. Test at rich-results.google.com and validator.schema.org
  2. Map errors to specific missing or malformed fields
  3. Deliver corrected JSON-LD with the broken fields fixed
  4. Explain why the fix works (so they don't repeat the mistake)

Schema Type Selection

Pick the right schema for the page — stacking compatible types is fine, but don't add schema that doesn't match the page content.

Page TypePrimary SchemaSupporting Schema
HomepageOrganizationWebSite (with SearchAction)
Blog post / articleArticleBreadcrumbList, Person (author)
How-to guideHowToArticle, BreadcrumbList
FAQ pageFAQPage—
Product pageProductOffer, AggregateRating, BreadcrumbList
Local businessLocalBusinessOpeningHoursSpecification, GeoCoordinates
Video pageVideoObjectArticle (if video is embedded in article)
Category / hub pageCollectionPageBreadcrumbList
EventEventOrganization, Place

Stacking rules:

  • Always add BreadcrumbList to any non-homepage if breadcrumbs exist on the page
  • Article + BreadcrumbList + Person is a common triple for blog content
  • Never add Product to a page that doesn't sell a product — Google will penalize misuse

Implementation Patterns

JSON-LD vs Microdata vs RDFa

Use JSON-LD. Full stop. Google recommends it, it's the easiest to maintain, and it doesn't require touching your HTML markup. Microdata and RDFa are legacy.

Placement

<head>
  <!-- All other meta tags -->
  <script type="application/ld+json">
  { ... your schema here ... }
  </script>
</head>

Multiple schema blocks per page are fine — use separate <script> tags or nest them in an array.

Per-Page vs Site-Wide

ScopeWhat to DoExample
Site-wideOrganization schema in site template headerYour company identity, logo, social profiles
Site-wideWebSite schema with SearchAction on homepageSitelinks search box
Per-pageContent-specific schemaArticle on blog posts, Product on product pages
Per-pageBreadcrumbList matching visible breadcrumbsEvery non-homepage

CMS implementation shortcuts:

  • WordPress: Yoast SEO or Rank Math handle Article/Organization automatically. Add custom schema via their blocks for HowTo/FAQ.
  • Webflow: Add custom <head> code per-page or use the CMS to generate dynamic JSON-LD
  • Shopify: Product schema is auto-generated. Add Organization and Article manually.
  • Custom CMS: Generate JSON-LD server-side with a template that pulls real field values

Reference patterns

See references/implementation-patterns.md for copy-paste JSON-LD for every schema type listed above.


Common Mistakes

These are the ones that actually matter — the errors that kill rich results eligibility:

MistakeWhy It BreaksFix
Missing @contextSchema won't parseAlways include "@context": "https://schema.org"
Missing required fieldsGoogle won't show rich resultCheck required vs recommended in references/schema-types-guide.md
name field is empty or genericFails validationUse real, specific values — not "" or "N/A"
image URL is relative pathInvalid — must be absoluteUse https://example.com/image.jpg not /image.jpg
Markup doesn't match visible page contentPolicy violationNever add schema for content not on the page
Nesting Product inside ArticleInvalid type combinationKeep schema types flat or use proper nesting rules
Using deprecated propertiesIgnored by validatorsCross-check against current schema.org — types evolve
Date in wrong formatFails ISO 8601 checkUse "2024-01-15" or "2024-01-15T10:30:00Z"

Schema and AI Search

This is increasingly the reason to care about schema — not just Google rich results.

AI search systems (Google AI Overviews, Perplexity, ChatGPT Search, Bing Copilot) use structured data to understand content faster and more reliably. When your content has clean schema:

  • AI systems parse your content type — they know it's a HowTo vs an opinion piece vs a product listing
  • FAQPage schema increases citation likelihood — AI systems love structured Q&A they can pull directly
  • Article schema with author and datePublished — helps AI systems assess freshness and authority
  • Organization schema with sameAs links — connects your entity across the web, boosting entity recognition

Practical actions for AI search visibility:

  1. Add FAQPage schema to any page with Q&A content — even if it's just 3 questions
  2. Add author with sameAs pointing to real author profiles (LinkedIn, Wikipedia, Google Scholar)
  3. Add Organization with sameAs linking your social profiles and Wikidata entry
  4. Keep datePublished and dateModified accurate — AI systems filter by freshness

Testing & Validation

Always test before publishing. Use all three:

  1. Google Rich Results Test — https://search.google.com/test/rich-results
    • Tells you if Google can parse the schema
    • Shows exactly which rich result types are eligible
    • Shows warnings vs errors (errors = no rich result, warnings = may still work)
  2. Schema.org Validator — https://validator.schema.org
    • Broader validation against the full schema.org spec
    • Catches errors Google might miss or that affect other parsers
    • Good for structured data targeting non-Google systems
  3. scripts/schema_validator.py — run locally on any HTML file
    • Extracts all JSON-LD blocks from a page
    • Validates required fields per schema type
    • Scores completeness 0-100
    • Run: python3 scripts/schema_validator.py page.html
  4. Google Search Console (after deployment)
    • Enhancements section shows real-world errors at scale
    • Takes 1-2 weeks to update after deployment
    • The only place to see rich results performance data (impressions, clicks)

Proactive Triggers

Surface these without being asked:

  • FAQPage schema missing from FAQ content → any page with Q&A format and no FAQPage schema is leaving easy rich results on the table. Flag it and offer to generate.
  • image field missing from Article schema → this is a required field for Article rich results. Google won't show the article card without it.
  • Schema added via GTM → GTM-injected schema is often not indexed by Google because it renders client-side. Recommend server-side injection.
  • dateModified older than datePublished → this is impossible and will fail validation. Flag and fix.
  • Multiple conflicting @type on same entity → e.g., LocalBusiness and Organization both defined separately for the same company. Should be combined or one should extend the other.
  • Product schema without offers → a Product with no Offer (price, availability, currency) won't earn a product rich result. Flag the missing Offer block.

Output Artifacts

When you ask for...You get...
Schema auditAudit report: schemas found, required fields present/missing, errors, completeness score per page, priority fixes
Schema for a page typeComplete JSON-LD block(s), copy-paste ready, populated with placeholder values clearly marked
Fix my schema errorsCorrected JSON-LD with change log explaining each fix
AI search visibility reviewEntity markup gap analysis + FAQPage + Organization sameAs recommendations
Implementation planPage-by-page schema implementation matrix with CMS-specific instructions

Communication

All output follows the structured communication standard:

  • Bottom line first — answer before explanation
  • What + Why + How — every finding has all three
  • Actions have owners and deadlines — no "we should consider"
  • Confidence tagging — 🟢 verified (test passed) / 🟡 medium (valid but untested) / 🔴 assumed (needs verification)

Related Skills

  • seo-audit: For full technical and content SEO audit. Use seo-audit when the problem spans more than just structured data. NOT for schema-specific work — use schema-markup.
  • site-architecture: For URL structure, internal linking, and navigation. Use when architecture is the root cause of SEO problems, not schema.
  • content-strategy: For what content to create. Use before implementing Article schema so you know what pages to prioritize. NOT for the schema itself.
  • programmatic-seo: For sites with thousands of pages that need schema at scale. Schema patterns from this skill feed into programmatic-seo's template approach.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.