Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

schema

БесплатноЗапускает вложенные скриптыНе проверен

Use when adding, fixing, or reviewing structured data: JSON-LD for articles, products, FAQs, breadcrumbs, organizations, and local businesses, and what to do…

fcakyonот fcakyon★ 1 223 звезды на GitHub

Об этом скилле

Schema markup

Structured data tells a search engine what a page is rather than making it rank. Done right it earns a richer result and makes the page easier for an engine to summarize. Done wrong it earns a manual action.

Four rules govern everything below:

  • Mark up only what the page visibly shows. Schema describing content a reader can't see is a spam signal, and it's the single most common reason markup gets penalized rather than ignored.
  • Use JSON-LD, in a <script type="application/ld+json"> in the head or at the end of the body. Google recommends it, and it's the only format you can add without touching the page's markup.
  • Only claim types and properties the engine actually supports for a rich result. Valid schema.org markup with no supported result does nothing for search, which is fine, but don't promise a rich result it can't produce.
  • Validate before it ships, then watch Search Console. Markup that validates can still be wrong about the page.

Choosing the type

Type Use on Required
Organization Homepage, about page name, url
WebSite Homepage, to declare a site search name, url
Article, BlogPosting Posts and news headline, image, datePublished, author
Product Product pages name, image, offers
SoftwareApplication App and SaaS pages name, offers
Dataset Dataset and benchmark pages name, description
FAQPage A page with real questions and answers mainEntity
HowTo Step-by-step instructions name, step
BreadcrumbList Any page with breadcrumbs itemListElement
LocalBusiness A location page name, address
Event Events and webinars name, startDate, location

references/schema-examples.md has a complete, valid block for each of these plus a combined @graph and a Next.js pattern. references/required-properties.json holds required properties and references/recommended-properties.json holds recommended properties that surface as non-critical Search Console warnings when absent (such as Dataset creator and license). Keep both property maps in sync when adding a type, and never invent a Dataset license URL when the upstream source declares none.

When a page needs several types, prefer one @graph array over several separate script tags: entities can then reference each other by @id instead of repeating themselves.

Reviewing existing markup

A fetch of the page shows only server-rendered JSON-LD. CMS SEO plugins commonly inject it client side, so absence in fetched HTML is not absence on the page. Report what the server HTML contained, then send them to the Rich Results Test, which renders JavaScript.

When markup exists but earns nothing, check in this order: a required property missing, a value in the wrong shape (dates must be ISO 8601, URLs absolute, enumerations exact), the type having no rich result to earn, or the markup describing something the page doesn't show.

From this skill directory, run node scripts/validate_schema.mjs <jsonld-file> (or pass - on stdin or --url https://example.com to fetch every server-rendered JSON-LD script from a page). It parses the JSON, walks @graph and nested entities such as ItemList.itemListElement, checks required properties in references/required-properties.json and recommended properties in references/recommended-properties.json, flags local-host URL leaks (localhost, 127.0.0.1), and catches dates that aren't ISO 8601 or relative URLs (including sameAs and license). It's mechanical, so a clean result means the syntax is right and nothing more.

Then point the user at the Rich Results Test at https://search.google.com/test/rich-results for eligibility, and the schema.org validator at https://validator.schema.org/ for correctness against the vocabulary. Those answer different questions from each other and from the tool, so a block can pass one and fail another. None of the three can tell you whether the markup describes what the page actually shows, which is the accuracy rule above and still yours to check.

Handing it over

Give the complete block, ready to paste, with the page's real values filled in rather than placeholders. Say where it goes, name any property you had to leave out and why, and note which rich result it makes the page eligible for, with eligible being the honest word. Google decides whether to show one.

Rich result limits and entity identity

These rules decide whether markup is safe and whether it can earn anything:

Полный SKILL.md на GitHub

Установить schema в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/recommended-properties.jsonreferences/required-properties.jsonreferences/schema-examples.mdscripts/validate_schema.mjs

FAQ

Что делает скилл schema?

Use when adding, fixing, or reviewing structured data: JSON-LD for articles, products, FAQs, breadcrumbs, organizations, and local businesses, and what to do when markup doesn't earn a rich result.

Как установить скилл schema?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл schema запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить schema с