schema-markup
/schema-markup
Use when the user wants to add, fix, review or validate structured data (JSON-LD schema), or asks which schema type fits a page: LocalBusiness and its subtypes (RoofingContractor, HVACBusiness, Plumber, RealEstateAgent...), Organization, Service, BreadcrumbList, Article, FAQPage, Review or Product. Writes valid JSON-LD that matches visible page content.
- Author
- AmmarBabbar ↗
- Repository
- seo-skills ↗
- Licence
- MIT
- Last repository change
- 12.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 12
No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when the user wants to add, fix, review or validate structured data (JSON-LD schema), or asks which schema type fits a page: LocalBusiness and its subtypes (RoofingContractor, HVACBusiness, Plumber, RealEstateAgent...), Organization, Service, BreadcrumbList, Article, FAQPage, Review or Product. Writes valid JSON-LD that matches visible page content.
Original author description
Use when the user wants to add, fix, review or validate structured data (JSON-LD schema), or asks which schema type fits a page: LocalBusiness and its subtypes (RoofingContractor, HVACBusiness, Plumber, RealEstateAgent...), Organization, Service, BreadcrumbList, Article, FAQPage, Review or Product. Writes valid JSON-LD that matches visible page content.
How it works
- Before you start
- Choosing types
- Rules
- Example: homepage
- Example: service page
- Validation
- Output format
- Related skills
SKILL.md preview
---
name: schema-markup
description: Use when the user wants to add, fix, review or validate structured data (JSON-LD schema), or asks which schema type fits a page: LocalBusiness and its subtypes (RoofingContractor, HVACBusiness, Plumber, RealEstateAgent...), Organization, Service, BreadcrumbList, Article, FAQPage, Review or Product. Writes valid JSON-LD that matches visible page content.
---
# Schema Markup
You write clean, valid JSON-LD that describes the business and its pages accurately. Schema helps search engines and AI systems understand entities. It does not guarantee rich results.
## Before you start
1. Read `.agents/seo-context.md` for exact NAP, services, areas, hours and profiles.
2. Look at the page you are marking up. Schema must describe content that is visible on that page.
3. Check what schema already exists (plugins like Yoast, Rank Math or theme schema often add some). Avoid duplicate or conflicting entities.
## Choosing types
- **Homepage**: the most specific LocalBusiness subtype (e.g. `RoofingContractor`, `HVACBusiness`, `Plumber`, `Electrician`, `GeneralContractor`, `HousePainter`, `Locksmith`, `MovingCompany`, `RealEstateAgent`). If no subtype fits (for example junk removal), use `LocalBusiness` or `HomeAndConstructionBusiness`. Never invent types.
- **Service page**: `Service` with `serviceType`, `provider` (reference the business `@id`) and `areaServed`
- **Location page**: `Service` or a `LocalBusiness` reference with `areaServed` for that city. Only use a separate LocalBusiness with its own address if there is a real physical office there.
- **Blog post**: `BlogPosting` or `Article` with a real `author` (`Person`), `datePublished`, `dateModified`
- **All pages below home**: `BreadcrumbList`
- **FAQ**: `FAQPage` only if the Q&A is visible on the page. Since 2023 Google shows FAQ rich results only for well-known authoritative government and health sites, so do not promise stars or dropdowns.
## Rules
- Use one `@id` per entity (e.g. `https://example.com/#business`) and reference it, instead of repeating the business on every page.
- NAP must match the page and the Google Business Profile exactly.
- `sameAs`: Google Business Profile (Maps URL), Facebook, LinkedIn, YouTube, Yelp, BBB and other real profiles.
- Do not add `aggregateRating` / `Review` for the business on its own site. Self-serving reviews for LocalBusiness and Organization are not eligible for review stars and can be treated as spammy markup.
- For service-area businesses that hide their address, do not publish a street address in schema. Use `areaServed` and a city/region-level `address` only if it is public.
- No markup for content that is hidden, fake or not on the page.
## Example: homepage
```json
{
"@context": "https://schema.org",
"@type": "RoofingContractor",
"@id": "https://example.com/#business",
"name": "Example Roofing",
"url": "https://example.com/",
"logo": "https://example.com/logo.png",
"image": "https://example.com/images/crew.jpg",
"telephone": "+1-214-555-0100",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "Dallas",
"addressRegion": "TX",
"postalCode": "75201",
"addressCountry": "US"
},
"areaServed": [
{"@type": "City", "name": "Dallas"},
{"@type": "City", "name": "Plano"}
],
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],
"opens": "08:00",
"closes": "18:00"
}],
"sameAs": [
"https://maps.google.com/?cid=XXXXXXXX",
"https://www.facebook.com/exampleroofing"
]
}
```
## Example: service page
```json
{
"@context": "https://schema.org",
"@type": "Service",
"@id": "https://example.com/services/roof-repair/#service",
"serviceType": "Roof repair",
"name": "Roof Repair in Dallas",
"provider": {"@id": "https://example.com/#business"},
"areaServed": {"@type": "City", "name": "Dallas"},
"url": "https://example.com/services/roof-repair/"
}
```
All values above are placeholders. Replace them with real data from the context file and never ship placeholders.
## Validation
1. Google Rich Results Test (rich result eligibility)
2. Schema Markup Validator at validator.schema.org (syntax and types)
3. After launch: GSC Enhancements reports
## Output format
- Which types go on which page, and why
- Ready-to-paste JSON-LD per page or template
- Where to add it on their platform (plugin settings, theme header, tag manager as a last resort)
- Validation checklist
## Related skills
`seo-audit`, `on-page-seo`, `local-seo-audit`, `service-pages`, `location-pages`
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · AmmarBabbar/seo-skills | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| rootcastleco/rei-skills | 100 | MIT |
| karero/croftweaver | 100 | MIT |
| RomeoSEO/seo-skills | 100 | MIT |
| alirezarezvani/claude-skills | 100 | MIT |
| matteotitta/genesys-skills | 100 | MIT |
| fabiensalles/claude-marketplace | 100 | MIT |
| agent-skills-hub/agent-skills-hub | 100 | MIT |
Database snapshot: 13.11.2026 · package version 925b2e14e46c (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100seo-schema
Detect existing JSON-LD structured data on a page, validate against Google's rich-result requirements, and generate missing schema markup (Article, Product, LocalBusiness, FAQPage, BreadcrumbList). Produces paste-ready JSON-LD script blocks. Use when the user asks for "schema… - 100clickd-schema-markup
Generates, wires and validates JSON-LD structured data (Organization, LocalBusiness, Product, Service, Article, FAQPage, BreadcrumbList and WebSite) from the visible facts on a site's pages, and checks every page with clickd. Use when asked to add or fix schema.org JSON-LD… - 90schema
Generates valid schema.org JSON-LD structured data (Organization, WebSite, LocalBusiness, Product/Offer, Article, BreadcrumbList, FAQPage, Event, Service, SoftwareApplication, Review) from a page, a model or a description, and wires it into the project's templates. Use when the… - 90schema
Write JSON-LD structured data for a page, such as Article, Product, FAQPage, HowTo or Organization markup, and check that it parses. Use when someone asks for schema, schema markup, structured data, JSON-LD, rich results or rich snippets, or says a schema file is broken. - 100structured-data-for-ai-search
Use when the user wants to add, fix, or validate structured data (JSON-LD, schema.org) so search engines and AI answer engines read a page correctly: which types belong on which page, which properties Google requires, and whether the markup matches what the page shows. Also use… - 100schema-markup-generator
Audits structured data against the rich results Google Search Console reports and writes missing or broken JSON-LD for Organization, Breadcrumb, Article, Product, VideoObject and LocalBusiness. Use when asked for a schema audit, JSON-LD for a page, a video not indexed, or LocalBusiness schema.