Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Turn any website into LLM-ready data with Firecrawl logoTurn any website into LLM-ready data with Firecrawl

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits plus 10% off through our link.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free

Installation

npx skills add https://github.com/qodex-ai/ai-agent-skills --skill legal-document-analyzer

Summary

Build agents for legal document analysis, contract review, and compliance checking. Handles document parsing, risk identification, and legal research. Use when creating contract analysis tools, legal research assistants, compliance checkers, or document review systems.

SKILL.md

Legal Document Analyzer

Build intelligent legal document analysis agents that review contracts, identify risks, and provide legal insights.

Document Parsing

See examples/legal_document_parser.py for LegalDocumentParser:

  • Parse PDF, DOCX, and text documents
  • Extract and structure document content
  • Identify sections, clauses, definitions, parties, and dates

Contract Analysis

See examples/contract_analyzer.py for ContractAnalyzer:

  • Identify contract type (NDA, employment, service, purchase, lease)
  • Extract key terms (dates, renewal, payment, performance metrics)
  • Extract obligations, rights, and liabilities

Risk Identification

See examples/contract_risk_analyzer.py for ContractRiskAnalyzer:

  • Analyze financial risks (unlimited liability, price escalations)
  • Identify legal risks (ambiguous terms, conflicting clauses)
  • Assess operational risks
  • Check compliance risks (GDPR, data protection)

Legal Research

Build legal research capabilities to:

  • Find applicable laws for contract type and jurisdiction
  • Identify regulatory requirements
  • Research relevant case law
  • Identify standard practices and precedents

Compliance Checking

Build compliance checking capabilities to:

  • Verify contract compliance with regulations
  • Identify compliance gaps
  • Generate compliance recommendations
  • Track required clauses and documentation

Report Generation

See examples/legal_report_generator.py for LegalReportGenerator:

  • Generate comprehensive contract analysis reports
  • Format key terms and obligations
  • Present risk assessments
  • Provide actionable recommendations

Best Practices

Document Review

  • ✓ Review full document systematically
  • ✓ Identify all parties and roles
  • ✓ Understand key terms and conditions
  • ✓ Identify potential risks
  • ✓ Check for compliance

Risk Management

  • ✓ Prioritize high-severity risks
  • ✓ Negotiate unfavorable terms
  • ✓ Seek legal counsel for major issues
  • ✓ Document agreed changes
  • ✓ Keep signed copies

Compliance

  • ✓ Understand applicable regulations
  • ✓ Ensure required clauses present
  • ✓ Document compliance measures
  • ✓ Review regulatory updates
  • ✓ Train team on obligations

Tools & Resources

Document Processing

  • pypdf
  • python-docx
  • textract
  • OCR libraries

Legal Research

  • LexisNexis
  • Westlaw
  • Google Scholar
  • Free Law Project

Getting Started

  1. Upload contract document
  2. Parse document structure
  3. Identify contract type
  4. Extract key terms and obligations
  5. Analyze for risks
  6. Check compliance
  7. Generate report
  8. Provide recommendations

Recommended skills

Browse all →

Related guides

Hand-picked reading to help you choose, install, and use agent skills.