跳到正文
Skillpedia
网站与界面(前端)75k · #2920

link-checker

它能做什么

这项技能检查网站内部和指向其他网站的链接,找出返回错误的链接。适用于希望减少失效链接的网站所有者和建设者。

适用场景

  • ✓当你请智能体检查网站是否有失效或死链的时候。
  • ✓当你想在构建或部署流程中设置定期链接检查的时候。
  • ✓当你在改版或网址变更后检查页面,需要确认没有指向 404 错误的链接的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/link-checker/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/link-checker/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2920
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能