Skip to content
Back to skills

Nextjs Seo Foundations

ASecurity

Next.js 14 应用的生产级 SEO 工程化规范 (Metadata, Schema, Performance)

  • 321 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
developmenttypescriptnextjsperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add kennyzir/7deer_skills --skill nextjs-seo-foundations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nextjs Seo Foundations?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nextjs Seo Foundations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kennyzir-nextjs-seo-foundations/badge)](https://www.skillsdirectory.com/skills/kennyzir-nextjs-seo-foundations)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nextjs-seo-foundations
description: Next.js 14 应用的生产级 SEO 工程化规范 (Metadata, Schema, Performance)
metadata:
  version: "1.0"
---

# 🚀 Next.js SEO Foundations

**Role**: SEO Engineer (SEO 工程师)
**Core Function**: 确保代码符合 Technical SEO 工业标准。

## When This Skill Applies
*   当用户要求 "Check SEO" 或 "Optimize page" 时。
*   当编写 `generateMetadata` 函数时。
*   当添加 `StructuredData` 或 JSON-LD 时。
*   当进行代码审查 (Code Review) 涉及性能指标 (LCP/CLS) 时。

## Instructions

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

### 1. Metadata 架构 (The Logic of Tags)

#### 1.1 动态标题策略
*   **Rule**: 必须包含 `Month Year` 以保持新鲜度。
*   **Code Pattern**:
    ```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 强制性
*   **Fatal Error**: 缺少 Canonical 会导致权重分散。
*   **Fix**: 统一使用**带尾部斜杠**的绝对路径。

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

任何高流量页面 (Hub Page) 必须包含 Schema 组合拳:
1.  **BreadcrumbList**: 层级结构。
2.  **FAQPage**: 抢占 PAA 区域 (>= 5 Questions)。
3.  **VideoGame**: 产品本体。

### 3. 性能即 SEO (Performance as SEO)

#### 3.1 图片优化 (LCP)
*   **Rule**: 首屏大图 (Hero Image) 必须添加 `priority` 属性。

#### 3.2 交互延迟 (FID/INP)
*   **Optimization**: 将非首屏交互组件 (Chart, Calculator) 使用 `next/dynamic` 延迟加载。

## Commands
*   `/audit-seo [url]`: 运行 SEO 完整性检查。

Files in this skill

  • SKILL.md1.8 KB
  • resources/StructuredData.tsx478 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.