---
name: schema-markup-generator
description: "Writes valid JSON-LD structured data for a page or a page template: Organization and WebSite, Article and BlogPosting, Product and Offer, SoftwareApplication, BreadcrumbList, FAQPage and more. It checks existing markup first, picks types by what the page is and what Google supports today, fills properties only with facts visible on the page, links entities with stable @id values and says which validations were run. Use when someone asks for schema markup, structured data, JSON-LD, rich results, product or article schema, organization schema, FAQ schema, or how to fix structured data errors in Search Console."
license: MIT
compatibility: "Any AI agent. Reading the live page needs web fetch (raw HTML to see existing markup). Validation uses Google's Rich Results Test and the Schema Markup Validator, which the user or a browser tool runs."
metadata:
  title: "Schema markup generator"
  category: "SEO: technical"
  requires: "none"
  data-needed: "None"
  slate-tools: "get_brand_context, web_research, seo_page_audit (Slate MCP); Brand Kit, Web research and Page audit in the Slate app"
  slate-signup: "https://app.slatehq.ai/register"
  homepage: "https://slatehq.com/skills/schema-markup-generator"
  author: "Slate"
  version: "1.0.0"
---

# Schema markup generator

Produces JSON-LD that is valid, truthful and worth having: the right types for the page, every property backed by a fact a visitor can see, entities connected through one `@graph`, and a clear note on which markup can earn a Google rich result and which only describes the page. Generic attempts paste a template full of placeholders, promise FAQ stars Google no longer shows, or add a second Organization block that contradicts the plugin's. This skill checks what is already there, writes for the template rather than one page where it can, and lists what still needs confirming. In [Slate](https://slatehq.com) it also reads your Brand Kit, so organization and product details come from one place instead of being retyped.

## When to use

- "Add schema to this page", "write JSON-LD for our product pages", "structured data for our blog", "organization schema", "software application markup", "breadcrumb schema", "why don't we get rich results", "fix the structured data errors in Search Console", "FAQ schema".
- A new template going live, a site with no structured data, or errors in Search Console's enhancement reports.
- Not for a full technical check of the site: use `technical-seo-audit`.
- Not for making a page easier for AI engines to quote overall (answer blocks, entities, FAQ shaping): use `aeo-page-optimizer`.
- Not for local business listings and map presence: use `local-seo-audit`.

## What you need

Required:
- **The page or template**: a URL, several URLs of one template, or the page content pasted.

Ask for, or assume and state:
- **Business facts** for Organization: legal and brand name, logo URL, official social profiles, support contact. Default: what the site shows, with gaps listed.
- **Page facts** by type: author name and profile page, publish and update dates (articles); price, currency, availability, SKU or GTIN, brand and any on-page ratings (products); price or "free", operating system, category and on-page ratings (software).
- **Platform**: CMS, theme and SEO plugin. WordPress SEO plugins, Shopify themes and site builders often emit schema already; you must extend or replace it, not duplicate it.
- **Deployment**: template code, a CMS field or a tag manager. Default: template code in the server HTML.

## Data and tools

- **In Slate:** Brand Kit holds the company profile and products; Web research reads the page; Page audit reports the structured data it finds on a URL.
- **With the Slate MCP server:** `get_brand_context` for organization and product facts; `web_research` with `action: "scrape"` and `extract_mode: "json"`, with a `prompt` such as "list every visible fact: product names, prices, currencies, dates, author names, ratings, questions and answers"; `seo_page_audit` on the URL to see existing structured data and its issues.
- **Without Slate:** fetch the raw HTML and pull every `<script type="application/ld+json">` block, plus `itemprop` (microdata) and `typeof` (RDFa) attributes; compare with the rendered page for JSON-LD injected by scripts. Validation: the Schema Markup Validator (validator.schema.org) for syntax and Google's Rich Results Test for eligibility; neither has a public API, so the user or a browser tool runs them. After deployment, Search Console's enhancement reports show errors across the site.

## Procedure

1. **Name the page type and the goal.** What is this page (homepage, article, product, app, category, docs, pricing)? Is the goal a Google rich result, or clearer entity information for search and AI engines? Both are valid; they lead to different choices.
2. **Detect existing markup.** List every block and its source (theme, plugin, tag manager, hand-written), in raw and rendered HTML. Note duplicates and conflicts (two Organization names, two Product blocks with different prices). Decide per block: keep, extend, or replace.
3. **Choose the types.** Check Google's structured data search gallery for what is supported now, because features get retired. Split the plan into two columns:
   - **Rich result eligible** (examples: Article, Breadcrumb, Product, Software app, Review snippet, Organization, Event, Job posting, Video, Q&A, Discussion forum, Profile page, Course list).
   - **Description only**, no Google rich result (examples: FAQPage, HowTo, WebSite, WebPage, Person on its own). Add these only when accurate and useful; never promise a visual result from them.
4. **Collect facts.** Every value must be visible on the page or verifiably true (the logo URL resolves, the social profiles are official). Anything missing goes on a "To confirm" list. Live markup never contains placeholders or guessed values.
5. **Build one graph.** Put the page's entities in a single `@graph` with stable `@id` values: `https://example.com/#organization`, `https://example.com/#website`, `<page URL>#webpage`, `<page URL>#article` or `#product`. Define the Organization once and reference it from `publisher`, `brand` or `provider`. Reuse the same `@id` on every page.
6. **Fill properties.** Required properties first, then recommended ones that apply. Read `references/json-ld-templates.md` for templates and Google's required fields per type. Formats: ISO 8601 dates with a timezone, absolute URLs, prices as numbers without symbols, ISO 4217 currency codes, availability as a schema.org URL.
7. **Apply the review rules.** Mark up only ratings and reviews collected from your own users and shown on the page. No review stars on your own Organization or LocalBusiness. Never copy a review site's score into your markup.
8. **Plan placement.** Generate markup from CMS fields in the template, so 500 product pages stay correct when prices change. Put it in the server HTML; prices and availability must not depend on scripts. One `<script type="application/ld+json">` per page holding the graph.
9. **Validate and say what ran.** Syntax in the Schema Markup Validator, eligibility in the Rich Results Test for supported types, then Search Console's enhancement reports one to two weeks after release. The report states which checks were run and which are left to the user.
10. **Keep it in step.** `dateModified` changes when the content changes; prices, availability and ratings change with the page; markup is removed when its content is removed.

## Decision rules

- Structured data is not a ranking factor in itself, and valid markup doesn't guarantee a rich result. Say so when the user expects stars.
- If a fact isn't on the page, it doesn't go in the markup.
- One source of truth per entity: if a plugin outputs Organization, configure the plugin rather than adding a second block.
- Prefer the most specific type that fits (`BlogPosting` over `CreativeWork`, `SoftwareApplication` or `WebApplication` for a SaaS product page).

## Output

```markdown
## Structured data: <page or template>, <date>
Goal: <rich result / entity clarity / fix errors>. Existing markup: <none / list, with source and decision>.

### Type plan
| Type | Purpose (rich result / description only) | Google feature status | Required properties filled | Facts from |

### JSON-LD
<one script block with the @graph, ready to paste or to template>

### Template field mapping (for templates)
| Property | CMS field or rule |

### To confirm
- <fact>: <why it is missing, who can confirm>

### Deployment and validation
- Placement: <template, head or body, server-rendered>
- Validated: <Schema Markup Validator: yes/no; Rich Results Test: yes/no, result>
- After release: check <Search Console report> in 1-2 weeks
```

## Quality checks

- The JSON parses, every block has `@context` and `@type`, and every `@id` is an absolute URL.
- Every value matches visible page content; none is a placeholder.
- No duplicate or conflicting entity remains between new and existing markup.
- Google feature status was checked against the current search gallery, not memory.
- Ratings follow the review rules; there are no self-serving stars.
- The report says which validations were run and which were not.

## Common mistakes

- **Promising FAQ or HowTo rich results.** Google doesn't show them for ordinary sites. Use the markup only as description, if at all.
- **Placeholders in live code.** `"price": "XX"` or an example logo URL in production is worse than no markup.
- **Duplicating the plugin.** Two Organization blocks with different names confuse every consumer. Extend the existing source.
- **Marking up what isn't shown.** Hidden FAQs or ratings that aren't on the page break Google's guidelines and can lead to a manual action.
- **Hand-pasting per page.** Hard-coded prices go stale. Generate from template fields.
- **Isolated blocks.** Unlinked Article, Organization and WebPage blocks lose the relationships an `@graph` with `@id` keeps.

## Related skills

- `technical-seo-audit`: finds the templates with missing or broken markup.
- `aeo-page-optimizer`: shape the page itself so AI engines can quote it.
- `entity-consistency-audit`: make the organization's facts match across the web.
- `local-seo-audit`: LocalBusiness markup alongside the wider local picture.
- `seo-regression-monitor`: catch a deploy that drops the markup.
