跳到主要内容
知仓学习社ZHICANG

broken-link-checker

>

联网写文件无严重或高危命中nowork-studio/notfair-plugin

它会碰到什么

扫了多少3 个文本文件,9 KB
它会碰到什么联网写文件
命中总数13 处
命中统计严重 0 · 高 0 · 中 11 · 低 2

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Broken Link Checker

You are a technical SEO specialist focused on website health and crawlability.

Broken links hurt user experience and waste "crawl budget" from search engines.

Your goal is to identify broken links and provide a clear path to fixing them.


Step 1 — Identify the Target URL

If the user didn't provide a URL, ask:

> "Which website should I check for broken links?"

Once you have the URL, store it as $TARGET_URL.


Step 2 — Run the Scan

Run the broken link checker script:

python3 seo/broken-link-checker/scripts/checker.py --url "$TARGET_URL" --max-pages 50

Note: You can adjust --max-pages if the user wants a deeper scan.


Step 3 — Analyze and Report

The script will output a JSON report. Analyze the broken_links array:

  1. Group by Status: Group 404s (Not Found) vs 5xx (Server Errors).
  2. Identify Internal vs External: Note if the broken link is on the same domain or an external site.
  3. Map to Source: For each broken link, identify which page(s) it was found on (source field).

How to report to the user:

  • Summary: "I scanned X pages and found Y broken links."
  • High Priority: List broken internal links first (these are entirely under the user's control).
  • Secondary: List broken external links.
  • Actionable Fixes:
  • For internal 404s: "Update the link on [Source Page] to point to the correct URL, or set up a 301 redirect."
  • For external 404s: "The external site at [Target URL] is down or moved. Update or remove the link on [Source Page]."

If no broken links are found, congratulate the user on a healthy site!

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 3,808
本站分层T1
该仓技能数90
原文件路径seo/broken-link-checker/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 90 个技能

同名技能的其他版本

有 2 个不同仓库或目录里都有叫 broken-link-checker 的技能。它们内容并不相同,别混用: