broken-links
它能做什么
这项技能检查网站指向自身页面的链接,找出通向缺失页面或服务器错误的链接。适合希望让访客和爬虫始终停留在可用页面上的网站所有者。
适用场景
- ✓当你在网站上移动或删除页面时。
- ✓当搜索引擎报告大量未找到错误时。
- ✓当你想审查内部导航是否存在死路时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/broken-links/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请扫描我的网站,找出通向 404 页面的内部链接,并建议正确的替代链接。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查内部链接是否返回 404 或 5xx 错误,然后把每个链接更新为正确的地址;如果页面已不存在,则将其删除。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Resolve internal broken links
Internal broken links frustrate users and waste crawl budget by sending search engine bots to non-existent pages, potentially harming your site's SEO.
Quick Reference
- Identify and fix all internal links that return 404 (Not Found) or 5xx (Server Error) codes
- Ensure all navigation elements and inline links point to live, valid URLs
- Regularly audit your site after moving or deleting content to prevent dead links
Check
Scan the website for any internal links that lead to 404 pages or server errors.
Fix
Update the broken link to the correct URL or remove it if the destination page no longer exists.
Explain
Explain the concept of 'crawl budget' and how broken links can negatively affect a site's indexing efficiency.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Resolve internal broken 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-links
常见问题
失效的内部链接为什么对搜索重要?
这项技能说明,它们会把搜索引擎爬虫引向不存在的页面,浪费抓取预算。
什么是抓取预算?
这项技能把它描述为搜索引擎对一个网站所投入的关注度,而失效链接会消耗这部分关注度。
什么时候应该重新检查链接?
这项技能建议在移动或删除内容之后进行审查。
详情
作者的原始描述
Use when auditing metadata, crawlability, structured data, or indexability related to Resolve internal broken links. Verify the rendered HTML and HTTP response rather than relying only on source files.
热度
- GitHub 星标
- 75k
- 排名
- #2761
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。