agentleFS
visibianvisibian/seo-geo-skills/skills/structured-data/SKILL.md

structured-data

Skill0 starsChanged 14 days agoMITView on GitHub

Write, add and check JSON-LD structured data (schema.org markup) for a website, such as Organization, WebSite, Product, SoftwareApplication, LocalBusiness, Article, BreadcrumbList, Event and Review, following Google's required and recommended properties. Use when someone asks for schema markup, JSON-LD, rich results, structured data for AI search or ChatGPT, or wants existing markup validated or fixed in their code.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use core-web-vitals.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • vijpatel7Skill

    core-web-vitals

    Optimize Core Web Vitals (LCP, INP, CLS) for better page experience and search ranking. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "optimize INP", "page experience optimization", or "fix layout shifts".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write correct JSON-LD that describes what a page is, keep it true to what the page shows, and be exact about what it does and does not do …

    line 12
  2. Distinctive:

    Never put a fact in the markup that is not on the page or that the user has not confirmed.

    line 37
  3. Distinctive:

    Every claim about how a search engine or assistant uses structured data carries its source and date, and may have changed since.

    line 38
  4. Distinctive:

    Do not promise rich results or AI citations.

    line 39

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Structured data

Write correct JSON-LD that describes what a page is, keep it true to what the page shows, and be exact about what it does and does not do for AI answers.

What to tell the user first

Structured data helps search engines read a page's facts. Google calls it useful and says there is "no special schema.org structured data" needed for its AI features; tests so far found no clear rise in AI citations from adding it. Details, with sources and dates, are in references/evidence.md. Recommend it as good practice for search and for keeping facts consistent, never as a way to get named by an assistant.

Steps

  1. Find what exists. In a codebase, search for application/ld+json, schema.org, and framework helpers (for example next-seo, a JsonLd component, Yoast or Rank Math settings in WordPress, a Shopify theme's structured-data snippets). On a live page, run from this skill's folder: python3 scripts/check_jsonld.py https://example.com/page or point it at a built HTML file. It reads the raw HTML, the way a crawler that runs no scripts sees the page.
  2. Pick the types that match what the page really is. Use references/types.md for the right type per page and a template for each. One page usually needs one main node, plus Organization and WebSite once on the home page, and BreadcrumbList on inner pages.
  3. Fill in only facts that are on the page. Google asks that everything in the markup be visible on the page. Never add ratings, reviews, prices or awards that the page does not show, and never invent them.
  4. Link the nodes with stable @id values (for example https://example.com/#organization), so the Organization is described once and referenced everywhere.
  5. Validate. Run scripts/check_jsonld.py on the result. Fix every error. Treat notes as suggestions. For a type the script does not know, check it in Google's Rich Results Test and the Schema Markup Validator.
  6. In a codebase, put it where the page is built, so it stays in step with the content (for example generated from the same product data as the visible price), and add it to the server-rendered HTML rather than injecting it after load.

Output

  • The JSON-LD, ready to paste or committed in code, one block per page type.
  • The checker's result after the change.
  • A short list of what was left out because the page does not show it.

Ground rules

  • Never put a fact in the markup that is not on the page or that the user has not confirmed.
  • Every claim about how a search engine or assistant uses structured data carries its source and date, and may have changed since.
  • Do not promise rich results or AI citations. Google decides rich results; no test has shown that markup makes an assistant name a brand.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.