Packs / docs-and-knowledge-base-public
docs-link-check
Catch broken links, missing anchors, untitled and orphan pages in a markdown docs folder
Install
logicpacks pack use docs-and-knowledge-base-public/docs-link-checkget_pack docs-and-knowledge-base-public/docs-link-checkThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
stdlib - Checks: 2 in
outcome/checks.yaml - Code:
linkcheck.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Catch broken links, missing anchors, untitled and orphan pages in a markdown docs folder.
Steps
python3 code/linkcheck.py <docs_dir> [--root index.md].- Fix every PROBLEM line; exit code 1 blocks the deploy in CI.
- Run before Docusaurus/Outline imports.
Edge cases
- External links are not fetched (use lychee for that).
- Anchors follow GitHub-style slugs.
Don'ts
- Don't silence orphans; link them or delete them.
Check
lp pack check docs-and-knowledge-base/docs-link-check runs outcome/checks.yaml.