Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tabular-document-review

БесплатноЗапускает вложенные скриптыНе проверен

Extract structured data from multiple documents into comparison matrix with citations. Use for bulk document review.

borgheiот borghei★ 1 250 звёзд на GitHub

Об этом скилле

⚠️ EXPERIMENTAL — This skill is provided for educational and informational purposes only. It does NOT constitute legal advice. All responsibility for usage rests with the user. Consult qualified legal professionals before acting on any output.

Tabular Document Review Skill

Overview

Production-ready toolkit for extracting structured data from multiple legal documents into a comparison matrix with citations. Supports user-defined extraction columns, parallel processing with up to 10 agents, confidence scoring, and output in markdown table or structured JSON. Designed for legal teams performing bulk contract review, NDA comparison, employment agreement analysis, and lease review.

Table of Contents

Clarify First

Before the review, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • The extraction columns: define exactly what each cell holds; a vague "Date" matches dozens of dates, while "Effective Date" with guidance does not.
  • Document set location and formats: drives discovery and how many parallel agents to allocate (ceil(N/10), max 10).
  • Document type: contracts, NDAs, employment, leases — selects the pre-defined column set and per-column extraction guidance.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Tools

1. Document Discovery (scripts/document_discovery.py)

Scan a directory for legal documents and generate an inventory manifest.

python scripts/document_discovery.py /path/to/contracts

python scripts/document_discovery.py /path/to/ndas --types pdf,docx --json

python scripts/document_discovery.py /path/to/leases --types pdf,docx,txt,md --min-size 1024

2. Extraction Aggregator (scripts/extraction_aggregator.py)

Aggregate multiple extraction result JSONs into a unified comparison matrix.

python scripts/extraction_aggregator.py \
  --results extraction_1.json extraction_2.json extraction_3.json

python scripts/extraction_aggregator.py \
  --results-dir ./extraction_results/ --json

python scripts/extraction_aggregator.py \
  --results-dir ./extraction_results/ \
  --format markdown \
  --output review_matrix.md

python scripts/extraction_aggregator.py \
  --results extraction_1.json extraction_2.json \
  --columns "Parties,Effective Date,Term,Governing Law"

Reference Guides

Reference Purpose
references/extraction_methodology.md Document extraction best practices, JSON schema, agent prompts
references/common_extraction_columns.md Pre-defined column sets for contracts, NDAs, employment, leases

Workflows

5-Step Document Review Pipeline

Step Action Tool Output
1. Gather Requirements Define document folder, output filename, columns to extract Manual Column list, file path
2. Discover Documents Scan directory for target documents document_discovery.py Document manifest JSON
3. Process Documents Extract values per column with citations (parallel agents) AI agents (external) Per-document extraction JSONs
4. Collect Results Aggregate extraction JSONs into unified matrix extraction_aggregator.py Consolidated matrix
5. Generate Output Export as markdown table or structured JSON extraction_aggregator.py Final deliverable

Parallel Processing Strategy

Agents Documents per Agent Use When
1 All 1-5 documents
2-3 ceil(N/agents) 6-15 documents
4-6 ceil(N/agents) 16-40 documents
7-10 ceil(N/agents) 41-100 documents
10 (max) ceil(N/10) 100+ documents

Agent Prompt Template

Each agent receives a prompt structured as:

You are reviewing {count} legal documents. For each document, extract the
following columns:

{column_definitions}

For each value extracted:
1. Provide the exact value found
2. Include the page number (PDF) or section/paragraph (DOCX/MD)
3. Rate your confidence: HIGH (exact match), MEDIUM (inferred), LOW (uncertain)
4. If not found, record "NOT FOUND" with confidence LOW

Output as JSON per the extraction schema.

Confidence Scoring

Level Color Code Definition
HIGH Green Exact value found with clear citation
MEDIUM Yellow Value inferred from context; multiple possible interpretations
LOW Red / Not Found Value uncertain or not fo
Полный SKILL.md на GitHub

Установить tabular-document-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/common_extraction_columns.mdreferences/extraction_methodology.mdscripts/document_discovery.pyscripts/extraction_aggregator.py

FAQ

Что делает скилл tabular-document-review?

Extract structured data from multiple documents into comparison matrix with citations. Use for bulk document review.

Как установить скилл tabular-document-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tabular-document-review запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить tabular-document-review с