Packs / legal-ops-public
cross-reference-check
Find broken internal cross-references ("Section 9.1", "Schedule 3") in a contract draft
Install
logicpacks pack use legal-ops-public/cross-reference-checkget_pack legal-ops-public/cross-reference-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:
local-python - Checks: 1 in
outcome/checks.yaml - Code:
xref.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A list of Section/Clause/Schedule references that point to numbers that do not exist in the document.
Verified by: Fixture MSA references Section 9.1 and Section 2.4 that do not exist; both are reported, valid refs are not.
Steps
- Run
python3 code/xref.py draft.txt. - Fix each broken reference in the source document.
- Re-run after any renumbering.
Edge cases
- Schedules that are separate files are reported as missing unless their headings are in the text (use --schedules 1,2 to declare them).
Don'ts
- Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.