link-checker by webflow/webflow-skills
npx skills add https://github.com/webflow/webflow-skills --skill link-checker审核并修复您 Webflow 站点中损坏或不安全的链接,以改善 SEO 和用户体验。
始终使用 Webflow MCP 工具进行所有操作:
webflow_guide_tool 获取最佳实践data_sites_tool 并指定 list_sites 操作来识别可用站点data_sites_tool 并指定 get_site 操作来检索站点详情data_pages_tool 并指定 list_pages 操作来获取所有页面data_pages_tool 并指定 操作来提取静态页面中的链接广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
get_page_contentdata_pages_tool 并指定 update_static_content 操作来修复静态页面上的链接(需要 Designer)data_cms_tool 并指定 get_collection_list 操作来获取所有 CMS 集合data_cms_tool 并指定 get_collection_details 操作来获取集合架构data_cms_tool 并指定 list_collection_items 操作来获取包含链接的 CMS 项目data_cms_tool 并指定 update_collection_items 操作来修复 CMS 中的链接(草稿)data_cms_tool 并指定 publish_collection_items 操作来发布已修复的 CMS 项目context 参数(15-25 个单词,第三人称视角)data_sites_tool 并指定 list_sites 操作来识别目标站点data_pages_tool 并指定 list_pages 操作来获取所有页面data_cms_tool 并指定 get_collection_list 操作来获取所有 CMS 集合data_pages_tool 并指定 get_page_content 操作处理每个页面
* 识别所有链接元素(Link、Button、TextLink、LinkBlock)
* 捕获:pageId、nodeName、URL、链接文本data_cms_tool 并指定 list_collection_items 操作处理每个集合
* 识别链接字段和包含链接的富文本字段
* 捕获:collectionId、itemId、fieldName、URL生成修复建议:针对每个有问题的链接,建议修复方案 * 损坏的链接:移除链接或更新为正确的 URL * 不安全的链接:将 HTTP 升级为 HTTPS * 重定向:更新为最终目标 URL
显示带验证的预览:
[1] ✓ 修复不安全链接 页面:关于我们 元素:按钮"了解更多" 当前:http://example.com 建议:https://example.com ✅ HTTPS 版本已验证可用
[2] ⚠️ 修复损坏链接 页面:博客文章"入门指南" 元素:文本链接 当前:https://oldsite.com/page 建议:[移除链接或提供正确的 URL] ❌ URL 返回 404 - 需要手动审查
实施细粒度批准:询问用户要应用哪些修复 * 输入数字以跳过(例如,"2,4") * 输入"all"以继续所有自动修复 * 输入"none"以取消 * 单独标记需要手动审查的项目
pages_update_static_content
* 需要 Designer 连接
* 更新节点中的链接 URL
* 以 20 个链接为一批进行处理data_cms_tool 并指定 update_collection_items 操作
* 直接更新链接字段
* 更新富文本字段中的链接
* 以 50 个项目为一批进行处理data_cms_tool 并指定 publish_collection_items 操作用户提示:
Run a complete link check on my site and fix any issues
步骤 1:站点选择
🔍 链接检查器:站点选择
可用站点:
1. 公司网站
2. 博客站点
3. 作品集
您想审计哪个站点?(1/2/3)
步骤 2:范围确认
📋 链接检查器范围
您想检查什么?
1. 仅静态页面(更快)
2. 仅 CMS 内容
3. 静态页面和 CMS 内容都检查(全面)
建议:选项 3 进行全面审计
您的选择是?(1/2/3)
步骤 3:提取与验证
🔄 正在扫描链接...
进度:████████████████████ 100%
找到 247 个链接:
├── 静态页面:89 个链接(15 个页面)
├── CMS 内容:158 个链接(3 个集合)
│ ├── 博客文章:142 个链接
│ ├── 团队成员:12 个链接
│ └── 产品:4 个链接
正在验证链接...
进度:████████████████████ 100%(247/247 已检查)
✅ 正常:215 个链接(87%)
❌ 损坏:8 个链接(3%)
⚠️ 不安全:18 个链接(7%)
🔄 重定向:6 个链接(2%)
步骤 4:分析报告
📊 链接健康度报告:公司网站
总体健康度评分:76/100 ⚠️
## 发现的问题:
### 🔴 关键:损坏的链接(8)
├── [1] 页面:"关于我们"
│ └── 链接至:https://partner-site.com/old-page
│ 状态:404 未找到
│ 影响:高(首页)
│
├── [2] CMS:博客文章"产品发布"
│ └── 链接至:https://press-release.com/announcement
│ 状态:404 未找到
│ 影响:中等
│
├── [3-8] 还有 6 个损坏的链接...
### ⚠️ 警告:不安全的链接(18)
├── [9] 页面:"联系我们"
│ └── 链接:http://social-media.com/company
│ 修复:https://social-media.com/company
│ ✅ HTTPS 已验证可用
│
├── [10] CMS:博客文章"入门指南"
│ └── 链接:http://tutorial-site.com
│ 修复:https://tutorial-site.com
│ ✅ HTTPS 已验证可用
│
├── [11-26] 还有 16 个不安全的链接...
### 💡 建议:重定向(6)
├── [27] 页面:"服务"
│ └── 链接:https://example.com/old-url
│ 重定向至:https://example.com/new-url
│ 建议:更新为最终目标
│
├── [28-32] 还有 5 个重定向...
---
💡 建议:
1. 立即修复 8 个损坏的链接(影响 SEO)
2. 将 18 个 HTTP 链接升级为 HTTPS(安全性)
3. 将 6 个重定向更新为最终 URL(性能)
预计修复时间:约 5 分钟
步骤 5:修复预览
🔧 建议的修复(共 26 个)
### 可自动修复(24):
[1] ✓ 升级到 HTTPS
页面:联系我们
元素:按钮"关注我们"
当前:http://social-media.com/company
新:https://social-media.com/company
✅ HTTPS 已验证可用
[2] ✓ 升级到 HTTPS
CMS:博客文章 > "入门指南" > 内容字段
当前:http://tutorial-site.com
新:https://tutorial-site.com
✅ HTTPS 已验证可用
[3] ✓ 更新重定向
页面:服务
元素:文本链接"了解更多"
当前:https://example.com/old-url
新:https://example.com/new-url
✅ 最终目标已验证
[4-24] ... 还有 21 个自动修复
### 需要手动审查(2):
[25] ⚠️ 损坏的链接 - 需要更正
页面:关于我们
元素:按钮"查看合作伙伴站点"
当前:https://partner-site.com/old-page
问题:404 未找到
需要操作:提供正确的 URL 或移除链接
[26] ⚠️ 损坏的链接 - 需要更正
CMS:博客文章 > "产品发布" > 内容字段
当前:https://press-release.com/announcement
问题:404 未找到
需要操作:更新为正确的 URL 或移除
---
您想应用哪些修复?
- 输入"all"以应用所有 24 个自动修复
- 输入数字以跳过(例如,"3,5,7")
- 输入"none"以取消
步骤 6:用户批准"all"之后
✅ 正在应用修复...
进度:████████████████████ 100%
静态页面:
- 在 5 个页面上更新了 8 个链接
- ✅ 联系我们页面:修复了 3 个链接
- ✅ 服务页面:修复了 2 个链接
- ✅ 关于页面:修复了 1 个链接
- ✅ 博客页面:修复了 2 个链接
CMS 内容:
- 在 12 个项目中更新了 16 个链接
- ✅ 博客文章:修复了 14 个链接
- ✅ 团队成员:修复了 2 个链接
---
🎉 链接修复完成!
摘要:
- 扫描的链接数:247
- 修复的链接数:24 ✅
- 需要手动审查的链接数:2 ⚠️
- 失败:0 ❌
健康度评分:76 → 95(+19)✨
---
⚠️ 需要手动审查的项目:
[1] 关于我们页面 - 损坏的合作伙伴链接
当前:https://partner-site.com/old-page
操作:手动更新或移除
[2] 博客文章"产品发布" - 损坏的新闻稿链接
当前:https://press-release.com/announcement
操作:手动更新或移除
---
💡 后续步骤:
1. 修复 2 个需要手动审查的项目
2. 1 个月后重新运行链接检查器
3. 为关键外部链接设置监控
4. 考虑为任何 URL 更改设置 301 重定向
您想导出此报告吗?(是/否)
用户提示:
Check all links in my blog posts
步骤 1:集合选择
🔍 链接检查器:CMS 集合
找到 3 个集合:
1. 博客文章(47 个项目)
2. 团队成员(8 个项目)
3. 分类(6 个项目)
您请求检查博客文章。正在检查"博客文章"集合...
步骤 2:链接提取
🔄 正在从博客文章提取链接...
进度:████████████████████ 100%(47/47 个项目)
在博客文章中找到 142 个链接:
├── 链接字段:23 个链接
├── 富文本内容:119 个链接
└── 唯一 URL 总数:87(55 个出现多次)
正在验证链接...
进度:████████████████████ 100%(87/87 个唯一 URL 已检查)
结果:
✅ 正常:79 个链接(91%)
❌ 损坏:3 个链接(3%)
⚠️ 不安全:5 个链接(6%)
🔄 重定向:0 个链接
步骤 3:问题报告
📊 博客文章链接健康度:91/100 ✅
## 发现的问题:
### 🔴 损坏的链接(3):
[1] 文章:"Webflow 入门指南"
字段:内容(富文本)
链接:https://old-docs.example.com/guide
状态:404 未找到
出现在:3 篇文章中
[2] 文章:"2024 年最佳实践"
字段:外部链接(链接)
链接:https://expired-resource.com
状态:410 已失效
[3] 文章:"教程系列第 3 部分"
字段:内容(富文本)
链接:https://video-host.com/deleted-video
状态:404 未找到
### ⚠️ 不安全的链接(5):
[4] 文章:"案例研究:A 公司"
字段:内容(富文本)
链接:http://company-a-site.com
修复:https://company-a-site.com
✅ HTTPS 可用且正常
[5-8] 还有 4 个不安全的链接...
---
🔧 建议的修复:
[1] ⚠️ 移除损坏的链接(需要手动审查)
受影响的文章:3 篇(入门指南、教程 1、教程 2)
链接:https://old-docs.example.com/guide
建议:如果可用,更新为新文档 URL
[2] ⚠️ 移除损坏的链接(需要手动审查)
文章:"2024 年最佳实践"
链接:https://expired-resource.com
建议:移除或替换为替代链接
[3] ⚠️ 移除损坏的链接(需要手动审查)
文章:"教程系列第 3 部分"
链接:https://video-host.com/deleted-video
建议:更新为新视频 URL
[4] ✓ 升级到 HTTPS
文章:"案例研究:A 公司"
当前:http://company-a-site.com
新:https://company-a-site.com
✅ HTTPS 已验证可用
[5-8] ... 还有 4 个 HTTPS 升级
---
您想应用哪些修复?
- 输入"4-8"以仅应用 HTTPS 升级
- 输入"all"以应用所有自动修复
- 输入"none"以取消
用户提示:
Quick check on my static pages for broken links
响应:
🔍 快速链接检查:静态页面
正在扫描 15 个静态页面...
进度:████████████████████ 100%
在 15 个页面中找到 89 个链接
验证结果:
✅ 所有链接正常!(89/89)
健康度评分:100/100 ✨
您的静态页面没有损坏或不安全的链接。
💡 提示:运行包含 CMS 内容的完整审计以获得全面覆盖。
用户提示:
I have some broken links on my About page. Can you fix them?
响应:
🔍 正在检查"关于"页面上的链接...
在关于页面找到 12 个链接
验证结果:
✅ 正常:9 个链接
❌ 损坏:2 个链接
⚠️ 不安全:1 个链接
---
发现的问题:
[1] ❌ 损坏:合作伙伴站点链接
元素:按钮"访问合作伙伴"
链接:https://partner-old-site.com
状态:404 未找到
修复:需要手动审查
[2] ❌ 损坏:团队成员资料
元素:文本链接"认识 Sarah"
链接:/team/sarah-old-profile
状态:404 未找到
修复:更新为 /team/sarah-johnson?
[3] ⚠️ 不安全:社交媒体链接
元素:链接"关注我们"
链接:http://social.com/company
修复:https://social.com/company
✅ HTTPS 已验证
---
您想应用哪些修复?
- 输入"3"以仅修复不安全的链接
- 输入"2,3"以修复项目 2 和 3
- 输入"all"以应用所有自动修复
- 输入"none"以取消
注意:项目 [1] 需要提供正确的 URL 进行手动更正
站点选择:
sites_list 获取可用站点范围定义:
集合选择:
静态页面链接提取:
pages_get_content 获取页面节点CMS 链接提取:
collections_get 识别链接字段和富文本字段collections_items_list_items 获取所有项目链接验证:
分类规则:
✅ 正常(2xx):
- 200 OK
- 201 Created
- 204 No Content
❌ 损坏(4xx/5xx):
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 404 Not Found
- 410 Gone
- 500 Internal Server Error
- 502 Bad Gateway
- 503 Service Unavailable
⚠️ 不安全(HTTP):
- URL 以 http:// 开头
- HTTPS 等效版本存在且返回 2xx
- 标记为"升级到 HTTPS"
🔄 重定向(3xx):
- 301 Moved Permanently
- 302 Found
- 307 Temporary Redirect
- 308 Permanent Redirect
⚪ 手动审查:
- 超时错误
- DNS 解析失败
- 连接被拒绝
- SSL 证书错误
健康度评分计算:
公式:
1. 基础分数 = 100
2. 正常链接:无变化
3. 损坏的链接:每个 -5 分
4. 不安全的链接:每个 -2 分
5. 重定向链接:每个 -1 分
6. 最低分数:0
7. 最高分数:100
示例:
- 链接总数:200
- 正常:180(无惩罚)
- 损坏:5(−25 分)
- 不安全:10(−20 分)
- 重定向:5(−5 分)
- 评分:100 − 25 − 20 − 5 = 50/100
问题优先级排序:
🔴 关键(立即修复):
- 首页上的损坏链接
- 高流量页面上的损坏链接
- 导航中的损坏链接
- 重要外部引用上的 404 错误
⚠️ 警告(尽快修复):
- 不安全的 HTTP 链接(安全风险)
- 博客文章上的损坏链接
- 页脚中的损坏链接
- 410 已失效错误
💡 建议(优化):
- 301 重定向(更新为最终目标)
- 302 重定向(可能更改,需监控)
- 响应时间慢的外部链接
要报告的统计数据:
基本数据:
- 扫描的链接总数
- 正常链接数量及百分比
- 损坏链接数量及百分比
- 不安全链接数量及百分比
- 重定向链接数量及百分比
详细数据:
- 按位置分类的链接(静态 vs CMS)
- 按类型分类的链接(内部 vs 外部)
- 最常见的问题
- 问题最多的页面/项目
- 损坏链接最多的外部域名
自动修复标准:
可以自动修复:
✅ HTTP → HTTPS(如果 HTTPS 已验证可用)
✅ 重定向 → 最终目标(如果最终 URL 已验证)
✅ 相对 URL → 绝对 URL(针对外部站点)
需要手动审查:
⚠️ 损坏的链接(404、410、5xx)- 需要正确的 URL
⚠️ HTTP 链接没有 HTTPS 等效版本
⚠️ 超时或连接错误
⚠️ SSL 证书错误
⚠️ 需要身份验证(401、403)
预览格式:
[X] ✓ 可自动修复
位置:[页面名称或 CMS 项目]
元素:[元素类型 + 文本]
当前:[当前 URL]
新:[建议的 URL]
✅ 验证:[状态]
[Y] ⚠️ 需要手动审查
位置:[页面名称或 CMS 项目]
元素:[元素类型 + 文本]
当前:[当前 URL]
问题:[错误描述]
建议:[要执行的操作]
细粒度批准:
静态页面更新:
要求:
- 需要 Designer 连接
- 使用 pages_update_static_content
- 使用新 URL 更新节点数组
- 每个页面以 20 个链接为一批进行处理
- 每批处理后验证更新
错误处理:
- 如果 Designer 未连接:报告并跳过静态页面
- 如果更新失败:标记链接并继续处理其他链接
- 单独报告部分成功的情况
CMS 更新:
对于链接字段:
- 直接更新:fieldData[fieldName] = "new-url"
- 使用 collections_items_update_items
- 选项:更新实时版本或草稿
对于富文本字段:
- 解析 HTML 内容
- 查找并替换 <a> 标签
- 保留其他 HTML 格式
- 使用新 HTML 更新 fieldData[fieldName]
批处理:
- 每批处理 50 个项目
- 为大型集合显示进度
- 优雅地处理 API 速率限制
发布:
询问用户:
"您想立即发布更改吗?"
- 是:使用 collections_items_publish_items
- 否:保留为草稿
对于静态页面:
- 更改是立即生效的(Designer 更新实时版本)
- 警告用户静态页面更改是实时的
重新验证:
失败报告:
如果任何修复失败:
❌ 失败的修复(X):
[1] 更新失败
位置:联系我们页面
原因:Designer 连接丢失
操作:重新连接 Designer 并重试
[2] URL 仍然损坏
位置:博客文章"指南"
原因:HTTPS 版本返回 404
操作:需要手动更正
成功报告:
✅ 摘要:
之前:
- 健康度评分:76/100
- 损坏的链接:8
- 不安全的链接:18
- 重定向:6
之后:
- 健康度评分:95/100(+19)
- 损坏的链接:2(6 个已修复,2 个需要手动审查)
- 不安全的链接:0(18 个已修复)
- 重定向:0(6 个已修复)
更改:
- 静态页面:在 5 个页面上更新了 8 个链接
- CMS 内容:在 12 个项目中更新了 16 个链接
- 总修复数:24 ✅
- 手动审查:2 ⚠️
建议:
始终提供:
1. 下次检查的时间安排(每月/每季度)
2. 针对关键链接的监控建议
3. 避免损坏链接的最佳实践
4. 适用的 URL 重定向策略
示例:
💡 建议:
1. **安排定期检查**
- 活跃站点每月运行链接检查器
- 静态站点每季度运行
- 设置日历提醒
2. **监控关键外部链接**
- 关键合作伙伴:company-a.com、partner-site.com
- 文档:docs.example.com
- 社交媒体资料
3. **设置 URL 重定向**
- 如果更改 URL,创建 301 重定向
- 上线前测试重定向
- 保持重定向映射更新
4. **最佳实践**
- 添加前测试外部链接
- 内部链接使用相对 URL
- 避免深度链接到外部页面
- 重大重新设计后验证链接
报告格式:
提供导出结果的功能:
1. **Markdown** - 人类可读的报告
- 包含所有统计数据
- 列出所有发现的问题
- 显示应用的修复
- 添加建议
- 适合文档记录
2. **CSV** - 电子表格格式
- 列:位置、元素、URL、状态、问题、应用的修复
- 易于筛选和分析
- 适合与团队共享
3. **JSON** - 机器可读的数据
- 完整的原始数据
- 适用于集成
- 用于历史跟踪的存档
导出示例(Markdown):
# 链接审计报告:公司网站
日期:2026 年 1 月 10 日
## 摘要
- 扫描的链接总数:247
- 健康度评分:95/100
- 修复的链接数:24
- 需要手动审查的链接数:2
## 发现的问题
### 损坏的链接(8)
1. 关于我们 > 按钮"访问合作伙伴"
- URL:https://partner-old-site.com
- 状态:404 未找到
- 修复:需要手动审查
...
## 建议
1. 安排每月链接检查
2. 监控关键外部链接
3. 为 URL 更改设置 301 重定向
批处理:
对于大型站点:
- 以 10 个页面为一批进行处理
- 以 50 个项目为一批进行处理
- 显示进度:"正在处理第 1 批,共 5 批..."
- 超时保护:每批 30 秒后跳过
缓存验证结果:
- 按唯一 URL 缓存验证结果
- 如果同一 URL 出现 10 次,只验证一次
- 报告:"正在检查 87 个唯一 URL(共 247 个总链接)"
- 显著减少验证时间
并行 vs 顺序:
并行(更快):
- 链接验证(同时测试多个 URL)
- 页面内容提取(获取多个页面)
顺序(必需):
- 链接更新(一次一个以避免冲突)
- 发布(一次一批)
常见错误:
1. Designer 未连接:
❌ 错误:无法更新静态页面
原因:Designer MCP 应用未连接
解决方案:
1. 打开 Webflow Designer
2. 打开目标站点
3. 连接 Designer MCP 应用
4. 重试静态页面修复
注意:CMS 修复可以在没有 Designer 的情况下进行
2. 速率限制:
⚠️ 警告:达到速率限制
暂停 60 秒...
进度将自动恢复。
当前:50/200 个链接已验证
3. 超时错误:
⚠️ 链接验证超时
链接:https://very-slow-site.com
超时:超过 10 秒
标记为需要手动审查。
继续处理剩余链接...
4. SSL 证书错误:
⚠️ SSL 证书错误
链接:https://expired-cert-site.com
问题:证书已过期
无法验证 HTTPS。标记为需要手动审查。
情况 1:未发现问题
🎉 优秀!未发现问题
所有 247 个链接都正常工作!
健康度评分:100/100 ✨
您的站点:
✅ 没有损坏的链接
✅ 没有不安全的 HTTP 链接
✅ 没有不必要的重定向
💡 建议:
每月运行此检查以保持链接健康度。
情况 2:所有链接都损坏
❌ 关键:多个损坏的链接
在所有页面找到 89 个损坏的链接。
这表明可能存在全站性问题:
- 域名迁移未配置?
- 外部服务中断?
- 相对 URL 路径问题?
🔍 建议操作:
1. 检查外部服务是否宕机
2. 验证域名和 SSL 配置
3. 手动测试几个链接
4. 如果需要,联系 Webflow 支持
我是否仍应继续处理单个链接修复?(是/否)
情况 3:混合 HTTP/HTTPS 站点
⚠️ 混合内容警告
您的站点使用 HTTPS,但有 18 个 HTTP 链接。
Audit and fix broken or insecure links across your Webflow site to improve SEO and user experience.
ALWAYS use Webflow MCP tools for all operations:
webflow_guide_tool to get best practices before startingdata_sites_tool with action list_sites to identify available sitesdata_sites_tool with action get_site to retrieve site detailsdata_pages_tool with action list_pages to get all pagesdata_pages_tool with action get_page_content to extract links from static pagesdata_pages_tool with action update_static_content to fix links on static pages (requires Designer)data_cms_tool with action get_collection_list to get all CMS collectionsdata_cms_tool with action get_collection_details to get collection schemasdata_cms_tool with action list_collection_items to get CMS items with linksdata_cms_tool with action update_collection_items to fix links in CMS (draft)data_cms_tool with action publish_collection_items to publish fixed CMS itemscontext parameter (15-25 words, third-person perspective)data_sites_tool with action list_sites to identify target sitedata_pages_tool with action list_pages to get all pagesdata_cms_tool with action get_collection_list to get all CMS collectionsdata_pages_tool with action get_page_content for each page
data_cms_tool with action list_collection_items for each collection
Generate fix suggestions : For each problematic link, suggest fix * Broken links: Remove link or update to correct URL * Insecure links: Upgrade HTTP to HTTPS * Redirects: Update to final destination URL
Show preview with validation :
[1] ✓ Fix insecure link Page: About Us Element: Button "Learn More" Current: http://example.com Suggested: https://example.com ✅ HTTPS version verified working
[2] ⚠️ Fix broken link Page: Blog Post "Getting Started" Element: Text link Current: https://oldsite.com/page Suggested: [REMOVE LINK or provide correct URL] ❌ URL returns 404 - manual review needed
Implement granular approval : Ask user which fixes to apply * Type numbers to skip (e.g., "2,4") * Type "all" to proceed with all automatic fixes * Type "none" to cancel * Flag manual review items separately
pages_update_static_content
* Requires Designer connection
* Update link URLs in nodes
* Process in batches of 20 linksdata_cms_tool with action update_collection_items
* Update Link fields directly
* Update links in Rich Text fields
* Process in batches of 50 itemsdata_cms_tool with action publish_collection_itemsUser prompt:
Run a complete link check on my site and fix any issues
Step 1: Site Selection
🔍 Link Checker: Site Selection
Available sites:
1. Company Website
2. Blog Site
3. Portfolio
Which site would you like to audit? (1/2/3)
Step 2: Scope Confirmation
📋 Link Checker Scope
What would you like to check?
1. Static pages only (faster)
2. CMS content only
3. Both static pages and CMS content (comprehensive)
Recommendation: Option 3 for complete audit
Your choice? (1/2/3)
Step 3: Extraction & Validation
🔄 Scanning Links...
Progress: ████████████████████ 100%
Found 247 links:
├── Static pages: 89 links (15 pages)
├── CMS content: 158 links (3 collections)
│ ├── Blog Posts: 142 links
│ ├── Team Members: 12 links
│ └── Products: 4 links
Validating links...
Progress: ████████████████████ 100% (247/247 checked)
✅ Working: 215 links (87%)
❌ Broken: 8 links (3%)
⚠️ Insecure: 18 links (7%)
🔄 Redirects: 6 links (2%)
Step 4: Analysis Report
📊 Link Health Report: Company Website
Overall Health Score: 76/100 ⚠️
## Issues Found:
### 🔴 Critical: Broken Links (8)
├── [1] Page: "About Us"
│ └── Link to: https://partner-site.com/old-page
│ Status: 404 Not Found
│ Impact: High (homepage)
│
├── [2] CMS: Blog Post "Product Launch"
│ └── Link to: https://press-release.com/announcement
│ Status: 404 Not Found
│ Impact: Medium
│
├── [3-8] 6 more broken links...
### ⚠️ Warning: Insecure Links (18)
├── [9] Page: "Contact"
│ └── Link: http://social-media.com/company
│ Fix: https://social-media.com/company
│ ✅ HTTPS verified working
│
├── [10] CMS: Blog Post "Getting Started"
│ └── Link: http://tutorial-site.com
│ Fix: https://tutorial-site.com
│ ✅ HTTPS verified working
│
├── [11-26] 16 more insecure links...
### 💡 Suggestion: Redirects (6)
├── [27] Page: "Services"
│ └── Link: https://example.com/old-url
│ Redirects to: https://example.com/new-url
│ Suggestion: Update to final destination
│
├── [28-32] 5 more redirects...
---
💡 Recommendations:
1. Fix 8 broken links immediately (SEO impact)
2. Upgrade 18 HTTP links to HTTPS (security)
3. Update 6 redirects to final URLs (performance)
Estimated time to fix: ~5 minutes
Step 5: Fix Preview
🔧 Proposed Fixes (26 total)
### Automatic Fixes Available (24):
[1] ✓ Upgrade to HTTPS
Page: Contact
Element: Button "Follow Us"
Current: http://social-media.com/company
New: https://social-media.com/company
✅ HTTPS verified working
[2] ✓ Upgrade to HTTPS
CMS: Blog Posts > "Getting Started" > content field
Current: http://tutorial-site.com
New: https://tutorial-site.com
✅ HTTPS verified working
[3] ✓ Update redirect
Page: Services
Element: Text link "Learn more"
Current: https://example.com/old-url
New: https://example.com/new-url
✅ Final destination verified
[4-24] ... 21 more automatic fixes
### Manual Review Required (2):
[25] ⚠️ Broken link - needs correction
Page: About Us
Element: Button "View Partner Site"
Current: https://partner-site.com/old-page
Issue: 404 Not Found
Action needed: Provide correct URL or remove link
[26] ⚠️ Broken link - needs correction
CMS: Blog Posts > "Product Launch" > content field
Current: https://press-release.com/announcement
Issue: 404 Not Found
Action needed: Update with correct URL or remove
---
Which fixes would you like to apply?
- Type "all" to apply all 24 automatic fixes
- Type numbers to skip (e.g., "3,5,7")
- Type "none" to cancel
Step 6: After User Approves "all"
✅ Applying Fixes...
Progress: ████████████████████ 100%
Static Pages:
- Updated 8 links on 5 pages
- ✅ Contact page: 3 links fixed
- ✅ Services page: 2 links fixed
- ✅ About page: 1 link fixed
- ✅ Blog page: 2 links fixed
CMS Content:
- Updated 16 links in 12 items
- ✅ Blog Posts: 14 links fixed
- ✅ Team Members: 2 links fixed
---
🎉 Link Fixes Complete!
Summary:
- Links scanned: 247
- Links fixed: 24 ✅
- Manual review needed: 2 ⚠️
- Failed: 0 ❌
Health Score: 76 → 95 (+19) ✨
---
⚠️ Manual Review Items:
[1] About Us page - broken partner link
Current: https://partner-site.com/old-page
Action: Update or remove manually
[2] Blog post "Product Launch" - broken press release
Current: https://press-release.com/announcement
Action: Update or remove manually
---
💡 Next Steps:
1. Fix the 2 manual review items
2. Re-run link checker in 1 month
3. Set up monitoring for critical external links
4. Consider 301 redirects for any URL changes
Would you like to export this report? (yes/no)
User prompt:
Check all links in my blog posts
Step 1: Collection Selection
🔍 Link Checker: CMS Collections
Found 3 collections:
1. Blog Posts (47 items)
2. Team Members (8 items)
3. Categories (6 items)
You requested blog posts. Checking "Blog Posts" collection...
Step 2: Link Extraction
🔄 Extracting Links from Blog Posts...
Progress: ████████████████████ 100% (47/47 items)
Found 142 links in Blog Posts:
├── Link fields: 23 links
├── Rich Text content: 119 links
└── Total unique URLs: 87 (55 appear multiple times)
Validating links...
Progress: ████████████████████ 100% (87/87 unique URLs checked)
Results:
✅ Working: 79 links (91%)
❌ Broken: 3 links (3%)
⚠️ Insecure: 5 links (6%)
🔄 Redirects: 0 links
Step 3: Issue Report
📊 Blog Posts Link Health: 91/100 ✅
## Issues Found:
### 🔴 Broken Links (3):
[1] Post: "Getting Started with Webflow"
Field: content (Rich Text)
Link: https://old-docs.example.com/guide
Status: 404 Not Found
Appears in: 3 posts
[2] Post: "Best Practices 2024"
Field: external-link (Link)
Link: https://expired-resource.com
Status: 410 Gone
[3] Post: "Tutorial Series Part 3"
Field: content (Rich Text)
Link: https://video-host.com/deleted-video
Status: 404 Not Found
### ⚠️ Insecure Links (5):
[4] Post: "Case Study: Company A"
Field: content (Rich Text)
Link: http://company-a-site.com
Fix: https://company-a-site.com
✅ HTTPS available and working
[5-8] 4 more insecure links...
---
🔧 Proposed Fixes:
[1] ⚠️ Remove broken link (manual review)
Posts affected: 3 (Getting Started, Tutorial 1, Tutorial 2)
Link: https://old-docs.example.com/guide
Suggestion: Update to new docs URL if available
[2] ⚠️ Remove broken link (manual review)
Post: "Best Practices 2024"
Link: https://expired-resource.com
Suggestion: Remove or replace with alternative
[3] ⚠️ Remove broken link (manual review)
Post: "Tutorial Series Part 3"
Link: https://video-host.com/deleted-video
Suggestion: Update with new video URL
[4] ✓ Upgrade to HTTPS
Post: "Case Study: Company A"
Current: http://company-a-site.com
New: https://company-a-site.com
✅ HTTPS verified working
[5-8] ... 4 more HTTPS upgrades
---
Which fixes would you like to apply?
- Type "4-8" to apply only HTTPS upgrades
- Type "all" for all automatic fixes
- Type "none" to cancel
User prompt:
Quick check on my static pages for broken links
Response:
🔍 Quick Link Check: Static Pages
Scanning 15 static pages...
Progress: ████████████████████ 100%
Found 89 links across 15 pages
Validation Results:
✅ All links working! (89/89)
Health Score: 100/100 ✨
Your static pages have no broken or insecure links.
💡 Tip: Run a full audit including CMS content for comprehensive coverage.
User prompt:
I have some broken links on my About page. Can you fix them?
Response:
🔍 Checking Links on "About" Page...
Found 12 links on About page
Validation Results:
✅ Working: 9 links
❌ Broken: 2 links
⚠️ Insecure: 1 link
---
Issues Found:
[1] ❌ Broken: Partner site link
Element: Button "Visit Partner"
Link: https://partner-old-site.com
Status: 404 Not Found
Fix: Manual review needed
[2] ❌ Broken: Team member profile
Element: Text link "Meet Sarah"
Link: /team/sarah-old-profile
Status: 404 Not Found
Fix: Update to /team/sarah-johnson?
[3] ⚠️ Insecure: Social media link
Element: Link "Follow us"
Link: http://social.com/company
Fix: https://social.com/company
✅ HTTPS verified
---
Which fixes would you like to apply?
- Type "3" to only fix the insecure link
- Type "2,3" to fix items 2 and 3
- Type "all" for automatic fixes
- Type "none" to cancel
Note: Item [1] requires manual correction with correct URL
Site Selection:
sites_list to get available sitesScope Definition:
Collection Selection:
Static Page Link Extraction:
pages_get_content to get page nodesCMS Link Extraction:
collections_get to identify Link and Rich Text fieldscollections_items_list_items to get all itemsLink Validation:
Categorization Rules:
✅ Working (2xx):
- 200 OK
- 201 Created
- 204 No Content
❌ Broken (4xx/5xx):
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 404 Not Found
- 410 Gone
- 500 Internal Server Error
- 502 Bad Gateway
- 503 Service Unavailable
⚠️ Insecure (HTTP):
- URL starts with http://
- HTTPS equivalent exists and returns 2xx
- Mark as "upgrade to HTTPS"
🔄 Redirects (3xx):
- 301 Moved Permanently
- 302 Found
- 307 Temporary Redirect
- 308 Permanent Redirect
⚪ Manual Review:
- Timeout errors
- DNS resolution failures
- Connection refused
- SSL certificate errors
Health Score Calculation:
Formula:
1. Base score = 100
2. Working links: No change
3. Broken links: -5 points each
4. Insecure links: -2 points each
5. Redirects: -1 point each
6. Minimum score: 0
7. Maximum score: 100
Example:
- Total links: 200
- Working: 180 (no penalty)
- Broken: 5 (−25 points)
- Insecure: 10 (−20 points)
- Redirects: 5 (−5 points)
- Score: 100 − 25 − 20 − 5 = 50/100
Issue Prioritization:
🔴 Critical (fix immediately):
- Broken links on homepage
- Broken links on high-traffic pages
- Broken links in navigation
- 404 errors on important external references
⚠️ Warning (fix soon):
- Insecure HTTP links (security risk)
- Broken links on blog posts
- Broken links in footer
- 410 Gone errors
💡 Suggestion (optimize):
- 301 redirects (update to final destination)
- 302 redirects (may change, monitor)
- External links with slow response times
Statistics to Report:
Essential:
- Total links scanned
- Working links count & percentage
- Broken links count & percentage
- Insecure links count & percentage
- Redirect links count & percentage
Detailed:
- Links by location (static vs CMS)
- Links by type (internal vs external)
- Most common issues
- Pages/items with most issues
- External domains with most broken links
Automatic Fix Criteria:
Can auto-fix:
✅ HTTP → HTTPS (if HTTPS verified working)
✅ Redirects → Final destination (if final URL verified)
✅ Relative URLs → Absolute URLs (for external sites)
Needs manual review:
⚠️ Broken links (404, 410, 5xx) - requires correct URL
⚠️ HTTP with no HTTPS equivalent
⚠️ Timeouts or connection errors
⚠️ SSL certificate errors
⚠️ Authentication required (401, 403)
Preview Format:
[X] ✓ Auto-fix available
Location: [Page name or CMS item]
Element: [Element type + text]
Current: [Current URL]
New: [Proposed URL]
✅ Verification: [Status]
[Y] ⚠️ Manual review needed
Location: [Page name or CMS item]
Element: [Element type + text]
Current: [Current URL]
Issue: [Error description]
Suggestion: [What to do]
Granular Approval:
Static Page Updates:
Requirements:
- Designer connection required
- Use pages_update_static_content
- Update nodes array with new URLs
- Process in batches of 20 links per page
- Verify updates after each batch
Error Handling:
- If Designer not connected: Report and skip static pages
- If update fails: Mark link and continue with others
- Report partial successes separately
CMS Updates:
For Link Fields:
- Direct update: fieldData[fieldName] = "new-url"
- Use collections_items_update_items
- Option: update live or draft
For Rich Text Fields:
- Parse HTML content
- Find and replace <a> tags
- Preserve other HTML formatting
- Update fieldData[fieldName] with new HTML
Batch Processing:
- Process 50 items per batch
- Show progress for large collections
- Handle API rate limits gracefully
Publishing:
Ask user:
"Would you like to publish the changes immediately?"
- Yes: Use collections_items_publish_items
- No: Leave as drafts
For static pages:
- Changes are immediate (Designer updates live)
- Warn user that static page changes are live
Re-validation:
Failure Reporting:
If any fixes failed:
❌ Fixes that failed (X):
[1] Failed to update
Location: Contact page
Reason: Designer connection lost
Action: Reconnect Designer and retry
[2] URL still broken
Location: Blog post "Guide"
Reason: HTTPS version returned 404
Action: Manual correction needed
Success Reporting:
✅ Summary:
Before:
- Health Score: 76/100
- Broken links: 8
- Insecure links: 18
- Redirects: 6
After:
- Health Score: 95/100 (+19)
- Broken links: 2 (6 fixed, 2 need manual review)
- Insecure links: 0 (18 fixed)
- Redirects: 0 (6 fixed)
Changes:
- Static pages: 8 links updated on 5 pages
- CMS content: 16 links updated in 12 items
- Total fixes: 24 ✅
- Manual review: 2 ⚠️
Recommendations:
Always provide:
1. Schedule for next check (monthly/quarterly)
2. Monitoring suggestions for critical links
3. Best practices for avoiding broken links
4. URL redirect strategies if applicable
Example:
💡 Recommendations:
1. **Schedule regular checks**
- Run link checker monthly for active sites
- Run quarterly for static sites
- Set calendar reminder
2. **Monitor critical external links**
- Key partners: company-a.com, partner-site.com
- Documentation: docs.example.com
- Social media profiles
3. **Set up URL redirects**
- If changing URLs, create 301 redirects
- Test redirects before going live
- Keep redirect map updated
4. **Best practices**
- Test external links before adding
- Use relative URLs for internal links
- Avoid deep linking to external pages
- Verify links after major redesigns
Report Formats:
Offer to export findings:
1. **Markdown** - Human-readable report
- Include all statistics
- List all issues found
- Show fixes applied
- Add recommendations
- Great for documentation
2. **CSV** - Spreadsheet format
- Columns: Location, Element, URL, Status, Issue, Fix Applied
- Easy to filter and analyze
- Good for sharing with team
3. **JSON** - Machine-readable data
- Complete raw data
- Useful for integrations
- Archive for historical tracking
Export Example (Markdown):
# Link Audit Report: Company Website
Date: January 10, 2026
## Summary
- Total links scanned: 247
- Health score: 95/100
- Links fixed: 24
- Manual review needed: 2
## Issues Found
### Broken Links (8)
1. About Us > Button "Visit Partner"
- URL: https://partner-old-site.com
- Status: 404 Not Found
- Fix: Manual review needed
...
## Recommendations
1. Schedule monthly link checks
2. Monitor key external links
3. Set up 301 redirects for URL changes
Batch Processing:
For large sites:
- Process pages in batches of 10
- Process CMS items in batches of 50
- Show progress: "Processing batch 1 of 5..."
- Timeout protection: Skip after 30s per batch
Caching Validation Results:
- Cache validation results by unique URL
- If same URL appears 10 times, validate once
- Report: "Checking 87 unique URLs (out of 247 total links)"
- Reduces validation time significantly
Parallel vs Sequential:
Parallel (faster):
- Link validation (test multiple URLs simultaneously)
- Page content extraction (fetch multiple pages)
Sequential (required):
- Link updates (one at a time to avoid conflicts)
- Publishing (one batch at a time)
Common Errors:
1. Designer Not Connected:
❌ Error: Cannot update static pages
Reason: Designer MCP app not connected
Solution:
1. Open Webflow Designer
2. Open the target site
3. Connect Designer MCP app
4. Retry static page fixes
Note: CMS fixes can proceed without Designer
2. Rate Limits:
⚠️ Warning: Rate limit reached
Pausing for 60 seconds...
Progress will resume automatically.
Current: 50/200 links validated
3. Timeout Errors:
⚠️ Link validation timeout
Link: https://very-slow-site.com
Timeout: 10 seconds exceeded
Marked for manual review.
Continuing with remaining links...
4. SSL Certificate Errors:
⚠️ SSL Certificate Error
Link: https://expired-cert-site.com
Issue: Certificate expired
Cannot verify HTTPS. Marked for manual review.
Case 1: No Issues Found
🎉 Excellent! No Issues Found
All 247 links are working correctly!
Health Score: 100/100 ✨
Your site has:
✅ No broken links
✅ No insecure HTTP links
✅ No unnecessary redirects
💡 Recommendation:
Run this check monthly to maintain link health.
Case 2: All Links Broken
❌ Critical: Multiple Broken Links
Found 89 broken links across all pages.
This suggests a possible site-wide issue:
- Domain migration not configured?
- External service outage?
- Relative URL path issues?
🔍 Recommended Action:
1. Check if external services are down
2. Verify domain and SSL configuration
3. Test a few links manually
4. Contact Webflow support if needed
Shall I still proceed with individual link fixes? (yes/no)
Case 3: Mixed HTTP/HTTPS Site
⚠️ Mixed Content Warning
Your site uses HTTPS but has 18 HTTP links.
This creates:
- Security warnings in browsers
- SEO penalties
- Trust issues for visitors
🔧 Recommendation:
Upgrade all HTTP links to HTTPS (all 18 can be auto-fixed)
Proceed with upgrade? (yes/no)
Case 4: Redirect Chains
⚠️ Redirect Chain Detected
Link: https://example.com/old
→ 301 to: https://example.com/temp
→ 301 to: https://example.com/final
Recommendation: Update directly to final URL
- Improves page load speed
- Reduces redirect overhead
- Better for SEO
Fix: Update to https://example.com/final
Apply fix? (yes/no)
Before considering link checker implementation complete:
Weekly Installs
145
Repository
GitHub Stars
35
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cursor129
opencode126
codex124
gemini-cli123
github-copilot113
cline108
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
46,900 周安装