broken-external-links
它能做什么
这项技能检查网站链接到其他网站的情况,并报告已经失效的链接。适合希望页面保持可信、并得到良好维护的网站所有者。
适用场景
- ✓当文章或资源列表中有大量外部链接时。
- ✓当访客反映链接通向错误页面时。
- ✓当你维护的旧内容中链接了其他网站时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/broken-external-links/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请扫描我的资源页面,找出返回错误的外部链接,并建议可用的替代链接。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查每个外部链接的错误代码,然后将其更新为正确的地址;如果资源已不存在,则将其删除。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Fix or remove broken external links
Broken links provide a poor user experience and can signal to search engines that your content is outdated or poorly maintained.
Quick Reference
- Regularly scan for external links returning 4xx or 5xx error codes
- Update broken links to the new correct URL or remove them entirely
- Avoid linking to expired domains that may have been repurposed
Check
Scan the page for any external links that lead to 404 pages or other error states.
Fix
Update the broken external link to a working URL or remove the link if the resource no longer exists.
Explain
Explain the impact of 'link rot' on a website's perceived quality and user trust.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Fix or remove broken external links. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/broken-external-links
常见问题
失效的外部链接为什么对搜索重要?
这项技能说明,它们可能表明内容已经过时或维护不善。
什么是链接腐烂?
这项技能用这个术语指代随着其他网站变化或关闭而逐渐失效的链接。
应该保留指向已过期域名的链接吗?
不应该。这项技能提醒不要链接到可能已被挪作他用的过期域名。
详情
作者的原始描述
Use when auditing metadata, crawlability, structured data, or indexability related to Fix or remove broken external links. Verify the rendered HTML and HTTP response rather than relying only on source files.
热度
- GitHub 星标
- 75k
- 排名
- #2758
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。