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
Support for loading and interacting with legal contract documents in two formats: Google Docs (via Chrome integration) and Word documents (.docx via python-docx).
Identifies and accesses Google Docs using Chrome tools. Requires the document to be accessible via URL or already open in Chrome.
Input:
- Google Doc URL, or document already open in Chrome
Process:
- Use Claude in Chrome tools to navigate to the document
- Take a screenshot to orient and confirm correct document
- Scroll through entire document taking screenshots of each page
- Capture all clause numbers via visual inspection
Limitations:
- Requires Chrome integration to be active
- All interactions are visual (screenshot-based)Usage Example:
When the user provides a Google Docs URL:
Accesses .docx files programmatically using the python-docx library.
Input:
- File path to .docx file, or uploaded file
Setup:
- pip install python-docx --break-system-packages
Process:
- Parse full document text programmatically
- Use regex to extract all cross-references
- Access paragraph numId and ilvl properties for numbering analysis
- Apply fixes programmatically across all paragraphs and runsUsage Example:
from docx import Document
doc = Document("contract.docx")
# Iterate paragraphs
for para in doc.paragraphs:
print(para.text)
# Access numbering properties
if para._element.pPr is not None:
numPr = para._element.pPr.numPr
if numPr is not None:
ilvl = numPr.ilvl.val
numId = numPr.numId.val
# Find and replace text
import re
pattern = re.compile(r'clause \d+(\.\d+)*', re.IGNORECASE)
for para in doc.paragraphs:
for run in para.runs:
matches = pattern.findall(run.text)
# process matches
doc.save("contract_fixed.docx")If user hasn't specified document type:
- Ask for document: Google Doc URL or .docx file path/upload
- Google Doc: treat as Chrome-based visual workflow
- .docx: treat as programmatic python-docx workflowdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10