dead-end-pages
它能做什么
这项技能找出网站上通向别处的死路页面,并建议可以添加的相关链接。适合希望提高搜索可见性的网站所有者和营销人员。
适用场景
- ✓当你的博客文章或商品页面没有指向其他页面的链接时。
- ✓当访客读完一个页面就很快离开网站时。
- ✓当你希望搜索引擎找到更多页面时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/dead-end-pages/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能找出我网站上没有链接到任何其他内容的页面,并建议链接吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会统计每个页面主要内容中的站内链接数量,然后建议链接到两到五个相关页面,并尽可能放在正文之中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Add outgoing links to dead-end pages
Googlebot follows links to discover and re-crawl pages. A page with no outgoing internal links stops the crawler from reaching the rest of your site from that point and leaves users with nowhere logical to go, increasing bounce rate.
Quick Reference
- Every page should link to at least 2–3 contextually relevant internal pages to aid navigation and crawling
- Pages with zero outgoing links trap crawlers and users, forming dead ends in your site's link graph
- Contextual inline links (within body content) pass more value than footer or navigation links alone
Check
For each page, count the number of <a href> links pointing to other pages on the same domain (exclude navigation/header/footer if they are templated identically across all pages). Flag any page with zero or fewer than two unique internal links in the main content body (<main> or <article> element).
Fix
- Identify all pages flagged as dead ends (no or minimal outgoing internal links in body content).
- For each dead-end page, identify 2–5 topically related pages on the site.
- Add contextual inline links within the body content — not just in headers or footers.
- Example: A blog post about CSS Grid should link to related posts on Flexbox and responsive design.
- Add a "Related articles" or "See also" section at the bottom if inline links are not practical.
- Re-crawl after changes to verify the links appear in the rendered DOM.
Explain
Internal links are the edges of your site's graph. Crawlers navigate by following links; a page with no outgoing links is a node with no edges leading forward. This prevents Googlebot from discovering linked pages during a crawl initiated from that dead end, and it signals to users that there is nothing more to explore.
Code Review
Parse the <main> or <article> element of each rendered page. Count <a href> tags pointing to same-domain URLs. Flag pages with fewer than 2 such links. Exclude navigation, header, and footer elements that are shared across all pages, as these do not count as contextual internal links.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/dead-end-pages
常见问题
正文中的链接为什么更重要?
这项技能说明,正文内容中的上下文链接比只出现在页眉或页脚中的链接更有价值。
如果页面没有合适的相关页面怎么办?
这项技能建议在页面底部添加“相关文章”或“另请参阅”部分作为后备方案。
菜单中的链接算在内吗?
每个页面都相同的菜单和页脚通常不计入统计。
详情
作者的原始描述
Use when auditing a site's internal link graph for dead-end pages, suggesting related-content links to add to thin or standalone pages, or reviewing CMS templates that produce link-free content pages.
热度
- GitHub 星标
- 75k
- 排名
- #2809
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。