| name | legal-review |
| title | Legal Document Review |
| description | Review legal documents (NDA, contracts, agreements) for sensitive clauses, risks, and red flags |
| author | aAAaqwq |
| author_url | https://github.com/aAAaqwq/AGI-Super-Team/tree/master/skills/legal-review |
| license | MIT |
| version | 0.1.0 |
| execution_mode | open |
| jurisdiction | general |
| practice | contracts |
| language | en |
Legal Document Review
Analyze legal documents for sensitive clauses, risks, unfavorable terms, and red flags. Provides structured review with risk assessment and recommendations.
When to use
- User asks to review an NDA, contract, or legal agreement
- User wants to find sensitive or risky clauses in a legal document
- User needs to understand implications of a legal document before signing
- User asks to compare document terms against standard/fair practices
Dependencies
- External: python3 (for DOCX extraction via python-docx)
How to execute
Step 1: Extract document text
If the document is a DOCX file, extract text:
from docx import Document
doc = Document('path/to/file.docx')
text_parts = []
for p in doc.paragraphs:
if p.text.strip():
text_parts.append(p.text)
for table in doc.tables:
for row in table.rows:
for cell in row.cells:
if cell.text.strip():
text_parts.append(cell.text)
If PDF, use the Read tool directly (it supports PDFs).
Step 2: Analyze document
Perform structured analysis covering ALL of the following areas:
A. Document Overview
- Type of document (NDA, MSA, SoW, etc.)
- Parties involved and their roles
- Effective date and duration
- Governing law and jurisdiction
B. Sensitive Clauses Detection
Scan for and flag these categories with severity levels:
| Category | What to look for | Severity |
|---|
| Non-compete / Non-solicitation | Restrictions on working with competitors, hiring employees | HIGH |
| Unlimited liability |