360 Secure SkillHub
360 安全技能中心

Axiom Markdown Link Auditor

基于 Python 标准库的 Markdown 文档链接审计工具,可扫描目录或单个文件,找出失效的内部链接,可选地用 HEAD 请求检查外部链接,并报告无入链的孤儿页面;支持 JSON 输出便于接入 CI,同时提供 audit_directory 等函数接口。

kofna3369
kofna3369
热度 24.10
最近更新 2026-06-15 12:50:09
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 自动化脚本 / 报告撰写 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add axiom-markdown-link-auditor
Metadata
name
axiom-markdown-link-auditor
description
Markdown link auditor — find broken internal links, flag dead external links (HEAD requests), report orphan pages. Use when you maintain docs. Pure stdlib + urllib (no LLM).
version
0.1.2
license
Apache-2.0

axiom-markdown-link-auditor

Version: 0.1.2 Axioma Tools

Audits a markdown documentation set for broken links and orphan pages.

What this skill does

  • Finds broken internal links
  • Optional HEAD-check on external links
  • Reports orphan pages (no incoming links)
  • JSON output for CI integration

When to use this skill

  • ✅ Audit docs before deployment
  • ✅ CI gate on broken links
  • ✅ Find orphan pages in your wiki
  • ❌ Render markdown to HTML (use a markdown lib)

Usage

python3 axiom_markdown_link_auditor.py ./docs/
python3 axiom_markdown_link_auditor.py README.md --check-external --json
from axiom_markdown_link_auditor import audit_directory
report = audit_directory('./docs/')
# {broken: [...], orphans: [...], total_links: 123}

Validation

Check Status
Unit tests 15+ cases
Performance <100ms
Security Pure stdlib, no injection
Determinism Byte-to-byte stable
License Apache-2.0

Last updated: 2026-06-14