/memstack:memstack-seo-schema-markupfrom memstack
Generates valid JSON-LD schema.org structured data for rich search results. Identifies applicable schema types, creates markup, and verifies against Google's Rich Results requirements.
Ships in memstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Identifies applicable schema types, generates valid JSON-LD blocks, and verifies against Google's Rich Results requirements, ready to paste into page head.
When this skill activates, output:
📊 Schema Markup, Analyzing pages for schema opportunities...
Then execute the protocol below.
| Context | Status |
|---|---|
| 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 page | ACTIVE |
| Doing a full SEO audit (broader scope) | DORMANT: use site-audit |
| Optimizing meta tags (not schema) | DORMANT: use meta-tag-optimizer |
| Trap | Reality 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. |
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.
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 Type | Primary Schema | Additional Schema | Rich Result |
|---|---|---|---|
| Homepage | Organization + WebSite | SearchAction | Sitelinks search box |
| About | Organization | Person (for founders) | Knowledge panel |
| Product/Pricing | Product | Offer, AggregateRating | Product rich results (price, rating) |
| Blog post | Article | Person (author), ImageObject | Article rich results |
| FAQ page | FAQPage | none | FAQ dropdowns in SERP |
| How-to guide | HowTo | HowToStep | How-to rich results |
| Contact/Local | LocalBusiness | PostalAddress, GeoCoordinates | Local pack |
| SaaS/Software | SoftwareApplication | Offer | Software rich results |
| Event page | Event | Place, Offer | Event rich results |
| Recipe | Recipe | NutritionInformation | Recipe card |
| All pages | BreadcrumbList | none | Breadcrumb trail |
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": "[[email protected]]"
}
}
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.
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)datePublishedauthor.nameFor 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.
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:
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:
item (current page)Check all generated schema for correctness:
Validation checklist:
| Check | How | Pass Criteria |
|---|---|---|
| Valid JSON | JSON.parse() | No syntax errors |
| Required fields | Compare to Google's requirements | All required fields present |
| URLs are absolute | Check all url and @id fields | Start with https:// |
| Dates are ISO 8601 | Check datePublished, dateModified | Format: YYYY-MM-DDT00:00:00Z |
| Images are crawlable | URLs are accessible, not behind auth | Returns 200 |
| Content matches page | Schema data matches visible content | No mismatches |
| No duplicate types | One schema per type per page | No conflicts |
Testing tools:
https://search.google.com/test/rich-resultshttps://validator.schema.org/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.
📊 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
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cwinvestments/memstack --plugin memstack87 skills in this plugin
/memstack-seo-ai-search-visibilityUse this skill when the user says 'AI search', 'AI visibility', 'ChatGPT ranking', 'Perplexity optimization', 'GEO', 'generative engine optimization', or needs to optimize content for AI-powered search engines and LLM citations. Do NOT use for traditional SEO audits or Google Ads./memstack-security-api-auditUse this skill when the user says 'audit API', 'check API security', 'API routes security', 'endpoint audit', 'check my routes', or needs to verify API route protection. Reviews API endpoints for authentication, authorization, and input validation gaps. Do NOT use for frontend security headers or dependency scanning./memstack-development-api-designerUse this skill when the user says 'design API', 'API endpoints', 'REST API', 'API designer', 'route structure', 'API architecture', or is designing RESTful API routes, request/response schemas, and endpoint organization. Do NOT use for API security audits or database design./memstack-automation-api-integrationUse this skill when the user says 'API integration', 'connect APIs', 'sync data', 'data mapping', 'rate limiting', or needs system-to-system connectors with authentication, rate limit handling, and error recovery. Generates API integration code with authentication (OAuth, API key, JWT), request/response mapping, rate limit handling, error recovery with circuit breakers, and sync monitoring. Do NOT use for visual n8n workflows or webhook receiving./memstack-content-blog-postUse this skill when the user says 'write blog post', 'blog post about', 'write article', 'create blog', 'content for blog', 'write post', or is creating long-form written content for a blog or publication. Do NOT use for landing page copy, email sequences, or social media posts./memstack-development-changelog-generatorUse when the user says 'generate changelog', 'update changelog', 'what changed', 'release notes', 'write changelog', or needs a formatted CHANGELOG.md from git commit history. Do NOT use for diary entries, git log viewing, or commit message writing.Other plugins' skills for the same job