跳到正文
Skillpedia
SEO75k · #2761

broken-links

它能做什么

这项技能检查网站指向自身页面的链接,找出通向缺失页面或服务器错误的链接。适合希望让访客和爬虫始终停留在可用页面上的网站所有者。

适用场景

  • ✓当你在网站上移动或删除页面时。
  • ✓当搜索引擎报告大量未找到错误时。
  • ✓当你想审查内部导航是否存在死路时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

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

repo: thedaviddias/Front-End-Checklist

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能