PDF & DocumentsDocumentedScanned

legaldoc-ai

**Category:** Legal / Professional Services

Share:

Installation

npx clawhub@latest install legaldoc-ai

View the full skill documentation and source below.

Documentation

LegalDoc AI

Version: 1.0.0
Category: Legal / Professional Services

Overview

LegalDoc AI is a comprehensive legal document automation skill that helps law firms and legal professionals streamline document review, contract analysis, legal research, and deadline management. Designed for attorneys, paralegals, and legal operations teams.

Capabilities

1. Contract Clause Extraction

Extract and analyze specific clauses from contracts:
  • Indemnification clauses
  • Limitation of liability
  • Termination provisions
  • Force majeure
  • Confidentiality/NDA terms
  • Non-compete/non-solicitation
  • Intellectual property assignments
  • Governing law & jurisdiction
  • Dispute resolution (arbitration/litigation)
  • Payment terms & penalties
  • Representations & warranties
  • Change of control provisions

2. Document Summarization

Generate executive summaries for legal documents:
  • Contract summaries with key terms highlighted
  • Case brief generation
  • Deposition summary
  • Discovery document digest
  • Regulatory filing summaries
  • M&A due diligence summaries

3. Legal Research Queries

AI-powered legal research assistance:
  • Case law search and analysis
  • Statutory interpretation
  • Regulatory guidance lookup
  • Precedent identification
  • Jurisdiction-specific research
  • Citation verification

4. Deadline Tracking

Automated legal deadline management:
  • Statute of limitations tracking
  • Filing deadline extraction
  • Court date monitoring
  • Contract milestone alerts
  • Regulatory compliance dates
  • Discovery deadlines

Commands

Clause Extraction

legaldoc extract clauses <file_path>
legaldoc extract clauses <file_path> --type indemnification,liability
legaldoc extract clauses <file_path> --output json|markdown|table
legaldoc compare clauses <file1> <file2> --type all

Document Summary

legaldoc summarize <file_path>
legaldoc summarize <file_path> --type executive|detailed|bullet
legaldoc summarize <file_path> --length short|medium|long
legaldoc summarize <file_path> --focus obligations|risks|terms

Legal Research

legaldoc research "<query>"
legaldoc research "<query>" --jurisdiction CA|NY|TX|federal
legaldoc research "<query>" --type case_law|statute|regulation
legaldoc research citations <file_path> --verify

Deadline Management

legaldoc deadlines extract <file_path>
legaldoc deadlines list --upcoming 30d
legaldoc deadlines add "<description>" --date YYYY-MM-DD --matter <matter_id>
legaldoc deadlines alert --email <address> --days-before 7,3,1

Document Comparison

legaldoc compare <file1> <file2>
legaldoc compare <file1> <file2> --type redline|summary|clause-by-clause
legaldoc compare versions <file_path> --show-history

Supported File Types

  • PDF (including scanned with OCR)
  • Microsoft Word (.doc, .docx)
  • Plain text (.txt)
  • Rich Text Format (.rtf)
  • HTML documents
  • Markdown (.md)

Configuration

# ~/.legaldoc/config.yaml
default_jurisdiction: "federal"
output_format: "markdown"
ocr_enabled: true
deadline_alerts:
  enabled: true
  email: "legal@yourfirm.com"
  slack_webhook: ""
  days_before: [7, 3, 1]
matter_management:
  enabled: true
  system: "clio"  # or "mycase", "practicepanther", "custom"
  api_key: "${CLIO_API_KEY}"

Environment Variables

VariableDescriptionRequired
LEGALDOC_API_KEYLegalDoc AI API keyYes
WESTLAW_API_KEYWestlaw research API (optional)No
LEXIS_API_KEYLexisNexis API (optional)No
COURTLISTENER_API_KEYCourtListener free APINo
CLIO_API_KEYClio matter managementNo
LEGALDOC_STORAGE_PATHLocal document storageNo

Data Privacy & Security

  • No document storage: Documents are processed in-memory and never stored on external servers
  • End-to-end encryption: All API communications use TLS 1.3
  • SOC 2 Type II compliant: Enterprise security standards
  • HIPAA ready: For healthcare-related legal matters
  • Attorney-client privilege: Designed to maintain privilege protections
  • Audit logging: Full audit trail of all operations

Output Formats

Clause Extraction Output (JSON)

{
  "document": "Master_Services_Agreement.pdf",
  "extracted_at": "2026-01-31T10:30:00Z",
  "clauses": [
    {
      "type": "indemnification",
      "section": "8.1",
      "page": 12,
      "text": "Client shall indemnify and hold harmless...",
      "risk_level": "high",
      "notes": "Broad indemnification with no carve-outs",
      "suggested_revision": "Consider adding carve-outs for gross negligence..."
    }
  ]
}

Summary Output (Markdown)

# Executive Summary: Master Services Agreement

**Parties:** Acme Corp (Client) ↔ TechVendor Inc (Provider)
**Effective Date:** January 1, 2026
**Term:** 3 years with auto-renewal

## Key Terms
- **Contract Value:** $2.4M over term
- **Payment:** Net 30, quarterly invoicing
- **Termination:** 90-day notice for convenience

## Risk Assessment
🔴 **High Risk:** Unlimited liability for data breaches
🟡 **Medium Risk:** Broad IP assignment clause
🟢 **Low Risk:** Standard force majeure provisions

## Critical Deadlines
- First payment due: February 1, 2026
- Annual review: December 1, 2026
- Renewal notice deadline: October 1, 2028

Integration Points

Practice Management Systems

  • Clio
  • MyCase
  • PracticePanther
  • Rocket Matter
  • CosmoLex

Document Management

  • NetDocuments
  • iManage
  • Dropbox Business
  • Google Drive
  • SharePoint

Communication

  • Email (SMTP)
  • Slack
  • Microsoft Teams
  • SMS alerts

Best Practices

  • Always verify extracted clauses against source documents

  • Use jurisdiction flags for research queries to ensure relevance

  • Set up deadline alerts with multiple reminder intervals

  • Review AI suggestions before incorporating into final documents

  • Maintain audit logs for compliance and malpractice protection
  • Pricing Tiers

    TierDocuments/MonthResearch QueriesPrice
    Solo50100$99/mo
    Small Firm200500$299/mo
    Mid-Size1,0002,500$799/mo
    EnterpriseUnlimitedUnlimitedCustom

    Support

    • Documentation:
    • Email: support@legaldoc.ai
    • Slack Community: legaldoc-users.slack.com
    • Enterprise: dedicated account manager

    Changelog

    v1.0.0 (2026-01-31)

    • Initial release
    • Contract clause extraction (12 clause types)
    • Document summarization
    • Legal research integration
    • Deadline tracking system