关于 seo-auditing
用于检查和修复 Web 项目技术 SEO 问题的清单式技能,覆盖页面元数据、抓取能力、结构化数据、性能和无障碍信号。
主要功能
- 01检查元数据与规范网址
- 02检查 Open Graph 和 JSON-LD
- 03检查 sitemap 与 robots.txt
- 04评估 Core Web Vitals
- 05检查链接与无障碍信号
适用场景
- 01审查网站技术 SEO
- 02查找索引与抓取问题
- 03检查元数据和结构化数据
- 04发现性能与无障碍改进项
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ spencerpauly/ awesome-cursor-skills --skill seo-auditing安装后在 Claude Code 中输入/seo-auditing确认已加载。
详细介绍
SEO 审计
检查并修复 Web 项目中的技术 SEO 问题。
审计清单
1. Meta 标签
每个页面都必须包含:
<head>
<title>Page Title — Site Name</title>
<meta name="description" content="155 chars max, compelling summary" />
<link rel="canonical" href="https://example.com/page" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
检查以下内容:
- 每个页面都有唯一的
<title>(50-60 个字符) - 每个页面都有唯一的
<meta description>(120-155 个字符) - 设置规范 URL(避免重复内容)
- 不应被索引的页面不得设置
noindex
2. Open Graph 和社交媒体
<meta property="og:title" content="Page Title" />
<meta property="og:description" content="Description for social sharing" />
<meta property="og:image" content="https://example.com/og-image.png" />
<meta property="og:url" content="https://example.com/page" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
- OG 图片尺寸应为 1200x630px
- 使用 https://developers.facebook.com/tools/debug/ 和 https://cards-dev.twitter.com/validator 进行测试
3. 结构化数据(JSON-LD)
添加架构标记,以显示丰富搜索结果:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Article Title",
"author": { "@type": "Person", "name": "Author Name" },
"datePublished": "2026-04-10",
"image": "https://example.com/image.jpg"
}
</script>
常见类型:Article、Product、FAQPage、Organization、BreadcrumbList
使用此工具进行测试:https://search.google.com/test/rich-results
4. Sitemap
/sitemap.xml 应:
- 列出所有可索引页面
- 包含
<lastmod>日期 - 排除设置了
noindex的页面 - 每个文件不得超过 50MB / 50,000 个 URL
- 在
robots.txt中引用
5. Robots.txt
/robots.txt 应:
User-agent: *
Allow: /
Disallow: /api/
Disallow: /admin/
Sitemap: https://example.com/sitemap.xml
- 不要屏蔽 CSS/JS 文件(搜索引擎需要这些文件来渲染页面)
- 不要屏蔽需要被索引的页面
6. 性能(Core Web Vitals)
| 指标 | 良好 | 需要改进 |
|---|---|---|
| LCP(最大内容绘制) | < 2.5s | > 4.0s |
| INP(下一次绘制交互延迟) | < 200ms | > 500ms |
| CLS(累积布局偏移) | < 0.1 | > 0.25 |
关键修复措施:
- 压缩图片并启用延迟加载
- 预加载关键字体和 CSS
- 避免动态内容导致布局偏移
- 使用
next/image或同等方案进行自动优化
7. 可抓取性
- 所有重要页面都可通过内部链接访问
- 不存在孤立页面(没有任何内部链接指向的页面)
- 不存在重定向链(A→B→C 应改为 A→C)
- 404 页面返回正确的 HTTP 404 状态
- 不存在失效的内部链接
8. 无障碍性(SEO 信号)
- 所有图片都具有
alt文本 - 标题层级正确(一个
h1,然后是h2、h3等) - 链接具有描述性文本(不要使用“点击这里”)
- 设置语言属性:
<html lang="en">
快速自动检查
# Check robots.txt
curl -s https://example.com/robots.txt
# Check sitemap
curl -s https://example.com/sitemap.xml | head -20
# Check meta tags
curl -s https://example.com | grep -E '<title>|<meta name="description"|<link rel="canonical"'
# Check HTTP status codes
curl -o /dev/null -s -w "%{http_code}" https://example.com/page
提示
- 在 Chrome DevTools 中运行 Lighthouse → 检查 SEO 得分
- Google Search Console 是排查索引问题的权威来源
- 适配移动设备是排名因素之一——请在移动视口中测试
- 页面速度会直接影响排名——请优化 Core Web Vitals
评论
支持 Markdown