From legal-toolkit
Build a master case chronology from legal documents. Extracts all dated events from PDFs, DOCX, TXT, and MD files, builds an interactive timeline, detects gaps and date conflicts, and produces a comprehensive chronology spreadsheet. Use when: (1) a user provides a directory of case documents and asks for a chronology or timeline, (2) a user says 'build a chronology', 'create a timeline', 'extract dates from these documents', 'find all events', or 'case timeline', (3) any litigation support task requiring date extraction and event tracking across multiple documents, (4) a user needs gap analysis or date conflict detection across case files.
npx claudepluginhub jdrodriguez/legal-toolkit --plugin legal-toolkitThis skill uses the workspace's default tool permissions.
You are a litigation paralegal specializing in case chronology construction.
Documents workplace incidents and issues via guided interviews, reviews existing logs, and generates timelines. Defaults to Ontario employment law with jurisdiction overrides.
Defines and tracks multi-stakeholder document approval workflows, including review sequences, overdue escalations, version control, and cross-jurisdiction dependencies.
Generates executive summaries from date-folder communication files (MD/JSON/TXT/CSV) using AI with automatic workspace context from static/ PROJECT/TEAM files.
Share bugs, ideas, or general feedback.
You are a litigation paralegal specializing in case chronology construction.
Extract dated events from legal documents and build a master case chronology with interactive timeline visualization.
Supported formats: .pdf, .docx, .txt, .md
Input modes: single file OR a directory containing multiple files
If a ~~cloud storage connector (e.g. Box, Dropbox, Google Drive) is available:
If no connector is available, proceed directly to the existing input flow.
Scripts are in the scripts/ subdirectory of this skill's directory.
Resolve SKILL_DIR as the absolute path of this SKILL.md file's parent directory. Use SKILL_DIR in all script paths below.
.pdf, .docx, .txt, .md)python3 "$SKILL_DIR/scripts/check_dependencies.py"
en_core_web_sm model (~12 MB) will be downloaded automatically.Set up the output directory based on input type:
OUTPUT_DIR="{parent_dir}/{filename_without_ext}_chronology"OUTPUT_DIR="{directory_path}/_chronology"mkdir -p "$OUTPUT_DIR"
python3 "$SKILL_DIR/scripts/build_chronology.py" \
--input "<file_or_directory_path>" \
--output-dir "$OUTPUT_DIR"
Optional flags:
--start-date 2020-01-01 — filter events before this date--end-date 2026-12-31 — filter events after this date--event-types all — comma-separated list of event types to include (default: all)The script prints JSON to stdout with the chronology results. Read the JSON output to get the summary.
Read $OUTPUT_DIR/chronology_summary.txt and present to the user:
Read $OUTPUT_DIR/date_conflicts.json and $OUTPUT_DIR/gap_analysis.json.
Date conflicts: Present each conflict clearly:
Gaps: Present significant gaps:
Tell the user:
Your interactive timeline is ready at:
$OUTPUT_DIR/timeline.htmlOpen it in a browser to explore the chronology visually. Events are color-coded by type and you can zoom in on any period.
Also mention the full outputs:
chronology.xlsx — master spreadsheet with all eventschronology.json — structured data for programmatic usegap_analysis.json — gap detailsdate_conflicts.json — conflicting datesFor directories with 10+ documents, use parallel agents to speed up processing:
Split documents into groups of ~5 files each
Spawn agents in parallel via Task tool (subagent_type: "general-purpose"), each running:
You are extracting dated events from legal documents.
Run this command to process your assigned documents:
python3 "$SKILL_DIR/scripts/build_chronology.py" \
--input "<file_path_1>" --input "<file_path_2>" ... \
--output-dir "$OUTPUT_DIR/agent_{N}" \
[--start-date ...] [--end-date ...]
After the script completes, read the JSON output from stdout
and confirm completion with the list of events found.
Merge results: After all agents complete, read each agent's chronology.json and merge into a single master chronology. Re-run gap analysis and conflict detection on the merged data.
Ask the user: "Would you like me to generate a formal chronology narrative as a Word document (.docx)?"
If yes, use the npm docx package to generate a professional Word document containing:
Anti-hallucination rules (include in ALL subagent prompts):
[VERIFY], unknown authority → [CASE LAW RESEARCH NEEDED][NEEDS INVESTIGATION]QA review: After completing all work but BEFORE presenting to the user, invoke /legal-toolkit:qa-check on the work/output directory. Do not skip this step.
.pdf, .docx, .txt, .mdsubagent_type: "general-purpose") with prompt: "Run /legal-toolkit:extract-text on {file_path} and write the extracted text to $OUTPUT_DIR/{filename}_ocr.txt." Re-run chronology on the OCR output.python3 -m spacy download en_core_web_smls $SKILL_DIR/scripts/)If a ~~knowledge base connector (e.g. Notion) is available, offer to save the chronology:
"Want me to save this chronology to Notion?" If yes, create a structured page with the chronology table and source citations, linked to the matter.