Bulk document extraction review

From CSlawyer1985/legal-skillhub · View interactive version

Bulk document extraction review is an AI agent skill from the GitHub repository CSlawyer1985/legal-skillhub. Extracts structured data from large sets of legal documents into tabular format for review, analysis, and reporting. Processes contracts, agreements, correspondence, filings, and other legal documents in bulk — extracting key terms, dates, parties, obligations, risks, and custom fields into organize

How to use this skill

Skill file

Bulk Document Extraction & Review

Extracts structured data from sets of legal documents into tabular format. Each document becomes a row; user-defined questions become columns. Produces reviewable tables with source citations, then supports analysis across the extracted dataset.

Prerequisites

  1. Document set — the files to analyze (contracts, agreements, correspondence, filings, etc.)
  2. Extraction questions — what to extract from each document (see Column Design below)
  3. Document type — the nature of the documents (e.g., all NDAs, mixed data room, email set)
  4. Review purpose — what the table will be used for (DD report, compliance check, portfolio analysis, case chronology)
  5. Output preferences — format (table, CSV, report narrative), language, level of detail

If extraction questions are not provided, propose a standard column set based on the document type.

Workflow

Phase 1: Column Design

Define extraction columns. Each column is a question asked of every document. Column types:

| Type | Description | Example |

|---|---|---|

| Verbatim | Extract exact language from the document | "What is the governing law clause?" |

| Free response | Summarize or interpret | "Summarize the key obligations of the Seller" |

| Classification | Yes/No or category | "Does this agreement contain a change-of-control provision?" |

| Date | Extract specific dates | "What is the effective date?" |

| Numeric | Extract amounts, percentages | "What is the liability cap amount?" |

| List | Multiple items from same document | "List all defined terms" |

Standard column sets by document type:

Contracts / Agreements:

Correspondence / Emails:

Court Filings / Pleadings:

Phase 2: Document Processing

For each document in the set:

  1. Identify — document name, type, date, page count
  2. Extract — answer each column question with:
  1. Flag — note any documents that:

Phase 3: Table Assembly

Compile results into a structured table:

| Doc # | Document Name | [Column 1] | [Column 2] | ... | [Column N] | Flags |

|---|---|---|---|---|---|---|

Table conventions:

Phase 4: Cross-Document Analysis

After extraction, analyze the dataset:

4a. Summary Statistics
4b. Risk and Anomaly Report
4c. Comparative Analysis

Phase 5: Report Generation

Based on the extracted table and analysis, produce:

  1. Executive summary — key findings, overall risk assessment, critical items requiring action
  2. Detailed table — full extraction results (Phase 3 output)
  3. Analysis narrative — written summary of cross-document patterns, risks, and recommendations
  4. Follow-up list — documents or issues requiring further review, with specific questions

Use Case Templates

M&A Due Diligence Data Room

Columns: Parties, Date, Contract type, Term, Renewal, Change of control, Assignment consent, Material financial terms, Restrictive covenants, IP provisions, Termination triggers, Red flags

Analysis focus: Change-of-control provisions that could block closing, material contracts requiring consent, unusual termination rights, aggregate financial exposure

Lease Portfolio Review

Columns: Property, Landlord, Tenant, Commencement, Expiration, Renewal options, Monthly rent, Escalation, CAM/NNN, Assignment/subletting, Termination rights, Restoration obligations

Analysis focus: Upcoming expirations, below/above-market rents, assignment restrictions affecting transactions, aggregate lease obligations

Employment Agreement Audit

Columns: Employee, Title, Start date, Term, Base compensation, Bonus/equity, Non-compete scope and duration, Non-solicit, IP assignment, Severance triggers, Change-of-control provisions, Governing law

Analysis focus: Non-compete enforceability by jurisdiction, aggregate severance exposure, key person dependencies, inconsistencies across similar roles

Regulatory Filing Review

Columns: Filing type, Filing date, Filer, Jurisdiction, Status, Key disclosures, Material changes from prior filing, Deficiencies noted, Response deadline

Analysis focus: Compliance gaps, missed deadlines, material disclosure changes, cross-filing consistency

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.