Skip to content

Packs / docs-and-knowledge-base-public

docs-link-check

Catch broken links, missing anchors, untitled and orphan pages in a markdown docs folder

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-docs-and-knowledge-base-public

Install

logicpacks pack use docs-and-knowledge-base-public/docs-link-check
get_pack docs-and-knowledge-base-public/docs-link-check

The 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

  1. python3 code/linkcheck.py <docs_dir> [--root index.md].
  2. Fix every PROBLEM line; exit code 1 blocks the deploy in CI.
  3. 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.