Skip to content

Packs / legal-ops-public

defined-terms-check

Check a contract's defined terms: list terms used but never defined and terms defined but never used

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-legal-ops-public

Install

logicpacks pack use legal-ops-public/defined-terms-check
get_pack legal-ops-public/defined-terms-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: local-python
  • Checks: 1 in outcome/checks.yaml
  • Code: terms.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Two lists for a draft: capitalised terms used without a definition, and defined terms never used again, so drafting errors are fixed before review.

Verified by: Fixture: "Licensor" and "Confidential Information" reported as undefined; "Deliverables" defined but used elsewhere; no false positives for sentence-start words.

Steps

  1. Run python3 code/terms.py draft.txt.
  2. Add missing definitions or fix the capitalisation; remove unused definitions.
  3. Re-run until both lists are empty or explained.

Edge cases

  • Party names and headings look like terms; party names are recognised from (the "X") definitions.
  • Common capitalised words (This, Each, Either, Section, Schedule) are ignored.

Don'ts

  • Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.
  • Don't auto-replace terms; each change is a drafting decision.