SEO Optimizer by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill 'SEO Optimizer'提供涵盖内容、技术实现和战略规划的全面搜索引擎优化指导,以提升自然搜索可见性和排名。
在以下情况下使用此技能:
主要关键词选择:
关键词研究流程:
1. 根据业务目标确定种子关键词
2. 使用工具扩展关键词列表(Google Keyword Planner, Ahrefs, SEMrush)
3. 分析搜索量和难度
4. 按主题集群对关键词进行分组
5. 将关键词映射到内容类型和页面
6. 根据潜在投资回报率确定优先级
内容优化公式:
标题标签优化:
<!-- 良好:描述性强,包含关键词,少于 60 个字符 -->
<title>React Hooks 终极指南 - 学习 useEffect 和 useState</title>
<!-- 不佳:过长,关键词堆砌,通用 -->
<title>React Hooks 指南 React Hooks 教程 React Hooks 示例 学习 React</title>
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
最佳实践:
元描述:
<!-- 良好:有吸引力,包含关键词,行动号召,150-160 字符 -->
<meta name="description" content="通过我们的全面指南掌握 React Hooks。学习 useState、useEffect 和自定义钩子的实际示例。立即开始构建更好的 React 应用。">
<!-- 不佳:太短,没有价值主张 -->
<meta name="description" content="React Hooks 指南和教程">
标题结构:
<!-- 正确的层级 -->
<h1>主页面标题(主要关键词)</h1>
<h2>章节标题(相关关键词)</h2>
<h3>子章节</h3>
<h3>子章节</h3>
<h2>另一个章节</h2>
<h3>子章节</h3>
URL 结构:
✅ 良好的 URL:
- /blog/react-hooks-guide
- /products/running-shoes
- /learn/javascript-async-await
❌ 不佳的 URL:
- /blog?p=12345
- /products/cat-1/subcat-2/item-999
- /page.php?id=abc&ref=xyz
图片优化:
<!-- 优化后的图片 -->
<img
src="/images/react-hooks-diagram-800w.webp"
alt="React Hooks 生命周期图,展示 useState 和 useEffect"
width="800"
height="600"
loading="lazy"
/>
最佳实践:
E-E-A-T 原则(经验、专业、权威、可信):
SEO 内容结构:
# 主标题 (H1) - 主要关键词
简要介绍,在开头 100 字内包含主要关键词。
## 什么是 [主题]? (H2) - 回答核心问题
包含示例的全面解释。
## 为什么 [主题] 很重要 (H2) - 价值主张
好处和用例。
## 如何 [操作] (H2) - 实用指南
包含视觉元素的逐步说明。
## 最佳实践 (H2) - 高级技巧
专家建议。
## 常见错误避免 (H2)
故障排除和陷阱。
## 结论
总结和行动号召。
内容长度指南:
结构化数据标记:
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "React Hooks 完全指南",
"image": "https://example.com/images/react-hooks.jpg",
"datePublished": "2024-01-15",
"dateModified": "2024-02-01",
"author": {
"@type": "Person",
"name": "Jane Developer"
},
"publisher": {
"@type": "Organization",
"name": "Tech Academy",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
}
}
常见结构化数据类型:
Robots.txt 配置:
User-agent: *
Disallow: /admin/
Disallow: /private/
Disallow: /api/
Allow: /api/public/
Sitemap: https://example.com/sitemap.xml
XML 站点地图结构:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2024-01-15</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/blog/react-hooks-guide</loc>
<lastmod>2024-01-10</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
规范标签:
<!-- 防止重复内容问题 -->
<link rel="canonical" href="https://example.com/original-page">
<!-- 处理 URL 参数 -->
<link rel="canonical" href="https://example.com/products/shoes">
<!-- 即使通过以下方式访问:/products/shoes?color=red&size=10 -->
最大内容绘制 - 目标:< 2.5 秒
首次输入延迟 - 目标:< 100 毫秒
累积布局偏移 - 目标:< 0.1
页面速度优化:
<!-- 预加载关键资源 -->
<link rel="preload" href="/fonts/main.woff2" as="font" crossorigin>
<!-- 延迟非关键 CSS -->
<link rel="preload" href="/styles/non-critical.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<!-- 异步/延迟 JavaScript -->
<script src="/js/analytics.js" async></script>
<script src="/js/main.js" defer></script>
移动优先优化:
视口配置:
<meta name="viewport" content="width=device-width, initial-scale=1">
最佳实践:
示例:
了解更多关于 [高级 React 模式](/guides/react-patterns)
或查看我们的 [useState 钩子教程](/tutorials/usestate-guide)。
发布前:
结构:
支柱页面:"React 完全指南"
├── 集群:"React Hooks 教程"
├── 集群:"React Context API 指南"
├── 集群:"React 性能优化"
└── 集群:"React 测试最佳实践"
实施:
基于问题的内容:
## 什么是 React?
React 是一个用于构建用户界面的 JavaScript 库,
由 Facebook 开发。它允许开发者创建可重用的
UI 组件,并通过虚拟 DOM 实现高效更新 DOM。
基于列表的内容:
## 前 5 个 React 最佳实践
1. 使用带有钩子的函数式组件
2. 实施适当的状态管理
3. 使用 React.memo 优化性能
4. 遵循组件组合模式
5. 编写全面的测试
基于表格的内容:
| 框架 | 性能 | 学习曲线 | 生态系统 |
|---|---|---|---|
| React | 优秀 | 中等 | 广泛 |
| Vue | 优秀 | 容易 | 增长中 |
| Angular | 良好 | 陡峭 | 成熟 |
Google 商家资料优化:
本地结构化数据标记:
{
"@type": "LocalBusiness",
"name": "Tech Solutions Inc",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94102"
},
"telephone": "+1-415-555-0123"
}
关键指标跟踪:
工具:
进行 SEO 优化时,应优先考虑用户体验和价值传递。搜索引擎越来越倾向于奖励那些真正帮助用户并提供权威、可信信息的网站内容。
每周安装量
0
代码仓库
GitHub 星标数
22.6K
首次出现
1970年1月1日
安全审计
Comprehensive guidance for search engine optimization across content, technical implementation, and strategic planning to improve organic search visibility and rankings.
Use this skill when:
Primary Keyword Selection:
Keyword Research Process:
1. Identify seed keywords from business objectives
2. Use tools to expand keyword list (Google Keyword Planner, Ahrefs, SEMrush)
3. Analyze search volume and difficulty
4. Group keywords by topic clusters
5. Map keywords to content types and pages
6. Prioritize based on potential ROI
Content Optimization Formula:
Title Tag Optimization:
<!-- Good: Descriptive, includes keyword, under 60 characters -->
<title>Ultimate Guide to React Hooks - Learn useEffect & useState</title>
<!-- Bad: Too long, keyword stuffing, generic -->
<title>React Hooks Guide React Hooks Tutorial React Hooks Examples Learn React</title>
Best Practices:
Meta Description:
<!-- Good: Compelling, includes keywords, call-to-action, 150-160 chars -->
<meta name="description" content="Master React Hooks with our comprehensive guide. Learn useState, useEffect, and custom hooks with practical examples. Start building better React apps today.">
<!-- Bad: Too short, no value proposition -->
<meta name="description" content="React Hooks guide and tutorial">
Header Structure:
<!-- Proper hierarchy -->
<h1>Main Page Title (Primary Keyword)</h1>
<h2>Section Heading (Related Keywords)</h2>
<h3>Subsection</h3>
<h3>Subsection</h3>
<h2>Another Section</h2>
<h3>Subsection</h3>
URL Structure:
✅ Good URLs:
- /blog/react-hooks-guide
- /products/running-shoes
- /learn/javascript-async-await
❌ Bad URLs:
- /blog?p=12345
- /products/cat-1/subcat-2/item-999
- /page.php?id=abc&ref=xyz
Image Optimization:
<!-- Optimized image -->
<img
src="/images/react-hooks-diagram-800w.webp"
alt="React Hooks lifecycle diagram showing useState and useEffect"
width="800"
height="600"
loading="lazy"
/>
Best Practices:
E-E-A-T Principles (Experience, Expertise, Authoritativeness, Trust):
Content Structure for SEO:
# Main Title (H1) - Primary Keyword
Brief introduction with primary keyword in first 100 words.
## What is [Topic]? (H2) - Answer core question
Comprehensive explanation with examples.
## Why [Topic] Matters (H2) - Value proposition
Benefits and use cases.
## How to [Action] (H2) - Practical guide
Step-by-step instructions with visuals.
## Best Practices (H2) - Advanced tips
Expert recommendations.
## Common Mistakes to Avoid (H2)
Troubleshooting and pitfalls.
## Conclusion
Summary and call-to-action.
Content Length Guidelines:
Schema Markup (Structured Data):
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Complete Guide to React Hooks",
"image": "https://example.com/images/react-hooks.jpg",
"datePublished": "2024-01-15",
"dateModified": "2024-02-01",
"author": {
"@type": "Person",
"name": "Jane Developer"
},
"publisher": {
"@type": "Organization",
"name": "Tech Academy",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
}
}
Common Schema Types:
Robots.txt Configuration:
User-agent: *
Disallow: /admin/
Disallow: /private/
Disallow: /api/
Allow: /api/public/
Sitemap: https://example.com/sitemap.xml
XML Sitemap Structure:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2024-01-15</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/blog/react-hooks-guide</loc>
<lastmod>2024-01-10</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
Canonical Tags:
<!-- Prevent duplicate content issues -->
<link rel="canonical" href="https://example.com/original-page">
<!-- Handle URL parameters -->
<link rel="canonical" href="https://example.com/products/shoes">
<!-- Even if accessed via: /products/shoes?color=red&size=10 -->
Largest Contentful Paint (LCP) - Target: < 2.5s
First Input Delay (FID) - Target: < 100ms
Cumulative Layout Shift (CLS) - Target: < 0.1
Page Speed Optimization:
<!-- Preload critical resources -->
<link rel="preload" href="/fonts/main.woff2" as="font" crossorigin>
<!-- Defer non-critical CSS -->
<link rel="preload" href="/styles/non-critical.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<!-- Async/defer JavaScript -->
<script src="/js/analytics.js" async></script>
<script src="/js/main.js" defer></script>
Mobile-First Optimization:
Viewport Configuration:
<meta name="viewport" content="width=device-width, initial-scale=1">
Best Practices:
Example:
Learn more about [advanced React patterns](/guides/react-patterns)
or check out our [useState hook tutorial](/tutorials/usestate-guide).
Before Publishing:
Structure:
Pillar Page: "Complete Guide to React"
├── Cluster: "React Hooks Tutorial"
├── Cluster: "React Context API Guide"
├── Cluster: "React Performance Optimization"
└── Cluster: "React Testing Best Practices"
Implementation:
Question-Based Content:
## What is React?
React is a JavaScript library for building user interfaces,
developed by Facebook. It allows developers to create reusable
UI components and efficiently update the DOM through a virtual
DOM implementation.
List-Based Content:
## Top 5 React Best Practices
1. Use functional components with hooks
2. Implement proper state management
3. Optimize performance with React.memo
4. Follow component composition patterns
5. Write comprehensive tests
Table-Based Content:
| Framework | Performance | Learning Curve | Ecosystem |
|---|---|---|---|
| React | Excellent | Moderate | Extensive |
| Vue | Excellent | Easy | Growing |
| Angular | Good | Steep | Mature |
Google Business Profile Optimization:
Local Schema Markup:
{
"@type": "LocalBusiness",
"name": "Tech Solutions Inc",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "San Francisco",
"addressRegion": "CA",
"postalCode": "94102"
},
"telephone": "+1-415-555-0123"
}
Key Metrics to Track:
Tools:
When optimizing for SEO, prioritize user experience and value delivery. Search engines increasingly reward content that genuinely helps users and provides authoritative, trustworthy information.
Weekly Installs
0
Repository
GitHub Stars
22.6K
First Seen
Jan 1, 1970
Security Audits
Schema标记专家指南:结构化数据实现与SEO优化,提升富媒体搜索结果
29,200 周安装
Vite Flare Starter:开箱即用的全栈Cloudflare应用模板,集成React 19、Hono、D1
456 周安装
Sentry提交消息规范指南:Git Commit格式、类型与最佳实践
456 周安装
WP PHPStan:WordPress代码质量与静态分析工具,提升PHPStan集成效率
479 周安装
WordPress Abilities API 使用指南:PHP注册、REST暴露与JS集成
479 周安装
市场环境分析工具:实时全球市场报告与交易决策支持 | 金融科技AI助手
464 周安装
AI解说视频生成工具 - 一键创建教程与产品介绍视频,含AI生成画面
472 周安装