Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
qodex-ai avatar

Legal Document Analyzer

  • 1k installs
  • 38 repo stars
  • Updated January 5, 2026
  • qodex-ai/ai-agent-skills

legal-document-analyzer is a Claude Code skill that extracts obligations, rights, liabilities, and termination clauses from contracts for developers who must review legal documents programmatically before signing or inte

About

legal-document-analyzer is a qodex-ai/ai-agent-skills agent skill backed by a Python ContractAnalyzer module for structured contract review. The skill identifies contract type, parties, key terms, obligations, rights, liabilities, and termination clauses from parsed contract dictionaries using regex and typed extraction helpers. It returns analysis dictionaries suitable for downstream risk dashboards or agent summaries. Developers reach for legal-document-analyzer when triaging NDAs, MSAs, or vendor agreements during procurement, compliance checks, or automated document intake pipelines—not as a substitute for licensed legal counsel.

  • Extracts key terms, obligations, rights, and liabilities from contracts
  • Identifies contract type using keyword pattern matching
  • Pulls termination conditions and dispute resolution mechanisms
  • Returns structured JSON analysis including parties involved
  • Designed as reusable agent capability for legal review workflows

Legal Document Analyzer by the numbers

  • 1,042 all-time installs (skills.sh)
  • +16 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #458 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/qodex-ai/ai-agent-skills --skill legal-document-analyzer

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1k
repo stars38
Security audit3 / 3 scanners passed
Last updatedJanuary 5, 2026
Repositoryqodex-ai/ai-agent-skills

How do you extract key clauses from contracts programmatically?

Automatically extract obligations, rights, liabilities, and termination clauses from contracts and legal documents.

Who is it for?

Developers building contract intake, vendor review, or compliance automation who need structured clause extraction from parsed legal text.

Skip if: Licensed legal advice, courtroom litigation strategy, or jurisdictions requiring certified attorney review without human oversight.

When should I use this skill?

The user uploads or parses a contract and asks to extract obligations, rights, liabilities, or termination terms automatically.

What you get

Structured contract analysis dictionaries with parties, key terms, obligations, rights, liabilities, and termination clause fields.

  • contract analysis dictionary
  • extracted clause fields

Files

SKILL.mdMarkdownGitHub ↗

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

Related skills

How it compares

Choose legal-document-analyzer when you need structured clause fields from contracts in code rather than general summarization of arbitrary PDFs.

FAQ

What clauses does legal-document-analyzer extract?

legal-document-analyzer extracts obligations, rights, liabilities, and termination clauses, plus contract type, parties, and key terms from parsed contract documents via its ContractAnalyzer module.

Is legal-document-analyzer a replacement for a lawyer?

No. legal-document-analyzer automates structured clause extraction for developer workflows; final legal interpretation and signing decisions still require qualified human legal review.

Is Legal Document Analyzer safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Productivity & Planningagentsautomationresearch

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.