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
A Claude AI skill that enables an AI assistant to systematically review and repair two classes of problems commonly found in legal contracts after manual editing: broken list numbering and stale cross-references. Works with Google Docs (via Chrome) and Word documents (.docx).
This skill is invoked when the user asks to check, audit, fix, or clean up clause numbering, section numbers, or cross-references in a legal document.
Trigger phrases:
- "fix the numbering in my contract"
- "the clause references look wrong"
- "I made edits and now the numbers are off"
- "check for numbering issues"
- Upload/link a contract and mention structure, numbering, or references being incorrectSupported legal document types: employment agreements, NDAs, service agreements, shareholder agreements, and any legal contract with numbered clauses and cross-references.
When invoked, the skill:
Support for Google Docs (via Chrome tools with screenshots) and Word documents (.docx via python-docx). Determines document type from user input and selects appropriate tooling.
Supported document types:
- Google Docs: accessed via Chrome integration (URL or open in browser)
- Word (.docx): accessed via python-docx (pip install python-docx --break-system-packages)Builds a complete structural map of the document before making any changes. Records every clause number and heading, forming the ground truth for verification.
Clause map entry:
- Top-level clause: number + heading (e.g., "10. Holiday Entitlement")
- Sub-clause: number + short description (e.g., "10.4 Carry-over of unused days")Finds and verifies all cross-references in the document against the clause map. Checks both existence and semantic correctness of each reference.
Reference patterns detected:
- "clause X" / "clauses X and Y"
- "section X"
- "sub-clause X.Y"
- "in accordance with X"
- "pursuant to clause X"
- "as set out in X"
- "referred to in clause X"
Verification questions:
1. Does the referenced clause exist?
2. Does the referenced clause describe what the text implies?Fixes broken list numbering in both Google Docs and .docx files. Handles duplicate numbers, skipped numbers, and incorrectly-nested list items.
Google Docs repairs:
- Right-click → "Restart numbering" or "Continue numbering"
- Cut and re-paste to rejoin correct list
Word (.docx) repairs:
- Reset numId and ilvl via python-docx
- Convert broken auto-numbered items to explicit textProduces a structured summary after all fixes are applied, distinguishing changes made from items requiring manual review.
Report sections:
- Changes made: cross-reference updates, numbering fixes, structural changes
- Things to manually check: uncertain references, unseen document parts
- Clean result: explicit confirmation when no issues founddocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10