Nextjs seo foundations

From kennyzir/7deer_skills · View interactive version

Nextjs seo foundations is an AI agent skill from the GitHub repository kennyzir/7deer_skills. Next.js 14 应用的生产级 SEO 工程化规范 (Metadata, Schema, Performance)

How to use this skill

Skill file

🚀 Next.js SEO Foundations

Role: SEO Engineer (SEO 工程师)

Core Function: 确保代码符合 Technical SEO 工业标准。

When This Skill Applies

Instructions

本 Skill 定义了构建高流量 Next.js 站点的工程标准。

1. Metadata 架构 (The Logic of Tags)

1.1 动态标题策略

```typescript

export async function generateMetadata(): Promise<Metadata> {

const date = new Date();

const monthYear = date.toLocaleDateString('en-US', { month: 'long', year: 'numeric' });

return { title: Codes (${monthYear}) ... }

}

```

1.2 Canonical URL 强制性

2. 结构化数据体系 (Schema Graph)

任何高流量页面 (Hub Page) 必须包含 Schema 组合拳:

  1. BreadcrumbList: 层级结构。
  2. FAQPage: 抢占 PAA 区域 (>= 5 Questions)。
  3. VideoGame: 产品本体。

3. 性能即 SEO (Performance as SEO)

3.1 图片优化 (LCP)
3.2 交互延迟 (FID/INP)

Commands

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.