Skip to content

aiskillstore/marketplace / skills/aayushbaniya2006/seo-handler

seo-handler

Verified

Manage SEO, sitemaps, and metadata for optimal search engine visibility

FileKindSize
SKILL.mdskill md4.8 KB
reference.mdmarkdown1.4 KB
skill-report.jsonconfig42.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
}
```
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall