[ PROMPT_NODE_25462 ]
seo
[ SKILL_DOCUMENTATION ]
# SEO 优化
基于 Lighthouse SEO 审计和 Google 搜索指南的搜索引擎优化。专注于技术 SEO、页面内优化和结构化数据。
## SEO 基础
搜索排名因素(近似影响权重):
| 因素 | 影响 | 本技能 |
|--------|-----------|------------|
| 内容质量与相关性 | ~40% | 部分(结构) |
| 反向链接与权威性 | ~25% | ✗ |
| 技术 SEO | ~15% | ✓ |
| 页面体验 (Core Web Vitals) | ~10% | 参见 [Core Web Vitals](../core-web-vitals/SKILL.md) |
| 页面内 SEO | ~10% | ✓ |
---
## 技术 SEO
### 可抓取性
**robots.txt:**
text
# /robots.txt
User-agent: *
Allow: /
# 屏蔽管理/私有区域
Disallow: /admin/
Disallow: /api/
Disallow: /private/
# 不要屏蔽渲染所需的资源
# ❌ Disallow: /static/
Sitemap: https://example.com/sitemap.xml
**Meta robots:**
html
**规范链接 (Canonical URLs):**
html
### XML 站点地图
xml
https://example.com/
2024-01-15
daily
1.0
https://example.com/products
2024-01-14
weekly
0.8
**站点地图最佳实践:**
- 每个站点地图最多 50,000 个 URL 或 50MB
- 大型网站使用站点地图索引
- 仅包含规范的、可索引的 URL
- 内容更改时更新 `lastmod`
- 提交至 Google Search Console
### URL 结构
✅ 好的 URL:
https://example.com/products/blue-widget
https://example.com/blog/how-to-use-widgets
❌ 较差的 URL:
https://example.com/p?id=12345
http