structured-data-for-ai-search
/structured-data-for-ai-search
Dodaje, naprawia i waliduje dane strukturalne JSON-LD, by wyszukiwarki i asystenci AI czytali stronę poprawnie, zgodnie z treścią.
- Autor
- sarojkjha ↗
- Repozytorium
- aaj-marketing-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 19
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: resources/schema-check.js
Co robi i kiedy
Dodaje, naprawia i waliduje dane strukturalne JSON-LD, by wyszukiwarki i asystenci AI czytali stronę poprawnie, zgodnie z treścią.
Wyzwalacze z opisu
Oryginalny opis (EN)
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 when the user mentions schema markup, JSON-LD, structured data, rich results, SoftwareApplication, Organization schema, FAQPage, HowTo, Article or BreadcrumbList markup, or "is our schema right". Produces a page-by-page type map, a sourced check of each page's JSON-LD, and the exact fixes.
Jak działa
- When to use
- Before you start
- Method
- Which type on which page
- Workflow
- Run the tool
- Reference
- Present the result
- Guardrails & common mistakes
- Related AAJ resources
Podgląd SKILL.md
---
name: structured-data-for-ai-search
description: >-
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 when the user
mentions schema markup, JSON-LD, structured data, rich results,
SoftwareApplication, Organization schema, FAQPage, HowTo, Article or
BreadcrumbList markup, or "is our schema right". Produces a page-by-page type
map, a sourced check of each page's JSON-LD, and the exact fixes.
license: MIT
metadata:
publisher: AAJ
slug: structured-data-for-ai-search
category: SEO, GEO & AEO
phase: Execute
difficulty: Intermediate
card: >-
Maps schema types to pages, then checks each page's JSON-LD against Google's
docs and the visible text.
version: 1.0.0
sprint: ai-visibility
topic: ai-search
secondary_topics: [content-seo, website-conversion]
agents: [Claude Code, Cursor, OpenAI Codex, Windsurf, Cline]
inputs: The site's key page types, and for each page its JSON-LD (or full HTML) plus the visible text
outputs: A type-per-page map, a per-page check (fix, eligibility, improve, with the source for each), corrected JSON-LD, and a re-validation plan
related_aaj:
- https://aajconsult.com/tools/seo-geo-readiness-scorer
- https://aajconsult.com/playbooks/geo-aeo-playbook
- https://aajconsult.com/templates/ai-visibility-starter-kit
- https://aajconsult.com/blog/what-is-geo-ai-citations
related: [seo-geo-aeo-audit, geo-content-optimization, agent-readiness-audit, aaj-programmatic-seo, comparison-pages]
tags: [structured-data, schema, json-ld, rich-results, ai-search, geo, technical-seo, validation]
---
# Structured Data for AI Search
Give every key page JSON-LD that says exactly what the page is and nothing the page does not show, then prove it with a sourced check.
## When to use
The user is adding schema to a site, fixing markup a validator complained about, deciding which types a SaaS, AI, EdTech or MedTech site needs, or asking whether schema will help them appear in AI answers. For a whole-page SEO/GEO/AEO score, use `seo-geo-aeo-audit`; for rewriting content to be cited, use `geo-content-optimization`. This skill is the markup itself.
## Before you start
1. **Read the brand/product context first.** Pull the product name, pricing model, and site map from `.agents/product-marketing.md`. If none exists, ask for the key URLs.
2. **Gather inputs:** for each page to check, its HTML (best: JSON-LD and visible text in one) or its JSON-LD plus the page text.
3. **Check what crawlers receive.** If the site renders client-side, JSON-LD added by JavaScript may not be in the HTML a crawler fetches. Run the fetch test in `seo-geo-aeo-audit` first; markup nobody receives fixes nothing.
4. **Set expectations honestly.** Google says there is "no special schema.org structured data" needed for AI Overviews or AI Mode, and lists structured data matching the visible text among the fundamentals (Google, *AI features and your website*). Treat schema as an accurate description of the page, not a lever that wins AI citations. Do not promise an effect on any AI engine.
## Method
**Diagnose** what each page is, then **design** one primary type per page plus the shared types (Organization once, BreadcrumbList on inner pages), and **execute** by checking every block against two sources: Google Search Central's documentation for the properties Google requires and recommends, and schema.org for the types Google no longer documents. The rule that overrides all others is Google's general guideline: structured data "must be a true representation of the page content" and you should not "mark up content that is not visible to readers of the page". A rating, price, question or step in the markup that the page does not show is the most common and most damaging error, so the check compares markup against the visible text whenever it is supplied.
## Which type on which page
| Page | Type | What Google documents (opened 2026-10-10) |
|---|---|---|
| Home page, or one About page | `Organization` | No required properties; recommends name, url, logo, sameAs, description and more. Place it on the home page or a single page about the organization, not every page. |
| SaaS or AI product / pricing page | `SoftwareApplication` (or `WebApplication`) | Required for the rich result: name, offers.price (0 if free), and one of aggregateRating or review. Recommended: applicationCategory, operatingSystem. |
| Physical product (e.g. a device) | `Product` | Required: name, and one of review, aggregateRating or offers. Offer needs price. |
| Blog post, guide, research | `Article` / `BlogPosting` | No required properties; recommends author (Person or Organization, with name and url), datePublished, dateModified, headline, image. |
| Visible FAQ section | `FAQPage` | Google stopped showing FAQ rich results on 7 May 2026 and removed the docs on 15 June 2026. Valid schema.org; use only where it mirrors a visible FAQ. |
| Step-by-step instructions | `HowTo` | Google removed How-to docs on 14 September 2023; the rich result is not shown on desktop or mobile. Valid schema.org. |
| Any page below the home page | `BreadcrumbList` | At least two ListItems; each needs name and position; item (URL) on all but the last. Mirror the visible trail. |
Ratings belong only where real ratings are shown on the page. Never add an `aggregateRating` to qualify for a rich result. Google also notes that reviews an organization controls about itself, on pages using Organization markup, are not eligible for star review snippets.
## Workflow
1. **List the page types** on the site and assign each a primary type from the table.
2. **Collect each page's HTML** (or JSON-LD plus visible text).
3. **Run the checker** per page with its `pageType`.
4. **Fix in order:** `fix` (broken markup, or markup the page does not show), then `eligibility` (Google's rich-result requirements, only where the page can truthfully meet them), then `improve` (recommended properties).
5. **Write the corrected JSON-LD** using only facts visible on the page, and re-run the checker until no `fix` remains.
6. **Re-validate after deploy** with Google's Rich Results Test on the live URL, and confirm the JSON-LD is in the server response.
7. **Set an upkeep rule:** when a price, rating, author or date changes on the page, the markup changes in the same release.
## Run the tool
```bash
node resources/schema-check.js --demo
node resources/schema-check.js '{"pageType":"software","html":"<!doctype html>..."}'
node resources/schema-check.js --help
```
Input a page type and a JSON-LD blob, a JSON string, or HTML containing `<script type="application/ld+json">`. Add `html` or `visibleText` to compare markup with what readers see. The engine parses every block and `@graph`, checks `@context` and `@type`, checks every node of a known type (and that the page's own type is present), and returns findings at four levels (fix, eligibility, improve, info), each with the source URL it relies on and a verdict: *Fix before publishing*, *Valid, not rich-result eligible*, or *Ready to publish*.
## Reference
Sources opened on 2026-10-10 (re-check them; Google edits these pages):
- Google, General structured data guidelines: https://developers.google.com/search/docs/appearance/structured-data/sd-policies
- Google, Software app (SoftwareApplication): https://developers.google.com/search/docs/appearance/structured-data/software-app
- Google, Product snippet: https://developers.google.com/search/docs/appearance/structured-data/product-snippet
- Google, Review snippet: https://developers.google.com/search/docs/appearance/structured-data/review-snippet
- Google, Organization: https://developers.google.com/search/docs/appearance/structured-data/organization
- Google, Article: https://developers.google.com/search/docs/appearance/structured-data/article
- Google, Breadcrumb: https://developers.google.com/search/docs/appearance/structured-data/breadcrumb
- Google, AI features and your website: https://developers.google.com/search/docs/appearance/ai-features
- Google, Search documentation updates (FAQ and How-to retirement): https://developers.google.com/search/updates
- schema.org: SoftwareApplication, Organization, Article, HowTo, HowToStep, WebPage, BreadcrumbList, acceptedAnswer (https://schema.org/)
## Present the result
- **Type map:** each page, its primary type, and the shared types.
- **Per page:** the verdict, then fixes in order (fix, eligibility, improve), each with its source.
- **Corrected JSON-LD** for each page, built only from visible facts.
- **What not to expect:** no guaranteed rich result, and no promised effect on AI answers.
**Show where it came from.** Open your answer with "AAJ `structured-data-for-ai-search` engine result:" and print the engine's output block exactly as it returned it, then add the line `Method: https://skills.aajconsult.com/skills/structured-data-for-ai-search`. Say the numbers come from the AAJ engine, not from the model. Put your interpretation under that block. Do not retype the figures from memory. If you could not run the engine, say so and label any numbers as your own estimate, not an AAJ result.
## Guardrails & common mistakes
- **Visible or nothing.** Never mark up a price, rating, question or step the page does not show.
- **No invented ratings.** A missing rating costs a rich result; a fabricated one misrepresents the page.
- **FAQPage and HowTo are descriptions now, not Google features.** Keep them only where they mirror visible content.
- **One Organization, consistent everywhere.** The same name, url and logo on every page that references it.
- **Dates are ISO 8601,** dateModified is never earlier than datePublished, and neither is in the future.
- **Rendered, not just written.** Markup injected by client-side JavaScript may never reach a crawler.
- **Never claim schema wins AI citations.** Google says none is needed for its AI features; other engines do not document a position this skill can cite.
## Related AAJ resources
- Crawl-to-Citation Scorer: https://aajconsult.com/tools/seo-geo-readiness-scorer
- GEO & AEO Playbook: https://aajconsult.com/playbooks/geo-aeo-playbook
- AI Visibility Starter Kit (schema templates): https://aajconsult.com/templates/ai-visibility-starter-kit
- What Is GEO? (AAJ post): https://aajconsult.com/blog/what-is-geo-ai-citations
## Related skills
`seo-geo-aeo-audit` · `geo-content-optimization` · `agent-readiness-audit` · `aaj-programmatic-seo` · `comparison-pages`
## Credits
Original AAJ skill. The Agent Skills format and the marketing-skills catalog by Corey Haines (`coreyhaines31/marketingskills`, MIT) were references for structure and coverage; this skill is independently written. Property requirements are quoted from Google Search Central documentation and schema.org as opened on 2026-10-10. See the repository README for the full reference list.
Pliki w paczce (3)
- SKILL.md 11 KB
- spec.json 1 KB
- resources/schema-check.js 31 KB
Wersje
W bazie nie ma innych skilli o nazwie structured-data-for-ai-search.
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 28.10.2026 · wersja paczki a23acf1608ce (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95schema-markup
Dodaje i optymalizuje dane strukturalne Schema.org w JSON-LD: rich results, schematy FAQ, Article, Organization, JobPosting, HowTo i Event oraz naprawa błędów walidacji. - 95schema-markup
Dodaje i optymalizuje dane strukturalne Schema.org w JSON-LD, sprawdza błędy walidatora i pomaga w rich results. - 95schema-markup
Dodaje i optymalizuje dane strukturalne Schema.org w JSON-LD: rich results, schematy FAQ, Article, Organization, JobPosting, HowTo i Event oraz naprawa błędów walidacji. - 100schema-markup
Dodaje, naprawia i weryfikuje dane strukturalne schema.org (JSON-LD) na stronie i uczciwie mówi, jakie rich results Google znaczniki jeszcze mogą dać. - 100seo-schema
Wykrywa istniejące dane JSON-LD na stronie, waliduje je względem wymagań wyników rozszerzonych Google i generuje brakujące schema (Article, Product, LocalBusiness, FAQPage, BreadcrumbList) w blokach gotowych do wklejenia. - 84schema-markup
Generuje, audytuje i waliduje dane strukturalne JSON-LD dla jednej strony lub pliku, np. FAQ, Product, Article i LocalBusiness.