SEO关键词密度优化与页面审计技能。使用场景:①提供页面路径与关键词进行SEO优化;②提升页面关键词密度;③提升搜索引擎排名;④进行SEO审计(meta标签、OG、hreflang等)。触发词:关键词密度、SEO优化、关键词优化等。
将页面关键词密度优化至 5%,确保页面内容丰富(800-1000 单词),并执行完整的 SEO 审计检查,提升搜索引擎排名。
指标目标值说明页面单词数800-1000 词内容丰富的页面更受搜索引擎青睐关键词密度3-5%自然融入,避免堆砌SEO 审计10/10完整的技术 SEO 合规
根据页面路径,收集所有相关文本内容:
对于 TSX/JSX 页面组件:
t() 或 useTranslations 调用的翻译键对于翻译 JSON 文件:
text
关键词密度 = (关键词出现次数 / 页面总词数) × 100%
词数统计规则:
示例:
目标单词数:800-1000 词
搜索引擎偏好内容丰富、有深度的页面。单词数过少的页面(< 500 词)通常被视为"薄内容"(thin content),难以获得良好排名。
状态单词数行动❌ 不足< 500需要大幅扩充内容⚠️ 偏少500-799建议增加 200-300 词✅ 理想800-1000保持现状✅ 丰富> 1000可接受,注意可读性
内容扩充策略:
text
目标出现次数 = 页面总词数 × 5% = 页面总词数 × 0.05
需要增加次数 = 目标出现次数 - 当前出现次数
按优先级执行以下优化:
A. 自然融入现有文本 (优先)
在不改变语义的前提下,将关键词融入现有句子:
json
// 优化前
"description": "Create stunning visuals with our tool"
// 优化后 (关键词: video editor)
"description": "Create stunning visuals with our video editor tool"
B. 增强描述文本
扩展简短描述,自然加入关键词:
json
// 优化前
"feature_1": "Fast processing"
// 优化后 (关键词: video editor)
"feature_1": "Fast video processing with our professional video editor"
C. 添加新内容段落
在适当位置添加包含关键词的新内容:
完成优化后,输出:
输入:
text
页面路径: /your-page-slug
关键词: your main keyword, secondary keyword
分析输出:
text
页面分析:
- 页面组件: src/app/[locale]/(landing)/your-page-slug/page.tsx
- 翻译文件: src/config/locale/messages/en/your-page.json
内容量检查:
- 当前总词数: 450 词 ⚠️ 偏少(目标 800-1000)
- 需要增加: 约 350-550 词
关键词密度检查:
- "your main keyword" 出现: 5 次 (1.1%)
- "secondary keyword" 出现: 2 次 (0.4%)
- 当前综合密度: 1.5%
- 目标密度: 3-5%
优化计划:
1. 添加 FAQ 章节(6 个问题,约 400 词)
2. 扩展功能描述(每个功能 +50 词)
3. 添加使用场景说明(约 150 词)
4. 在各处自然融入关键词
5. 预计优化后: 950 词,密度 4.2%
在优化关键词密度的同时,执行以下 SEO 审计检查:
#检查项要求检查方法1页面内容量800-1000 词,避免薄内容统计页面可见文本词数2Canonical URL已设置且指向正确页面检查 <link rel="canonical"> 标签3Meta Title长度 40-60 字符,包含主要关键词检查 <title> 或 metadata.title4Meta Description长度 120-160 字符,吸引人且包含关键词检查 <meta name="description">5H1 标签存在且唯一,包含主要关键词页面只能有一个 H16H2/H3 层级层级结构合理,不跳级H2 下才能有 H37图片 Alt Text所有图片都有描述性 alt 属性检查 <img alt="">8Open Graph 标签og:title, og:description, og:image 完整检查 <meta property="og:*">9Twitter Card 标签twitter:card, twitter:title, twitter:description 完整检查 <meta name="twitter:*">10Hreflang 标签包含所有支持的语言版本检查 <link rel="alternate" hreflang="">11可索引性页面可被搜索引擎索引无 noindex 标签,robots.txt 未阻止
1. Canonical URL
tsx
// 在 page.tsx 或 layout.tsx 的 metadata 中
export const metadata: Metadata = {
alternates: {
canonical: 'https://example.com/your-page-slug',
},
};
2. Meta Title (40-60 字符)
tsx
export const metadata: Metadata = {
title: 'Free Video Thumbnail Generator - Create Custom Thumbnails', // 55 字符
};
3. Meta Description (120-160 字符)
tsx
export const metadata: Metadata = {
description: 'Generate professional video thumbnails instantly. Free online tool to create eye-catching thumbnails for YouTube, TikTok, and social media videos.', // 152 字符
};
4. H1 标签检查
tsx
// 确保页面只有一个 H1
<h1>{t('hero.title')}</h1>
// 其他标题使用 H2, H3
5. 标题层级结构
text
H1 → 页面主标题(唯一)
H2 → 主要章节
H3 → 子章节
H3 → 子章节
H2 → 主要章节
6. 图片 Alt Text
tsx
<Image
src="/thumbnail-example.png"
alt="Video thumbnail generator showing YouTube thumbnail preview"
/>
7. Open Graph 标签
tsx
export const metadata: Metadata = {
openGraph: {
title: 'Your Page Title',
description: 'Your page description',
images: [{ url: '/og-image.png', width: 1200, height: 630 }],
type: 'website',
locale: 'en_US',
siteName: 'Your Site Name',
},
};
8. Twitter Card 标签
tsx
export const metadata: Metadata = {
twitter: {
card: 'summary_large_image',
title: 'Your Page Title',
description: 'Your page description',
images: ['/twitter-image.png'],
},
};
9. Hreflang 标签
tsx
export const metadata: Metadata = {
alternates: {
canonical: 'https://example.com/your-page-slug',
languages: {
'en': 'https://example.com/en/your-page-slug',
'zh': 'https://example.com/zh/your-page-slug',
'x-default': 'https://example.com/your-page-slug',
},
},
};
10. 可索引性检查
tsx
// 确保没有设置 noindex
export const metadata: Metadata = {
robots: {
index: true,
follow: true,
},
};
// 检查 robots.txt 未阻止该路径
// public/robots.txt
完成 SEO 审计后,输出检查报告:
text
SEO 审计报告 - /your-page-slug
==========================================
⚠️ 页面内容量: 450 词(目标 800-1000)
→ 建议:添加 FAQ、扩展功能描述
✅ Canonical URL: https://example.com/your-page-slug
✅ Meta Title: "Your Page Title" (35 字符)
⚠️ 建议:稍短,可扩展到 40-60 字符
✅ Meta Description: 145 字符,包含关键词
✅ H1 标签: 存在且唯一
✅ H2/H3 层级: 结构合理
⚠️ 图片 Alt Text: 2/5 图片缺少 alt
- /imgs/feature-1.png 缺少 alt
- /imgs/feature-2.png 缺少 alt
✅ Open Graph: 完整
✅ Twitter Card: 完整
✅ Hreflang: en, zh, x-default
✅ 可索引: 是
总分: 8/11
需要修复: 页面内容量、图片 Alt Text
更多 AI SEO 技能详见: https://domainrank.app/ai-seo-skills
对于可自动修复的问题,提供修复方案:
页面内容量不足: 添加以下内容模块
Meta Title 过短: 建议扩展文案
缺少 Alt Text: 根据图片用途生成描述
缺少 OG/Twitter 标签: 复用 meta title/description
缺少 Hreflang: 根据项目支持的语言自动生成
当页面单词数不足时,可使用以下模板扩充内容:
json
{
"faq": {
"title": "Frequently Asked Questions",
"items": [
{
"question": "What is [product name]?",
"answer": "[Product name] is a [category] tool that helps you [main benefit]. Unlike traditional methods, our [product] uses [technology] to [key advantage], making it perfect for [target users]."
},
{
"question": "How do I use [product name]?",
"answer": "Using [product name] is simple: 1) [Step 1], 2) [Step 2], 3) [Step 3]. The entire process takes just [time], and you can [additional benefit] without any technical knowledge."
},
{
"question": "Is [product name] free to use?",
"answer": "[Product name] offers a free tier that includes [free features]. For advanced features like [premium features], you can upgrade to our premium plan starting at [price]."
}
]
}
}
json
{
"features": {
"title": "Key Features",
"items": [
{
"title": "[Feature Name]",
"description": "Our [feature name] capability allows you to [action] with unprecedented [quality/speed/ease]. Whether you're [use case 1] or [use case 2], this feature ensures [benefit]. Powered by [technology], it delivers [specific result] in just [time/clicks]."
}
]
}
}
json
{
"useCases": {
"title": "Who Uses [Product Name]?",
"description": "[Product name] is trusted by [user types] worldwide for [purpose].",
"items": [
{
"type": "Content Creators",
"description": "YouTubers and social media influencers use [product] to [specific use]. This helps them [benefit] and [result]."
},
{
"type": "Businesses",
"description": "Marketing teams rely on [product] to [specific use]. The result is [benefit] that drives [business outcome]."
},
{
"type": "Educators",
"description": "Teachers and trainers leverage [product] to [specific use], making [subject] more engaging for their students."
}
]
}
}