Marketing Skill

Schema Markup

A schema markup skill that writes, fixes, and validates schema.org structured data as JSON-LD, so search engines understand what a page is and it can qualify for the rich results Google still supports. Your agent uses it when you want to add structured data to a page or find out why existing markup isn't doing anything.

Maintained by Corey Hainesv2.0.5Updated 2026-11-111 references
npx skills add coreyhaines31/marketingskills

Installs the full library — Schema Markup included

Add schema markup as a JSON-LD script in the page head or at the end of the body, using the type that matches the page: Organization and WebSite on a homepage, Article or BlogPosting on posts, Product or SoftwareApplication on product pages, BreadcrumbList anywhere with breadcrumbs. Combine several types with @graph. Every value has to reflect content visible on the page, dates must be ISO 8601, URLs fully qualified, and enumerations exact. Before chasing a search appearance, check Google's supported structured data gallery: a valid schema.org type isn't automatically a Google feature. FAQ rich results stopped showing on May 7, 2026, HowTo rich results were retired in September 2023, and the sitelinks search box went in November 2024. Validate with the Schema.org Validator, and with the Rich Results Test for supported features.

How the Schema Markup skill works

  1. 1

    Assess the page and goal

    The agent reads your product marketing context if it exists, then establishes the page type and its primary content, what schema is already on the page and whether it has errors, which rich results already appear, and which ones you're targeting. It also asks what data is available to populate the markup and what your tech stack is.

  2. 2

    Check Google feature support

    Before writing markup for a search appearance, the agent checks it against Google's current supported structured data gallery. If you ask for FAQ or HowTo rich results or a sitelinks search box, it explains that these Google appearances are retired and asks which consumer actually needs the markup, rather than implementing code that can't produce the result.

  3. 3

    Choose types and required properties

    The agent maps the page to schema types and fills required properties first: name and url for Organization; headline, image, datePublished, and author for Article; name, image, and offers for Product. Then it adds recommended ones like logo, sameAs, dateModified, and brand, but only where the page shows that content.

  4. 4

    Write the JSON-LD

    The agent writes one complete JSON-LD block, using @graph with @id references when several types share a page, such as a WebSite whose publisher points to the Organization. For Next.js or React it renders the script server-side and escapes every < in the serialized JSON as \u003c, so a stray script-closing tag in your data can't break the page.

  5. 5

    Validate and hand off

    The output ends with a testing checklist: the target appearance is currently supported or a separate consumer is identified, the markup passes the Schema.org Validator, supported features pass the Rich Results Test, required-field errors are fixed, recommended-field warnings are reviewed, and every value matches the visible page. Search Console's enhancement reports then confirm detection over time.

When to use it

Your agent reaches for this skill when you ask for things like:

“schema markup”“structured data”“JSON-LD”“rich snippets”“schema.org”“FAQ schema”“product schema”“review schema”“breadcrumb schema”“Google rich results”

What's inside

The playbook covers

Initial AssessmentCore PrinciplesCommon Schema TypesQuick ReferenceMultiple Schema TypesValidation and TestingImplementationOutput FormatTask-Specific Questions

See it in action

You ask

Add schema markup to our SaaS product's homepage. We're a project management tool called TaskFlow. We need Organization schema and any other relevant types.

The skill delivers
TaskFlow homepage · JSON-LD @graph

{ "@context": "https://schema.org", "@graph": [ { "@type": "Organization", "@id": "https://taskflow.com/#organization", "name": "TaskFlow", "url": "https://taskflow.com", "logo": "https://taskflow.com/logo.png", "sameAs": ["https://linkedin.com/company/taskflow", "https://x.com/taskflow"] }, { "@type": "WebSite", "@id": "https://taskflow.com/#website", "name": "TaskFlow", "url": "https://taskflow.com", "publisher": { "@id": "https://taskflow.com/#organization" } }, { "@type": "SoftwareApplication", "name": "TaskFlow", "applicationCategory": "BusinessApplication", "operatingSystem": "Web, iOS, Android", "offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }, "publisher": { "@id": "https://taskflow.com/#organization" } } ] }

Implementation notes

Left out on purpose: - SearchAction on WebSite. Google retired the sitelinks search box in November 2024, so it won't bring the box back. WebSite stays for your site name. - aggregateRating. Only add it if ratings are visible on the homepage and come from real reviews. Don't add it just to chase stars. - FAQPage. If the homepage has a visible FAQ you can mark it up for semantics, but Google stopped showing FAQ rich results on May 7, 2026. Replace the price with your real entry plan, and keep sameAs to profiles you actually run. Render this server-side and escape < as \u003c in the serialized JSON. Then run the Schema.org Validator and the Rich Results Test.

More things to ask

Real requests the skill is tested against:

  • We have a FAQ page with 20 questions about our product. How do I add FAQ schema to get the rich results in Google?

  • add schema to our blog posts. we publish articles about marketing tips.

  • We're an e-commerce site selling physical products. What schema markup do we need for our product pages?

  • We added schema markup to our site but it's not showing rich results in Google. Can you help debug?

  • Our organic search traffic dropped after a site redesign. Can you do a technical SEO audit?

FAQ

What schema should a SaaS homepage have?

Usually Organization (name, url, logo, sameAs for social profiles), WebSite for the site name, and SoftwareApplication with offers, combined in one @graph and linked with @id references. Add BreadcrumbList on inner pages that show breadcrumbs. Only include aggregateRating if real ratings are visible on the page. Marking up content that isn't there breaks the accuracy rule every schema implementation depends on.

Does FAQ schema still work in Google?

Not for rich results. Google stopped showing FAQ rich results on May 7, 2026 and removed the feature's documentation in June, and the earlier exception for government and health sites no longer applies. FAQPage is still valid schema.org vocabulary for visible FAQ content if another consumer needs it. Just don't implement it expecting expandable results in Google, and don't treat a missing Rich Results Test detection as broken markup.

Why isn't my schema markup showing rich results?

First check that the appearance still exists. HowTo, FAQ, and the sitelinks search box are all retired in Google. If the feature is supported, run the Rich Results Test and the Schema.org Validator for missing required properties, non-ISO 8601 dates, relative URLs, or wrong enumerations. Then confirm the markup matches visible content. Even valid markup only makes a page eligible, and Search Console's enhancement reports show whether Google detected it.

Should I use JSON-LD, Microdata, or RDFa?

JSON-LD. Google recommends it, and it lives in a single script block in the head or at the end of the body instead of being woven through your HTML, so it's easier to maintain and keep in sync. On static sites put it in a template or partial. On React or Next.js, render it from a component server-side. On WordPress, plugins such as Yoast, Rank Math, or Schema Pro can generate it.

How do I combine multiple schema types on one page?

Wrap them in an @graph array under a single @context. Give shared entities an @id, like https://example.com/#organization, and reference that @id from other nodes, such as WebSite.publisher, instead of repeating the full object. Every type in the graph still has to describe something actually on the page. Validate the whole block together, since one malformed node can hide errors in the rest.

How do I add JSON-LD safely in Next.js?

Build the schema object from your page data in a component, serialize it with JSON.stringify, and replace every < with \u003c before inserting it into a script tag of type application/ld+json. JSON escaping alone won't stop a product name containing a script-closing tag from ending the element early. Do this at the HTML embedding boundary, without stripping characters from the source data, and render it server-side so crawlers see it.

Related skills

Use it in your agent

Schema Markup is a plain SKILL.md folder, so the same skill loads in any agent that reads the skills format. Setup guides:

Build a tool for this workflow?

Marketers run this skill mid-task — the exact moment your tool matters. Partner tiers put your tool inside the skill their agent runs.

See partner tiers