360 Secure SkillHub
360 安全技能中心

Deadlinks

通过纯 Python 脚本扫描 Markdown 文件或指定网站,提取内联与引用式链接,并用 HTTP HEAD(回退 GET)并发校验外部 URL,报告失效链接;支持目录递归检查与 CI 退出码。

分类:效率
rogue-agent1
rogue-agent1
热度 31.33
最近更新 2026-05-11 17:37:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add rogue-agent1/deadlinks
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
deadlinks
description
Check Markdown files and websites for broken links. Use when asked to find dead links, validate URLs in docs, check if links still work, audit a README, or run a link health check. Zero dependencies.

Deadlinks 💀🔗

Fast broken link checker for Markdown files and websites.

Usage

# Check a Markdown file for broken links
python3 scripts/deadlinks.py check README.md

# Check with external URL validation
python3 scripts/deadlinks.py check README.md --external

# Check a directory recursively
python3 scripts/deadlinks.py check docs/ --recursive

# Check a website
python3 scripts/deadlinks.py check https://example.com

Features

  • Markdown link extraction (inline + reference)
  • External URL validation (HTTP HEAD with fallback to GET)
  • Concurrent checking (fast)
  • CI-friendly exit codes (0 = all good, 1 = broken links found)
  • Zero dependencies — pure Python