seo-meta
Skill1 starsChanged 9 months agoApache-2.0View on GitHub
Generate SEO metadata, Open Graph tags, JSON-LD structured data, sitemaps, and dynamic OG images for Next.js applications
1 other project uses a version of this.
Adopted by
Most recently taken up by
- NaveenGumaste/keyskillstheir own version, first seen Sep 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- NaveenGumaste/keyskills★ 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 repository73 other files it gives its agents.
- accessibility-wcagSkill
- api-designSkill
- api-testingSkill
- asset-optimizationSkill
- audio-systemsSkill
- aws-essentialsSkill
- ci-cd-pipelinesSkill
- codebase-analysisSkill
- code-reviewerSkill
- container-securitySkill
- cost-optimizationSkill
- database-designSkill
- data-visualizationSkill
- doc-generationSkill
- docker-kubernetesSkill
- docxSkill
- email-notificationsSkill
- env-configSkill
- flutter-mobileSkill
- framer-motionSkill
- frontend-code-reviewSkill
- frontend-designSkill
- fullstack-developerSkill
- game-enginesSkill
- gameplay-designSkill
- game-programming-languagesSkill
- game-serversSkill
- git-workflowSkill
- godot-4Skill
- golang-proSkill
- go-linter-configurationSkill
- graphics-renderingSkill
- i18n-localizationSkill
- incident-responseSkill
- level-designSkill
- llm-integrationSkill
- local-securitySkill
- memory-managementSkill
- monetization-systemsSkill
- monitoring-observabilitySkill
- multiplayer-netcodeSkill
- nextjs-16Skill
- notebooklm-researchSkill
- npm-packageSkill
- oauth-authSkill
- particle-systemsSkill
- performance-optimizationSkill
- playwright-testingSkill
- postgres-advancedSkill
- programming-architectureSkill
- project-migrationSkill
- publishing-platformsSkill
- python-best-practicesSkill
- react-nativeSkill
- redis-patternsSkill
- refactoring-patternsSkill
- remotion-best-practicesSkill
- rust-best-practicesSkill
- scraping-automationSkill
- security-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 216
Always use absolute URLs
- Very specific: line 298
Use generateMetadata for all meta tags (no manual <meta>)
- Distinctive: line 300
Add JSON-LD structured data (Article, Product, FAQ, Organization)
- Distinctive: line 304
Use title templates in layouts for consistent branding
- Distinctive: line 306
Test with Google Rich Results Test and Search Console
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SEO Meta Skill
Implement modern SEO patterns using Next.js Metadata API, structured data, and dynamic meta tag generation.
Next.js Metadata API
BAD: Manual meta tags with duplicates and missing canonical.
export default function BlogPost() {
return (
<>
<head>
<title>My Blog Post</title>
<meta name="description" content="Post content" />
{/* missing canonical, og tags, twitter cards */}
</head>
</>
);
}GOOD: Use generateMetadata with complete meta tags.
import { Metadata } from 'next';
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const post = await getPost(params.slug);
const url = `https://example.com/blog/${params.slug}`;
const ogImage = `/api/og?title=${encodeURIComponent(post.title)}`;
return {
title: post.title,
description: post.excerpt,
authors: [{ name: post.author }],
openGraph: {
title: post.title,
description: post.excerpt,
url,
siteName: 'My Site',
images: [{ url: ogImage, width: 1200, height: 630 }],
type: 'article',
publishedTime: post.publishedAt,
},
twitter: { card: 'summary_large_image', images: [ogImage] },
alternates: { canonical: url },
};
}JSON-LD Structured Data
BAD: Invalid JSON and wrong schema types.
<script type="application/ld+json">
{{ name: "Product", price: "$99.99" }} {/* missing @context, wrong types */}
</script>GOOD: Type-safe JSON-LD with proper schema.org vocabulary.
// lib/structured-data.ts
import { WithContext } from 'schema-dts';
export function createArticleSchema(article: {
title: string; author: string; publishedAt: string; url: string;
}): WithContext<'Article'> {
return {
'@context': 'https://schema.org',
'@type': 'Article',
headline: article.title,
datePublished: article.publishedAt,
author: { '@type': 'Person', name: article.author },
publisher: {
'@type': 'Organization',
name: 'My Site',
logo: { '@type': 'ImageObject', url: 'https://example.com/logo.png' },
},
mainEntityOfPage: { '@type': 'WebPage', '@id': article.url },
};
}
export function createProductSchema(product: {
name: string; price: number; currency: string; availability: string;
}): WithContext<'Product'> {
return {
'@context': 'https://schema.org',
'@type': 'Product',
name: product.name,
offers: {
'@type': 'Offer',
price: product.price.toFixed(2),
priceCurrency: product.currency,
availability: `https://schema.org/${product.availability}`,
},
};
}
// Usage
export default function BlogPost({ article }: Props) {
const schema = createArticleSchema(article);
return (
<>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
/>
<article>{/* content */}</article>
</>
);
}Dynamic OG Images
BAD: Hardcoded static image for all pages.
export async function generateMetadata(): Promise<Metadata> {
return { openGraph: { images: ['/static-og.png'] } }; // same everywhere
}GOOD: Generate dynamic OG images using @vercel/og.
// app/api/og/route.tsx
import { ImageResponse } from 'next/og';
export const runtime = 'edge';
export async function GET(request: Request) {
const title = new URL(request.url).searchParams.get('title') || 'Default';
return new ImageResponse(
(
<div style={{
background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
width: '100%', height: '100%', display: 'flex',
alignItems: 'center', justifyContent: 'center', padding: '80px',
}}>
<div style={{ fontSize: 60, fontWeight: 'bold', color: 'white' }}>
{title}
</div>
</div>
),
{ width: 1200, height: 630 }
);
}Sitemap and Robots.txt
BAD: Static XML file that never updates.
<!-- public/sitemap.xml -->
<urlset><url><loc>https://example.com/blog/post-1</loc></url></urlset>GOOD: Dynamic sitemap and robots.txt.
// app/sitemap.ts
import { MetadataRoute } from 'next';
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const base = 'https://example.com';
const routes = ['', '/about'].map((route) => ({
url: `${base}${route}`,
lastModified: new Date().toISOString(),
changeFrequency: 'monthly' as const,
priority: route === '' ? 1 : 0.8,
}));
const posts = await getAllPosts();
const postRoutes = posts.map((post) => ({
url: `${base}/blog/${post.slug}`,
lastModified: post.updatedAt,
changeFrequency: 'weekly' as const,
priority: 0.7,
}));
return [...routes, ...postRoutes];
}
// app/robots.ts
export default function robots(): MetadataRoute.Robots {
return {
rules: [
{ userAgent: '*', allow: '/', disallow: ['/api/', '/admin/'] },
{ userAgent: 'GPTBot', disallow: ['/'] },
],
sitemap: 'https://example.com/sitemap.xml',
};
}Canonical URLs and Meta Priority
Canonical URL workflow:
- Identify page type: static, dynamic, paginated, duplicate
- Set canonical in
generateMetadatausingalternates.canonical - For paginated content, point to current page
- For duplicate content, point to original
- Always use absolute URLs
// app/blog/page.tsx (paginated)
export async function generateMetadata({
searchParams,
}: {
searchParams: { page?: string };
}): Promise<Metadata> {
const page = Number(searchParams.page) || 1;
const base = 'https://example.com/blog';
return {
alternates: { canonical: page === 1 ? base : `${base}?page=${page}` },
};
}
// app/blog/[slug]/print/page.tsx (duplicate)
export async function generateMetadata({ params }: Props): Promise<Metadata> {
return {
alternates: { canonical: `https://example.com/blog/${params.slug}` },
robots: { index: false },
};
}Meta tag priority (highest first): Page generateMetadata > Parent layout > Root layout > Manual <meta>.
// app/layout.tsx
export const metadata: Metadata = {
title: { default: 'My Site', template: '%s | My Site' },
};
// app/blog/[slug]/page.tsx
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const post = await getPost(params.slug);
return { title: post.title }; // becomes "Post Title | My Site"
}Core Web Vitals Optimization
BAD: Blocking resources, unoptimized images.
export default function Page() {
return (
<>
<script src="https://example.com/heavy.js" /> {/* blocks render */}
<img src="/hero.jpg" width={1200} /> {/* no optimization */}
</>
);
}GOOD: Preload critical resources, optimize images.
import Image from 'next/image';
import Script from 'next/script';
export default function Page() {
return (
<>
<link rel="preload" href="/fonts/main.woff2" as="font" crossOrigin="" />
<Script src="https://example.com/analytics.js" strategy="afterInteractive" />
<Image src="/hero.jpg" width={1200} height={800} alt="Hero" priority />
</>
);
}
// Preconnect in layout
export const metadata: Metadata = {
other: {
'link-preconnect': 'https://fonts.googleapis.com',
'link-dns-prefetch': 'https://analytics.example.com',
},
};Implementation Workflow
- Use
generateMetadatafor all meta tags (no manual<meta>) - Include Open Graph and Twitter Card tags with dynamic OG images
- Add JSON-LD structured data (Article, Product, FAQ, Organization)
- Generate dynamic sitemap.ts that updates with content
- Configure robots.ts with proper allow/disallow rules
- Set canonical URLs for all pages (especially paginated/duplicate)
- Use title templates in layouts for consistent branding
- Optimize Core Web Vitals: preload fonts, defer scripts, use next/image
- Test with Google Rich Results Test and Search Console
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.

