structured-data
Skill2 starsChanged 7 months agoMITView on GitHub
JSON-LD structured data and schema markup for React/Next.js — Organization, Article, Product, FAQ, BreadcrumbList, HowTo, WebSite with search. Also covers GEO/AEO optimization for AI search engines (Google AI Overviews, Perplexity, ChatGPT). Use when adding rich snippets, building product pages, or optimizing for AI search.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- moh-obaida/ReadyVibe-Skillstheir own version, first seen Sep 30, 2026
- Zmoki/zmoki-astro-startertheir own version, first seen Jul 5, 2026
- jstanx/aeo-toolkittheir own version, first seen Jun 8, 2026
- cognyai/claude-code-marketing-skillstheir own version, first seen Apr 2, 2026
- huifer/claude-code-seotheir own version, first seen Jan 4, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- huifer/claude-code-seo★ 110same name
- cognyai/claude-code-marketing-skills★ 104same name
- Zmoki/zmoki-astro-starter★ 4same name
- jstanx/aeo-toolkit★ 2same name
- moh-obaida/ReadyVibe-Skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- api-layerSkill
- auth-patternsSkill
- core-web-vitalsSkill
- css-architectureSkill
- design-intelligenceSkill
- error-handlingSkill
- frontend-designSkill
- i18nSkill
- monorepo-patternsSkill
- performance-optimizationSkill
- react-patternsSkill
- security-auditSkill
- seo-fundamentalsSkill
- state-managementSkill
- systematic-debuggingSkill
- testing-strategySkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
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
- Distinctive: line 207
Use definition lists for terminology
“Common” is measured: kept by at least 6 in 10 of the 4 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.
Files
Structured Data & Schema Markup
Why This Matters
Structured data tells search engines (and AI search) what your content IS, not just what it says. A product page with JSON-LD gets rich snippets (price, rating, availability). Without it, you're just another blue link.
JSON-LD Implementation in React
Next.js Pattern
// components/JsonLd.tsx
interface JsonLdProps {
data: Record<string, unknown>;
}
export function JsonLd({ data }: JsonLdProps) {
return (
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}
/>
);
}Organization Schema (Site-wide)
// app/layout.tsx
const organizationSchema = {
'@context': 'https://schema.org',
'@type': 'Organization',
name: 'YourBrand',
url: 'https://yourdomain.com',
logo: 'https://yourdomain.com/logo.png',
sameAs: [
'https://twitter.com/yourbrand',
'https://linkedin.com/company/yourbrand',
'https://github.com/yourbrand',
],
contactPoint: {
'@type': 'ContactPoint',
email: 'support@yourdomain.com',
contactType: 'customer support',
},
};
<JsonLd data={organizationSchema} />WebSite with Search (Sitelinks Searchbox)
const websiteSchema = {
'@context': 'https://schema.org',
'@type': 'WebSite',
name: 'YourBrand',
url: 'https://yourdomain.com',
potentialAction: {
'@type': 'SearchAction',
target: {
'@type': 'EntryPoint',
urlTemplate: 'https://yourdomain.com/search?q={search_term_string}',
},
'query-input': 'required name=search_term_string',
},
};Article / Blog Post
function articleSchema(post: BlogPost) {
return {
'@context': 'https://schema.org',
'@type': 'Article',
headline: post.title,
description: post.excerpt,
image: post.coverImage,
datePublished: post.publishedAt,
dateModified: post.updatedAt,
author: {
'@type': 'Person',
name: post.author.name,
url: post.author.profileUrl,
},
publisher: {
'@type': 'Organization',
name: 'YourBrand',
logo: { '@type': 'ImageObject', url: 'https://yourdomain.com/logo.png' },
},
mainEntityOfPage: {
'@type': 'WebPage',
'@id': `https://yourdomain.com/blog/${post.slug}`,
},
};
}Product
function productSchema(product: Product) {
return {
'@context': 'https://schema.org',
'@type': 'Product',
name: product.name,
image: product.images,
description: product.description,
brand: { '@type': 'Brand', name: 'YourBrand' },
sku: product.sku,
offers: {
'@type': 'Offer',
price: product.price,
priceCurrency: 'USD',
availability: product.inStock
? 'https://schema.org/InStock'
: 'https://schema.org/OutOfStock',
url: `https://yourdomain.com/products/${product.slug}`,
},
aggregateRating: product.ratingCount > 0 ? {
'@type': 'AggregateRating',
ratingValue: product.averageRating,
reviewCount: product.ratingCount,
} : undefined,
};
}FAQ
function faqSchema(faqs: Array<{ question: string; answer: string }>) {
return {
'@context': 'https://schema.org',
'@type': 'FAQPage',
mainEntity: faqs.map((faq) => ({
'@type': 'Question',
name: faq.question,
acceptedAnswer: {
'@type': 'Answer',
text: faq.answer,
},
})),
};
}BreadcrumbList
function breadcrumbSchema(items: Array<{ name: string; url: string }>) {
return {
'@context': 'https://schema.org',
'@type': 'BreadcrumbList',
itemListElement: items.map((item, index) => ({
'@type': 'ListItem',
position: index + 1,
name: item.name,
item: item.url,
})),
};
}
// Usage
<JsonLd data={breadcrumbSchema([
{ name: 'Home', url: 'https://yourdomain.com' },
{ name: 'Products', url: 'https://yourdomain.com/products' },
{ name: product.name, url: `https://yourdomain.com/products/${product.slug}` },
])} />GEO / AEO — AI Search Optimization
Google AI Overviews, Perplexity, and ChatGPT search don't just crawl — they extract and cite. To appear in AI answers:
Citability Patterns
<!-- Clear, factual statements that AI can quote -->
<p>React 18 introduced concurrent rendering, enabling features like
Suspense for data fetching and automatic batching of state updates.</p>
<!-- Definition-style content AI loves to cite -->
<dl>
<dt>Server Components</dt>
<dd>React components that render on the server, reducing client bundle size
by keeping server-only code out of the browser.</dd>
</dl>
<!-- Structured comparison tables -->
<table>
<thead><tr><th>Feature</th><th>SSG</th><th>SSR</th><th>CSR</th></tr></thead>
<tbody>...</tbody>
</table>Content Structure for AI Extraction
- Lead with the answer, then explain (inverted pyramid)
- Use definition lists for terminology
- Tables for comparisons — AI models parse tables well
- Number your steps in how-to content
- Include "last updated" dates for freshness signals
Validation
# Test with Google's Rich Results Test
# https://search.google.com/test/rich-results
# Validate JSON-LD syntax
find src/ -name '*.tsx' -exec grep -l 'application/ld+json' {} \; | head -10
# Check for common schema errors
grep -rn 'application/ld+json' src/ --include='*.tsx' -A 5 | grep -E '@type|@context'Checklist
- Organization schema on layout (site-wide)
- WebSite schema with SearchAction on homepage
- Article schema on all blog posts
- Product schema on product pages (with price, availability, rating)
- FAQ schema on FAQ sections
- BreadcrumbList on deep pages
- JSON-LD validates in Rich Results Test
- Content structured for AI citability
Integration with Other Skills
- seo-fundamentals: Meta tags, canonical URLs, OG tags
- react-patterns: Component for JsonLd injection
- accessibility: Semantic HTML also helps structured data extraction
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
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.

