link-checker
它能做什么
这项技能检查网站内部和指向其他网站的链接,找出返回错误的链接。适用于希望减少失效链接的网站所有者和建设者。
适用场景
- ✓当你请智能体检查网站是否有失效或死链的时候。
- ✓当你想在构建或部署流程中设置定期链接检查的时候。
- ✓当你在改版或网址变更后检查页面,需要确认没有指向 404 错误的链接的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/link-checker/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我检查网站上的失效链接,并告诉我哪些需要修复。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会扫描渲染后页面上的内部链接、外部链接、锚点链接和 mailto 链接,报告失败或跳转到错误位置的链接,并建议修复方法。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Check for broken links
Broken links frustrate users, hurt SEO rankings (Google penalizes 404s), and damage credibility—especially for documentation and e-commerce sites.
Quick Reference
- Use lychee, linkchecker, or broken-link-checker npm packages
- Check internal, external, anchor, and mailto links
- Integrate into CI/CD for automatic detection
- Set up regular monitoring for external link rot
Check
Verify that all internal and external links are working properly and don't return 404 errors or redirect to unintended destinations.
Fix
Use automated link checking tools to identify and fix broken links, update redirected URLs, and remove or replace dead links.
Explain
Explain why broken links hurt user experience, SEO rankings, and credibility, and how to implement ongoing link monitoring.
Code Review
Review templates, server-rendered HTML, and shared components that output markup related to Check for broken links. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/html/link-checker
常见问题
这项技能也会检查指向其他网站的链接吗?
会。它涵盖内部链接、外部链接、锚点链接和 mailto 链接。
链接检查可以自动运行吗?
可以。这项技能建议把链接检查工具加入构建或持续集成流程,以便尽早发现失效链接。
运行检查需要我提供什么?
提供你的网站地址或项目文件,智能体就能测试实际的链接。
详情
作者的原始描述
Use when reviewing templates, rendered HTML, or shared components related to Check for broken links. Validate the final browser-facing markup, not just the source framework abstraction.
热度
- GitHub 星标
- 75k
- 排名
- #2920
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。