πŸ“Š Schema Markup: Generating structured data for rich results...

SkillSearch

Use this skill when the user says 'add schema', 'schema markup', 'JSON-LD', 'structured data', 'rich results', 'rich snippets', or is adding or fixing schema.org structured data for better search result appearance. Do NOT use for meta tag optimization or full SEO audits.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the πŸ“Š Schema Markup: Generating structured data for rich results... skill

What this skill tells your AI

The instructions your AI receives, as published by cwinvestments/memstack in skills/seo-geo/schema-markup/SKILL.md and read by ahel’s review.

Identifies applicable schema types, generates valid JSON-LD blocks, and verifies against Google's Rich Results requirements, ready to paste into page head.

Activation

When this skill activates, output:

πŸ“Š Schema Markup, Analyzing pages for schema opportunities...

Then execute the protocol below.

ContextStatus
User says "add schema" or "schema markup" or "JSON-LD"ACTIVE
User says "structured data" or "rich results" or "rich snippets"ACTIVE
Adding or fixing schema.org data on any pageACTIVE
Doing a full SEO audit (broader scope)DORMANT: use site-audit
Optimizing meta tags (not schema)DORMANT: use meta-tag-optimizer

Anti-patterns

TrapReality Check
"Schema is optional"Pages with schema get rich results. Pages without get plain blue links. Rich results get 2-3x more clicks.
"Add every schema type"Only add schema that matches actual page content. Irrelevant schema triggers manual actions from Google.
"Microdata is fine"Google recommends JSON-LD. It's cleaner, easier to maintain, and separated from HTML. Use JSON-LD only.
"Copy schema from another site"Schema must reflect YOUR content. Copying schema with different data violates Google's guidelines.
"Schema guarantees rich results"Schema makes you eligible. Google decides whether to show rich results based on quality and relevance.

Protocol

For ready-to-paste JSON-LD templates covering all 10 common schema types (FAQPage, WebPage, Article, SoftwareApplication, Organization, Product, HowTo, BreadcrumbList, LocalBusiness, SpeakableSpecification) plus a combined @graph bundle, see references/schema-templates.md. The step-by-step generation logic below still applies. The reference file is a copy-paste library, not a replacement for the per-page-type mapping in Step 1.

Step 1: Identify Applicable Schema Types

Map each page type to the correct schema:

# Scan for page types
find app/ pages/ -name "page.tsx" -o -name "*.tsx" 2>/dev/null | grep -v node_modules | grep -v "_\|layout\|loading\|error"

# Check for existing schema
grep -rn "application/ld+json\|schema.org" --include="*.tsx" --include="*.jsx" --include="*.html" . | grep -v node_modules

Schema type mapping:

Page TypePrimary SchemaAdditional SchemaRich Result
HomepageOrganization + WebSiteSearchActionSitelinks search box
AboutOrganizationPerson (for founders)Knowledge panel
Product/PricingProductOffer, AggregateRatingProduct rich results (price, rating)
Blog postArticlePerson (author), ImageObjectArticle rich results
FAQ pageFAQPagenoneFAQ dropdowns in SERP
How-to guideHowToHowToStepHow-to rich results
Contact/LocalLocalBusinessPostalAddress, GeoCoordinatesLocal pack
SaaS/SoftwareSoftwareApplicationOfferSoftware rich results
Event pageEventPlace, OfferEvent rich results
RecipeRecipeNutritionInformationRecipe card
All pagesBreadcrumbListnoneBreadcrumb trail

Step 2: Generate Organization Schema

For the homepage or site-wide layout:

{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "[Company Name]",
  "url": "https://[domain]",
  "logo": "https://[domain]/logo.png",
  "description": "[One-sentence company description]",
  "foundingDate": "[YYYY]",
  "sameAs": [
    "https://twitter.com/[handle]",
    "https://github.com/[org]",
    "https://linkedin.com/company/[name]"
  ],
  "contactPoint": {
    "@type": "ContactPoint",
    "contactType": "customer support",
    "email": "[support@domain.com]"
  }
}

Step 3: Generate WebSite + SearchAction Schema

Enables the sitelinks search box in Google:

{
  "@context": "https://schema.org",
  "@type": "WebSite",
  "name": "[Site Name]",
  "url": "https://[domain]",
  "potentialAction": {
    "@type": "SearchAction",
    "target": {
      "@type": "EntryPoint",
      "urlTemplate": "https://[domain]/search?q={search_term_string}"
    },
    "query-input": "required name=search_term_string"
  }
}

Note: Only add SearchAction if your site has a working search page at the specified URL.

Step 4: Generate Article Schema

For blog posts and articles:

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "[Post Title: max 110 chars]",
  "description": "[Post description: max 155 chars]",
  "image": "https://[domain]/blog/[slug]/hero.jpg",
  "datePublished": "[YYYY-MM-DDT00:00:00Z]",
  "dateModified": "[YYYY-MM-DDT00:00:00Z]",
  "author": {
    "@type": "Person",
    "name": "[Author Name]",
    "url": "https://[domain]/about"
  },
  "publisher": {
    "@type": "Organization",
    "name": "[Company Name]",
    "logo": {
      "@type": "ImageObject",
      "url": "https://[domain]/logo.png"
    }
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://[domain]/blog/[slug]"
  }
}

Required fields for Article rich results:

  • headline (max 110 chars)
  • image (at least one, must be crawlable)
  • datePublished
  • author.name

Step 5: Generate Product / SoftwareApplication Schema

For product or pricing pages:

{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "[Product Name]",
  "applicationCategory": "[BusinessApplication / DeveloperApplication / etc.]",
  "operatingSystem": "Web",
  "description": "[Product description]",
  "url": "https://[domain]",
  "offers": {
    "@type": "AggregateOffer",
    "lowPrice": "[lowest tier price]",
    "highPrice": "[highest tier price]",
    "priceCurrency": "USD",
    "offerCount": "[number of tiers]"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "[X.X]",
    "ratingCount": "[count]",
    "bestRating": "5"
  }
}

Only include aggregateRating if you have real reviews. Fake ratings violate Google's guidelines and risk manual action.

Step 6: Generate FAQ Schema

For FAQ pages or sections:

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "[Question text]",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "[Answer text: can include basic HTML: links, bold, lists]"
      }
    },
    {
      "@type": "Question",
      "name": "[Question text]",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "[Answer text]"
      }
    }
  ]
}

FAQ schema rules:

  • Only use on pages that are primarily FAQ content
  • Questions and answers must be visible on the page (not hidden behind JS)
  • Don't use FAQ schema for support tickets or user-generated Q&A
  • Google may show 2-4 FAQ results directly in the SERP

Step 7: Generate Breadcrumb Schema

For all pages with navigation hierarchy:

{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://[domain]"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Blog",
      "item": "https://[domain]/blog"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "[Post Title]",
      "item": "https://[domain]/blog/[slug]"
    }
  ]
}

Breadcrumb rules:

  • Position starts at 1 (home) and increments
  • Last item can omit item (current page)
  • Must match visible breadcrumb navigation on the page

Step 8: Verify and Validate

Check all generated schema for correctness:

Validation checklist:

CheckHowPass Criteria
Valid JSONJSON.parse()No syntax errors
Required fieldsCompare to Google's requirementsAll required fields present
URLs are absoluteCheck all url and @id fieldsStart with https://
Dates are ISO 8601Check datePublished, dateModifiedFormat: YYYY-MM-DDT00:00:00Z
Images are crawlableURLs are accessible, not behind authReturns 200
Content matches pageSchema data matches visible contentNo mismatches
No duplicate typesOne schema per type per pageNo conflicts

Testing tools:

  • Google Rich Results Test: https://search.google.com/test/rich-results
  • Schema.org Validator: https://validator.schema.org/
  • Google Search Console: Enhancements section for schema coverage

Implementation in Next.js:

Add JSON-LD as a script tag in your page component or layout. Use JSON.stringify() on a developer-defined schema object and inject it via a <script type="application/ld+json"> element. This is safe because the data is controlled by the developer, not user input.

Step 9: Output Schema Blocks

πŸ“Š Schema Markup: Complete

Pages analyzed: [count]
Schema blocks generated: [count]

Schema by page:
  / (homepage)     β†’ Organization, WebSite + SearchAction, BreadcrumbList
  /pricing         β†’ SoftwareApplication + Offer, BreadcrumbList
  /blog/[slug]     β†’ Article, BreadcrumbList
  /faq             β†’ FAQPage, BreadcrumbList
  /contact         β†’ LocalBusiness, BreadcrumbList

Rich result eligibility:
  βœ… Sitelinks search box (WebSite + SearchAction)
  βœ… Article rich results (Article schema)
  βœ… FAQ dropdowns (FAQPage schema)
  βœ… Software/product info (SoftwareApplication)
  βœ… Breadcrumb trail (BreadcrumbList)

Next steps:
1. Add generated JSON-LD to each page
2. Test with Google Rich Results Test
3. Deploy and monitor in Search Console β†’ Enhancements
4. Rich results may take days to weeks to appear after indexing

Level History

  • Lv.1: Base: Schema type identification by page type, JSON-LD generation (Organization, WebSite, Article, SoftwareApplication, FAQPage, BreadcrumbList), Google Rich Results verification checklist, ready-to-paste code blocks. (Origin: MemStack Pro v3.2, Mar 2026)

Signals

GitHub stars
419
Forks
44
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
memstack-seo-schema-markup
Source
github.com/cwinvestments/memstack