关于 seo-aeo-audit
seo-aeo-audit 是面向网站运营者的 SEO 与 AEO 检查技能,覆盖技术 SEO、页面内容、结构化数据和 AI 可见度。它提供审计清单与可选脚本,用于检查网站并跟踪搜索引擎和 AI 回答中的呈现情况。
主要功能
- 01检查抓取、索引与规范 URL
- 02审查标题、描述和页面结构
- 03提供 JSON-LD 结构化数据指引
- 04涵盖移动端与国际 SEO
- 05提供 Lighthouse 等审计脚本
- 06介绍 AEO 内容与可见度检查
适用场景
- 01排查网站无法抓取或索引的问题
- 02审查页面标题、描述和内部链接
- 03为页面添加并验证结构化数据
- 04检查内容在 AI 回答中的可发现性
安装
复制下面的命令,在终端中运行。
npx skills add https:/ / github.com/ warpdotdev/ oz-skills --skill seo-aeo-audit安装后在 Claude Code 中输入/seo-aeo-audit确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/json-ld-templates.mdscripts/lighthouse.shpagespeed.shsearch-console-export.mjs详细介绍
SEO 优化
基于 Lighthouse SEO 审核和 Google 搜索指南进行搜索引擎优化。重点关注技术 SEO、页面优化和结构化数据。
技术 SEO
可抓取性
robots.txt:
# /robots.txt
User-agent: *
Allow: /
# Block admin/private areas
Disallow: /admin/
Disallow: /api/
Disallow: /private/
# Don't block resources needed for rendering
# ❌ Disallow: /static/
Sitemap: https://example.com/sitemap.xml
Meta robots:
<meta name="robots" content="index, follow">
<meta name="robots" content="noindex, nofollow">
<meta name="robots" content="index, nofollow">
<meta name="robots" content="max-snippet:150, max-image-preview:large">
规范 URL:
<link rel="canonical" href="https://example.com/page">
<link rel="canonical" href="https://example.com/current-page">
<link rel="canonical" href="https://example.com/products">
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>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/products</loc>
<lastmod>2024-01-14</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
站点地图最佳实践:
- 每个站点地图最多包含 50,000 个 URL 或 50MB
- 对于较大的网站,请使用站点地图索引
- 仅包含规范且可编入索引的 URL
- 内容变更时更新
lastmod - 提交至 Google Search Console
URL 结构
✅ Good URLs:
https://example.com/products/blue-widget
https://example.com/blog/how-to-use-widgets
❌ Poor URLs:
https://example.com/p?id=12345
https://example.com/products/item/category/subcategory/blue-widget-2024-sale-discount
URL 指南:
- 使用连字符,不要使用下划线
- 仅使用小写字母
- 保持简短(< 75 个字符)
- 自然地包含目标关键词
- 尽可能避免使用参数
- 始终使用 HTTPS
HTTPS 与安全性
<img src="https://example.com/image.jpg">
<img src="http://example.com/image.jpg">
有助于 SEO 信任信号的安全标头:
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
页面 SEO
标题标签
<title>Page</title>
<title>Home</title>
<title>Blue Widgets for Sale | Premium Quality | Example Store</title>
标题标签指南:
- 50–60 个字符(Google 会在约 60 个字符处截断)
- 将主要关键词放在靠前位置
- 每个页面使用唯一标题
- 品牌名称放在末尾(首页除外)
- 适当采用以行动为导向的表述
Meta 描述
<meta name="description" content="">
<meta name="description" content="Shop premium blue widgets with free shipping. 30-day returns. Rated 4.9/5 by 10,000+ customers. Order today and save 20%.">
Meta 描述指南:
- 150–160 个字符
- 自然地包含主要关键词
- 使用有吸引力的行动号召
- 每个页面使用唯一描述
- 与页面内容相符
标题结构
<h2>Welcome to Our Store</h2>
<h4>Products</h4>
<h1>Contact Us</h1>
<h1>Blue Widgets - Premium Quality</h1>
<h2>Product Features</h2>
<h3>Durability</h3>
<h3>Design</h3>
<h2>Customer Reviews</h2>
<h2>Pricing</h2>
标题指南:
- 每个页面使用一个
<h1>(主要主题) - 层级清晰合理(不要跳过级别)
- 自然地包含关键词
- 描述具体,避免泛泛而谈
图片 SEO
<img src="IMG_12345.jpg">
<img src="blue-widget-product-photo.webp"
alt="Blue widget with chrome finish, side view showing control panel"
width="800"
height="600"
loading="lazy">
图片指南:
- 使用包含关键词的描述性文件名
- Alt 文本描述图片内容
- 压缩图片并设置合适尺寸
- 使用 WebP/AVIF,并提供回退格式
- 对首屏以下的图片启用延迟加载
内部链接
<a href="/products">Click here</a>
<a href="/widgets">Read more</a>
<a href="/products/blue-widgets">Browse our blue widget collection</a>
<a href="/guides/widget-maintenance">Learn how to maintain your widgets</a>
链接指南:
- 使用包含关键词的描述性锚文本
- 链接至相关的站内页面
- 合理控制每个页面的链接数量
- 及时修复失效链接
- 使用面包屑展示层级关系
结构化数据(JSON-LD)
组织
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Example Company",
"url": "https://example.com",
"logo": "https://example.com/logo.png",
"sameAs": [
"https://twitter.com/example",
"https://linkedin.com/company/example"
],
"contactPoint": {
"@type": "ContactPoint",
"telephone": "+1-555-123-4567",
"contactType": "customer service"
}
}
</script>
文章
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Choose the Right Widget",
"description": "Complete guide to selecting widgets for your needs.",
"image": "https://example.com/article-image.jpg",
"author": {
"@type": "Person",
"name": "Jane Smith",
"url": "https://example.com/authors/jane-smith"
},
"publisher": {
"@type": "Organization",
"name": "Example Blog",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
},
"datePublished": "2024-01-15",
"dateModified": "2024-01-20"
}
</script>
产品
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Blue Widget Pro",
"image": "https://example.com/blue-widget.jpg",
"description": "Premium blue widget with advanced features.",
"brand": {
"@type": "Brand",
"name": "WidgetCo"
},
"offers": {
"@type": "Offer",
"price": "49.99",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock",
"url": "https://example.com/products/blue-widget"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.8",
"reviewCount": "1250"
}
}
</script>
常见问题
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What colors are available?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Our widgets come in blue, red, and green."
}
},
{
"@type": "Question",
"name": "What is the warranty?",
"acceptedAnswer": {
"@type": "Answer",
"text": "All widgets include a 2-year warranty."
}
}
]
}
</script>
面包屑
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://example.com"
},
{
"@type": "ListItem",
"position": 2,
"name": "Products",
"item": "https://example.com/products"
},
{
"@type": "ListItem",
"position": 3,
"name": "Blue Widgets",
"item": "https://example.com/products/blue-widgets"
}
]
}
</script>
验证
在以下工具中测试结构化数据:
移动 SEO
响应式设计
<meta name="viewport" content="width=1024">
<meta name="viewport" content="width=device-width, initial-scale=1">
点击目标
/* ❌ Too small for mobile */
.small-link {
padding: 4px;
font-size: 12px;
}
/* ✅ Adequate tap target */
.mobile-friendly-link {
padding: 12px;
font-size: 16px;
min-height: 48px;
min-width: 48px;
}
字体大小
/* ❌ Too small on mobile */
body {
font-size: 10px;
}
/* ✅ Readable without zooming */
body {
font-size: 16px;
line-height: 1.5;
}
国际 SEO
Hreflang 标签
<link rel="alternate" hreflang="en" href="https://example.com/page">
<link rel="alternate" hreflang="es" href="https://example.com/es/page">
<link rel="alternate" hreflang="fr" href="https://example.com/fr/page">
<link rel="alternate" hreflang="x-default" href="https://example.com/page">
语言声明
<html lang="en">
<html lang="es-MX">
SEO 审核清单
关键
- 已启用 HTTPS
- robots.txt 允许抓取
- 重要页面未设置
noindex - 已设置标题标签,且各不相同
- 每个页面只有一个
<h1>
高优先级
- 已设置 Meta 描述
- 已提交站点地图
- 已设置规范 URL
- 已适配移动设备
- Core Web Vitals 达标
中优先级
- 已实现结构化数据
- 已制定内部链接策略
- 已设置图片 Alt 文本
- URL 具有描述性
- 已设置面包屑导航
持续进行
- 在 Search Console 中修复抓取错误
- 内容变更时更新站点地图
- 监控排名变化
- 检查失效链接
- 查看 Search Console 洞察
审核工作流
- 基线检查:使用 Lighthouse 和 PageSpeed 检查关键页面模板(首页、分类页、详情页、博客)。
- 抓取:验证可编入索引性、规范 URL 和重复内容(使用 Search Console 和抓取工具)。
- 修复阻塞问题:
noindex、robots.txt、规范 URL 不匹配、重定向链。 - 页面优化:标题、Meta 描述、标题结构、内部链接、图片 Alt 文本。
- 结构化数据:添加 JSON-LD 并验证富媒体搜索结果。
- 再次验证:重新运行 Lighthouse/PageSpeed,并检查 Search Console 覆盖率。
常见陷阱
- 在重要页面上意外设置
noindex或X-Robots-Tag robots.txt屏蔽 CSS/JS 或关键渲染资源- 规范链接指向的 URL 与已编入索引的 URL 不同
http/https或www/非www混用,导致内容重复- 重定向链/循环(浪费抓取预算并拖慢页面加载)
- 带参数的 URL 可被编入索引(筛选、排序、UTM),但未通过规范链接加以控制
- JavaScript 渲染的内容未显示在初始 HTML 中
- 软 404(状态码为 200,但内容显示“未找到”)
- 网站地图包含非规范 URL 或
noindexURL - Hreflang 标签缺少相互链接,或使用了错误的语言/地区代码
工具
| 工具 | 用途 |
|---|---|
| Google Search Console | 监控索引情况、修复问题 |
| Google PageSpeed Insights | 性能 + Core Web Vitals |
| Rich Results Test | 验证结构化数据 |
| Lighthouse | 全面 SEO 审核 |
| Screaming Frog | 抓取分析 |
脚本(可选)
scripts/ 下的脚本可用于执行可重复的审核:
scripts/lighthouse.sh:针对某个 URL 或 URL 列表运行 Lighthouse CLI,并保存 JSON 报告。scripts/pagespeed.sh:使用curl调用 PageSpeed Insights API 并捕获 JSON 输出。scripts/search-console-export.mjs:导出 Search Console Search Analytics 数据(需要 OAuth 访问令牌)。
使用示例:
# Lighthouse (SEO category only)
scripts/lighthouse.sh https://example.com
scripts/lighthouse.sh urls.txt reports/lighthouse
# PageSpeed Insights API (requires PAGESPEED_API_KEY)
PAGESPEED_API_KEY=... scripts/pagespeed.sh https://example.com
PAGESPEED_API_KEY=... scripts/pagespeed.sh urls.txt reports/pagespeed
# Search Console API (requires GSC_ACCESS_TOKEN)
GSC_ACCESS_TOKEN=... scripts/search-console-export.mjs https://example.com 2024-01-01 2024-01-31
AEO / AI 可见度优化
答案引擎优化(AEO)致力于让 AI Agent(ChatGPT、Perplexity、Gemini、Google AI Overviews)能够发现并引用内容。SEO 旨在提升排名和点击量,而 AEO 则旨在提高 AI 生成的回复中的引用、提及和品牌权威性。
与 SEO 的主要区别
SEO: Rank high → get clicks → drive traffic
AEO: Be cited → own the answer → build authority
SEO metric: Position, CTR, impressions
AEO metric: Citations, mentions, AI visibility score
SEO query: "best project management software"
AEO query: "What's the best project management software for a remote team of 15 with budget under $500/month?"
市场变化:
- Gartner 预测,到 2026 年,由于 AI 聊天机器人,传统搜索量将下降 25%
- 每周有超过 4 亿人使用 OpenAI 产品
- 目前,58% 的搜索属于“零点击”搜索(直接在 AI 界面中得到回答)
AEO 的内容结构
答案优先的格式:
## What is AEO?
In recent years, the rise of AI-powered search has transformed
how users discover information. This shift has created new
opportunities for brands. Answer Engine Optimization is...
## What is AEO?
Answer Engine Optimization (AEO) is the practice of structuring
content so AI systems can directly extract and cite answers.
It focuses on citations in AI responses rather than search rankings.
Unlike traditional SEO, AEO optimizes for conversational queries
and zero-click results where users get answers without visiting
your site.
指南:
- 开头直接给出 40-60 个词的答案
- 回答应自成一体(AI 无需周边上下文即可提取)
- 使用对话式、自然的语言
- 具体数据优于模糊说法
- 包含量化的主张、日期和权威引用
基于实体的优化:
"Our software helps teams collaborate better with features
for project management and communication."
"Acme PM is a project management platform for remote teams.
Founded in 2020, serves 50,000+ companies. Key features:
Kanban boards, time tracking, Slack integration. Pricing:
$12/user/month."
说明你是谁、做什么,以及 AI 为什么应该信任你。
AEO 的 Schema
在 SEO Schema 的基础上进一步扩展,以优化 AI 提取效果。
AEO 的关键 Schema 类型:
- FAQPage(AI 引用率最高)
- 模板:
references/json-ld-templates.md
- 模板:
AEO 的 FAQ 答案指南:
- 40-60 个词为理想长度(少于 30 个词会缺乏实质内容,多于 80 个词则难以提取)
- 可见的 H2/H3 标题应与 Schema 的
"name"属性完全一致 - 包含具体数字、日期和数据
- 内容应自成一体(脱离上下文也能理解)
- 使用自然的提问方式(贴近用户的实际问法)
- Author + Organization(信任信号)
- 模板:
references/json-ld-templates.md
- 模板:
**重要性:**AI 引擎会优先选择来自可识别权威来源的内容。使用 sameAs 链接消除品牌歧义。
- Product(适用于电商 AEO)
- 模板:
references/json-ld-templates.md
- 模板:
让 AI 购物模块能够显示准确的价格、库存情况和评价。
特定平台的优化
不同的 AI 引擎偏好各不相同。要最大限度地提高被引用的概率,应兼顾三者。
ChatGPT:
- 中立、百科全书式的语气
- 权威的外部引用
- 具体数据和量化的主张
- 正式的结构
Example: "According to a 2025 Gartner study, 78% of enterprises
adopted AI-powered search tools. The primary drivers were cost
reduction (cited by 62% of respondents) and improved accuracy
(58%). Source: Gartner AI Search Report 2025."
Perplexity:
- 对话式、以经验为主导的表达
- 实用示例和案例研究
- 社群见解和真实场景
- 不那么正式的语气
Example: "Most teams start with the free tier and upgrade after
2-3 months once they've proven ROI. Based on feedback from 500+
customers, common triggers for upgrading include hitting user
limits or needing advanced reporting."
Google AI Overviews:
- E-E-A-T 信号(经验、专业性、权威性、可信度)
- 包含近期日期的新鲜内容
- 适合精选摘要的格式
- 针对移动设备优化的结构
Example: "Updated February 2026: Current pricing starts at
$12/user/month (annual billing). Month-to-month adds 20%.
Education and nonprofit discounts available. No free tier
as of Q1 2026."
AEO 衡量与工具
指标:
- 引用频率(AI 提及你品牌的频次)
- 可见度评分(在各 AI 平台上的曝光情况)
- 上下文质量(正面/中性/负面情感)
- 来源归属(AI 引用的 URL)
跟踪 AI 引荐流量:
在 Google Analytics 4 中筛选流量来源:
chat.openai.com(ChatGPT)perplexity.aigemini.google.comcopilot.microsoft.com
将这些来源作为独立的获客来源进行监控。
使用你偏好的 AEO 监控工具跟踪引用频率、上下文和来源归属。
AEO 审核清单
内容审核
- 所有关键页面都在开头提供 40-60 个词的直接回答
- FAQ 部分提供完整、独立的回答
- 使用符合自然查询习惯的对话式语言
- 提供具体数据(数字、日期、来源),而非含糊的说法
- 显示作者简介和组织信息
- 使用近期日期更新内容(保持新鲜度)
Schema 审核
- 在 FAQ/指南页面添加 FAQPage schema
- 在所有文章/博客中添加 Author schema
- 全站添加 Organization schema
- 在产品页面添加 Product schema(如为电商网站)
- 添加含 datePublished/dateModified 的 Article schema
- Schema 与可见内容完全一致(不含隐藏标记)
- 使用 Google Rich Results Test 验证
技术审核
- 使用 JSON-LD 格式(AI 引擎优先采用)
- 符合 Schema.org 标准
- 不存在冲突或重复的 schema
- 页面加载速度快(AI 爬虫偏好快速网站)
- HTML 结构清晰(使用语义化标题)
- 针对移动设备优化(尤其适用于 Google AI Overviews)
实体与权威性信号
- 品牌身份清晰(你是谁、你做什么)
- 全网 NAP(名称、地址、电话)信息一致
- 添加指向 LinkedIn、Twitter 和官方资料页的
sameAs链接 - 获得权威来源的外部引用和反向链接
- 积极维护在评论平台上的存在
- 优化 Google Business Profile(本地企业)
AI 可见度监控
- 每月测试排名前 10-20 的商业查询
- 在 GA4 中跟踪 AI 引荐流量
- 监控品牌在各 AI 平台上的提及情况
- 检查引用上下文(正面/中性/负面)
- 核实 AI 关于品牌的回答是否准确
- 设置可见度变化提醒(如使用付费工具)