schema-markup
БесплатноБез исполняемых скриптовНе проверенAdds, repairs and verifies schema.org structured data (JSON-LD) on a website, and says honestly which Google rich results the markup can still earn. Use when…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Schema Markup
Overview
Structured data is a machine-readable description of what a page is about: a script element of type application/ld+json holding schema.org types and properties. Search engines read it to understand entities (who published this, what is sold, at what price) and Google uses a subset of it to draw rich results such as price and rating lines, breadcrumbs, event listings and video previews.
This skill produces three things: a decision about which types belong on each page template, the JSON-LD itself wired into the project's code, and a verification report. It is deliberately strict about what the markup can earn, because Google retired a long list of rich results between 2023 and 2026 and much advice online still promises them.
Instructions
1. Read the page before writing anything
Collect these facts from the project, and ask the user only for what the code cannot tell you:
- The stack and where the document head is rendered (Next.js
app/layouts, an Astro or Eleventy layout, a WordPress theme or SEO plugin, a Shopify theme). - One live URL or local build output per page template: home, article, product, pricing, location, event.
- What is already there. Save the checker below as
jsonld_check.pyand run it against each URL or built HTML file. - Whether the facts the markup will state are visible on the page: price, rating and count, author, dates, address, opening hours. Markup may only repeat what a visitor can see.
#!/usr/bin/env python3
"""List the JSON-LD nodes in a URL or HTML file and flag missing Google-required properties."""
import json, re, sys, urllib.request
REQUIRED = { # Google Search Central, checked October 2026; "a|b" means either one
"Product": ["name", "offers|review|aggregateRating"],
"Offer": ["price|priceSpecification"],
"AggregateRating": ["ratingValue", "ratingCount|reviewCount"],
"Review": ["author", "reviewRating"],
"SoftwareApplication": ["name", "offers", "aggregateRating|review"],
"BreadcrumbList": ["itemListElement"],
"LocalBusiness": ["name", "address"],
"Event": ["name", "startDate", "location"],
"VideoObject": ["name", "thumbnailUrl", "uploadDate"],
"JobPosting": ["title", "description", "datePosted", "hiringOrganization", "jobLocation|applicantLocationRequirements"],
"WebSite": ["name", "url"],
"ProfilePage": ["mainEntity"],
}
REQUIRED["WebApplication"] = REQUIRED["MobileApplication"] = REQUIRED["SoftwareApplication"]
RETIRED = {"FAQPage", "HowTo", "SpecialAnnouncement", "SearchAction"}
def walk(node, path):
if isinstance(node, list):
for i, item in enumerate(node):
walk(item, f"{path}[{i}]")
elif isinstance(node, dict):
kinds = node.get("@type", [])
for kind in [kinds] if isinstance(kinds, str) else kinds:
missing = [p for p in REQUIRED.get(kind, []) if not any(alt in node for alt in p.split("|"))]
note = " (no Google rich result any more)" if kind in RETIRED else ""
print(f"{path} {kind}: {'MISSING ' + ', '.join(missing) if missing else 'ok'}{note}")
for key, value in node.items():
walk(value, f"{path}.{key}")
src = sys.argv[1]
if src.startswith("http"):
req = urllib.request.Request(src, headers={"User-Agent": "Mozilla/5.0 (compatible; markup-check)"})
html = urllib.request.urlopen(req, timeout=30).read().decode("utf-8", "replace")
else:
html = open(src, encoding="utf-8").read()
blocks = re.findall(r"<script[^>]*application/ld\+json[^>]*>(.*?)</script>", html, re.S | re.I)
for n, raw in enumerate(blocks):
try:
walk(json.loads(raw), f"block{n}")
except ValueError as err:
print(f"block{n}: UNPARSABLE {err}")
print(f"{len(blocks)} JSON-LD block(s) in {src}")
The script reads the HTML the server sends. If it reports zero blocks on a page that shows markup in the browser, the JSON-LD is injected by client-side JavaScript or a tag manager: Google can still read it after rendering, but move it into server output where possible, and always for Product markup, where Google warns that script-generated markup makes Shopping crawls slower and less reliable. Other subtypes such as Restaurant or NewsArticle are not in the table; check them against the row of their parent type.
2. Pick types by page, and know what each one earns
| Page | Type | Google feature (October 2026) | Required by Google |
|---|---|---|---|
| Home | WebSite |
Site name shown in results | name, url; home page only |
| Home or About | Organization |
Logo, knowledge panel details | none; add name, url, logo (112x112 px or larger), sameAs |
| Article, blog post | Article, BlogPosting, NewsArticle |
Better title, image and date in results | none; add headline, image, datePublished, dateModified, author with name and url |
| Any page with a trail | BreadcrumbList |
Breadcrumb line, desktop results only | two or more ListItem |
Установить schema-markup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл schema-markup?
Adds, repairs and verifies schema.org structured data (JSON-LD) on a website, and says honestly which Google rich results the markup can still earn. Use when a user asks to "add schema markup", "add structured data", "write JSON-LD for this page", "fix structured data errors in Search Console", "why are my star ratings / FAQ rich results gone", or wants Product, Article, Organization, LocalBusiness, Breadcrumb, Event, Video or SoftwareApplication markup. Covers choosing types per page, required properties, wiring into Next.js, static sites and CMSs, and checking the result from the command line.
Как установить скилл schema-markup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл schema-markup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic