A Claude AI skill that reviews and fixes clause numbering and stale cross-references in legal contracts and agreements.
94
Pending
Does it follow best practices?
Impact
94%
0.98xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
Design a solution that scans a legal contract and extracts every cross-reference to a clause by number. The solution must recognize multiple cross-reference patterns commonly used in legal drafting and, for Word documents, use programmatic regex-based extraction to avoid missing any references.
The solution should scan the full text of the document for cross-reference patterns. At minimum, it must recognise the following forms:
clause X, section X, sub-clause X.Y (and sub-clause X.Y.Z)in accordance with [clause/section] Xpursuant to [clause/section] Xas set out in [clause/section] Xreferred to in [clause/section] XFor Word documents, the scan must be carried out programmatically by applying regex patterns across every paragraph and run in the document using python-docx. Manual reading or screenshot-based extraction is not acceptable, as it risks omitting references.
Each extracted reference should capture the matched pattern text, the referenced clause number, and enough surrounding text to understand the reference in context.
Accepts document text or a .docx file. Returns a list of cross-reference objects, each containing:
pattern_found: the exact matched text (e.g., "pursuant to clause 16")referenced_clause_number: the extracted clause number (e.g., "16")surrounding_text: a short excerpt of the surrounding sentence for contextAI skill that reviews and fixes clause numbering issues and stale cross-references in legal contracts.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10