aiskillstore/marketplace / skills/aayushbaniya2006/seo-handler
seo-handler
VerifiedManage SEO, sitemaps, and metadata for optimal search engine visibility
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.8 KB |
| reference.md | markdown | 1.4 KB |
| skill-report.json | config | 42.5 KB |
reference.md
View on GitHub# SEO Reference
## Files
- **Sitemap**: `src/app/sitemap.ts`
- **Robots**: `src/app/robots.ts`
- **Metadata**: `layout.tsx` & `page.tsx`
## Snippets
### Generate Metadata
```typescript
import { Metadata } from "next";
export async function generateMetadata({ params }): Promise<Metadata> {
const data = await fetchData(params.id);
return {
title: data.title,
description: data.description,
openGraph: {
title: data.title,
description: data.description,
images: [data.image],
},
};
}
```
### JSON-LD (Next-SEO)
```tsx
import { ArticleJsonLd } from "next-seo";
<ArticleJsonLd
useAppDir
url="https://example.com/article"
title="Article Title"
images={["https://example.com/image.jpg"]}
datePublished="2024-01-01"
authorName="Author Name"
description="Description..."
/>
```
### JSON-LD (Raw Script)
```tsx
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'Product',
name: 'Product Name'
})
}}
/>
```
### ISR Configuration
```typescript
// In page.tsx
export const revalidate = 60; // 60 seconds
export const dynamic = 'force-static'; // Optional: strict static
```
### Sitemap Item Interface
```typescript
{
url: string;
lastModified?: string | Date;
changeFrequency?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never';
priority?: number; // 0.0 to 1.0
}
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |