Portfolio AI Toolkit
Legal AI Toolkit

Prompts, workflows, datasets & projects
for legal professionals

A curated, practitioner-built collection of AI prompts optimized by LLM, legal workflows mapped for AI integration, public datasets for safe experimentation, and vibe coding projects built by and for the legal community.

For attorneys · legal ops · knowledge management · innovation teams · legal staff

Category:
Most prompts are optimized for Claude using XML tags and structured reasoning. To adapt for other LLMs: replace XML tags with markdown headers (## Role, ## Task, etc.) and keep the structure. The core logic transfers.
Statutory Research & Client Advisory
Research
Research a statute or regulation, list real-world enforcement examples, and rewrite as a plain-language client email. Uses XML tags and explicit anti-hallucination guardrails.
Claude-optimized prompt
<role>
You are a senior attorney specializing in {{practice_area}} in {{jurisdiction}}.
</role>

<context>
I'm preparing a client advisory on {{statute/regulation}} for {{audience, e.g., "a non-lawyer CFO"}}.
</context>

<task>
1. Summarize the key elements and requirements of {{statute/regulation}}.
2. List 10 real-world examples of how it has been applied or violated.
3. Rewrite the summary as a client-facing email in plain business language.
</task>

<rules>
- Cite only real statutes and publicly known enforcement actions.
- If you are unsure whether a case or enforcement action is real, say so explicitly rather than guessing.
- Keep the email under 500 words.
</rules>

<format>
Return three clearly labeled sections:
<legal_summary>...</legal_summary>
<examples>...</examples>
<client_email>...</client_email>
</format>
Multi-Jurisdiction Regulatory Comparison
Research
Compare regulatory frameworks across two states with a structured comparison table and practical implications. Includes step-by-step reasoning.
Risk-Focused Contract Review
Contracts
Systematic contract risk analysis with HIGH/MEDIUM/LOW flagging, suggested revisions for high-risk clauses, and an executive summary for business stakeholders.
Contract Summary Table
Contracts
Extract key contract terms into a standardized table. Works well across all LLMs — structured output keeps results consistent.
NDA Drafting (Mutual)
Contracts
Generate a mutual NDA first draft with modern plain language, negotiation flags, and structured step-by-step reasoning through standard NDA sections.
Deposition Transcript Analysis
Summarization
Structured deposition summary with key testimony extraction, inconsistency flagging, and impeachment points — organized for trial prep.
Medical Records Chronology
Summarization
Chronological medical summary table with treatment gaps, pre-existing conditions, and causation flags — built for personal injury litigation.
Interrogatories Drafting
Discovery
Draft interrogatories tied to claim elements with jurisdiction-aware limits. Avoids compound questions that invite objections.
Deposition Outline
Discovery
Comprehensive deposition prep with topic-organized questions, follow-ups for evasive witnesses, and exhibit integration points.
Client Update Letter
Communications
Plain-language client update with appropriate hedging, parenthetical definitions, and clear action items. Suitable for non-lawyer recipients.
Demand Letter
Communications
Professional demand letter with citation verification flags, reservation of rights, and step-by-step structure from facts through consequences.
Matter Intake Checklist
Legal Ops
Generate a structured matter intake checklist covering conflicts, engagement, deadlines, documents, staffing, and systems setup.
Prompting Techniques

Structural techniques that make any legal prompt better — from confidence flagging to reverse-engineering your best work. Shared by Roxana Sharifi (original LinkedIn post).

Negative Instructions (Anti-Hallucination)
Technique Starter
LLMs fill gaps with plausible-sounding fabrications. Explicit prohibitions measurably reduce this. It's one line — and it should be in every legal prompt you write.
Multi-LLM prompt
Do not invent case law. If you are uncertain, say so explicitly.
Let the AI Design Your Prompt
Technique Starter
Stop trying to write the perfect prompt yourself. Describe what you need, let the model design the prompt. Then refine it.
Multi-LLM prompt
I need to extract and compare change of control clauses from the attached agreements. Draft a prompt I can use in {{tool name, e.g., DeepJudge / Harvey / Legora}}.
Ask Before You Prompt
Technique Intermediate
Simple but powerful. Let the model tell you what's missing before you start. Saves you from getting a polished answer to the wrong question.
Multi-LLM prompt
What are the most important questions you need answered to achieve {{my goal}}?
Reverse Engineer Your Best Work
Technique Intermediate
You already have DD summaries, memos, and risk analyses you're happy with. Feed them back to the model and let it learn your standard. Quality assurance through pattern replication.
Multi-LLM prompt
Analyse this document and infer the prompt that would most likely produce it. Then give me a reusable version of that prompt.
Two-Step Proofreading
Technique Advanced
The model first figures out what to check — consistent definitions, matching party names, correct cross-references, referenced annexes, standard clauses — then checks against its own list. Much more thorough than a single "proofread this."
Multi-LLM prompt
1) Produce a proofreading checklist for this agreement.
2) Then review the document against that checklist. Report on each item.
Confidence Flagging
Technique Advanced
Forces the model to show its work on every statement — like asking a trainee "how do you know that?" instead of just "what's the answer?" You see where the response is grounded in sources and where it's guessing.
Multi-LLM prompt
Flag confidence: [Confirmed] [Inferred] [Uncertain] — and explain exactly why.
Contract Review & Negotiation Workflow
Contracts
End-to-end contract review process from intake through redline generation, integrating AI at each stage while maintaining attorney oversight.
01
Intake & Classification
Receive contract, identify type (NDA, MSA, SaaS, vendor, etc.), and determine review priority.
AI: auto-classify contract type from first page
02
Summary Extraction
Generate structured summary table: parties, term, fees, obligations, key dates.
AI: Contract Summary Table prompt
03
Risk Analysis
Flag high/medium/low risk clauses against playbook positions. Compare to standard terms.
AI: Risk-Focused Contract Review prompt
04
Attorney Review
Attorney reviews AI output, validates risk flags, applies business judgment and client-specific context.
05
Redline Generation
Generate proposed redlines for flagged clauses with alternative language.
AI: draft alternative clause language
06
Negotiation & Finalization
Compare counterparty revisions to original positions. Attorney finalizes and approves.
AI: comparison analysis of versions
Litigation Case Preparation Workflow
Discovery
From case intake through deposition prep, mapping where AI accelerates each phase of litigation support.
01
Case Intake & Summary
Collect case documents, generate initial case summary, identify key facts and parties.
AI: summarize intake documents, extract key dates
02
Legal Research
Research applicable statutes, leading cases, and recent developments in the jurisdiction.
AI: Statutory Research prompt, Multi-Jurisdiction Comparison
03
Discovery Drafting
Draft interrogatories, requests for production, and requests for admission tied to claim elements.
AI: Interrogatories Drafting prompt
04
Document Review & Summarization
Review produced documents, summarize depositions and medical records.
AI: Deposition Transcript Analysis, Medical Records Chronology
05
Deposition Preparation
Build deposition outlines, identify key documents for exhibits, prepare impeachment materials.
AI: Deposition Outline prompt
New Matter Intake & Setup Workflow
Legal Ops
Standardized new matter onboarding from conflicts check through system setup, with AI-generated checklists tailored to matter type.
01
Conflicts Check
Run conflicts search across all parties, affiliates, and related entities.
02
Engagement Letter
Generate engagement letter draft with scope, fees, and terms tailored to matter type.
AI: draft engagement letter from template + matter details
03
Deadline Calendaring
Identify all applicable limitation periods, filing deadlines, and regulatory dates.
AI: extract deadlines from jurisdiction + matter type
04
Document Collection Plan
Generate a tailored document request list based on matter type and claims involved.
AI: Matter Intake Checklist prompt
05
System Setup & Team Assignment
Create matter in DMS, billing, and project management systems. Assign team roles.
Process Maps

Reference frameworks for common legal processes, mapped with decision points, role assignments, and AI integration layers. Built from established industry models — EDRM, CLOC core competencies, and standard practice guides — then adapted to show where AI tools fit into each step today.

Every legal team's process is different. These maps are starting points — I work with teams to adapt them to their specific tools, roles, and pain points. Let's talk about mapping yours.

eDiscovery
Electronic Discovery Reference Model (EDRM)
The industry-standard 9-phase framework for managing electronic discovery, from information governance through courtroom presentation. AI has the highest impact during the Review phase — historically the most expensive step.
Attorney
Paralegal / Lit Support
AI-Assisted
Ops / Vendor
Decision Point
Transactional
Contract Lifecycle Management (CLM)
Full contract lifecycle from request through renewal/termination, with decision gates for risk tolerance, approval authority, and counterparty negotiation.
Attorney
Business / Requestor
AI-Assisted
Decision Point
Employment / HR
Workplace Investigation Process
Structured investigation workflow from complaint through resolution, balancing thoroughness with speed. Critical for employment law compliance and reducing organizational liability.
Attorney / Investigator
HR
AI-Assisted
Decision Point
Corporate / M&A
M&A Due Diligence Process
Legal due diligence workflow from LOI through findings report. AI has dramatic impact on bulk document review — cutting review times by up to 75% on large data rooms.
Attorney
Paralegal / Associate
AI-Assisted
Client / Deal Team
Decision Point

Public legal datasets attorneys and legal professionals can use to build AI skills — without risking client confidentiality. One of the biggest blockers for learning AI in a legal context is not having safe data to practice on. These datasets solve that.

Disclaimer: Always check copyright status and licensing terms before using any dataset in a commercial product. I'm not an IP lawyer, and this is a fast-moving area. If you have specific questions about copyright status or licensing for your use case, consult one.

Credit: KL3M (Katz, Bommarito & Bommarito) — this organization framework is drawn from the KL3M Data Project, which proposes a three-part IP test for evaluating dataset copyright risk: government works, public domain, and permissively licensed. A rigorous and useful framework before building anything production-grade. Read the whitepaper on SSRN →

Government Works — Not Subject to Copyright
U.S. Case Law
Caselaw Access Project (Harvard)
6.7 million U.S. court decisions spanning 360 years of legal history, digitized by Harvard Law School. All state and federal courts through 2020. CC0 licensed — completely free to use.
6.7M decisions 360 years CC0 License
case.law →
U.S. Case Law — API
CourtListener (Free Law Project)
Full-text federal and state opinions with a robust API for building on top of real decisions. One of the most developer-friendly legal data sources available.
Federal & State Full-text API
courtlistener.com →
Federal Court Decisions
GovInfo
Official federal court opinions from the U.S. Government Publishing Office. Authoritative primary source with an API connector for structured access.
Official / GPO Federal Courts API
govinfo.gov →
Federal Regulations
Federal Register
The official daily journal of the U.S. government — proposed rules, final rules, notices, and presidential documents. Bulk data available via API going back decades.
Rulemaking API Free / Public
federalregister.gov →
Federal Regulations
Regulations.gov
Regulatory materials and public comments from federal rulemaking dockets. Covers hundreds of agencies and millions of documents. API available.
Rulemaking Dockets Public Comments API
regulations.gov →
Government Contracts
GAO Bid Protest Decisions
5,000+ bid protest decisions from the Government Accountability Office, structured and ready to use. Great for procurement law and government contracts work.
5,000+ decisions Procurement Structured
gao.gov →
Government Contracts
CBCA Decision Dataset
Civilian Board of Contract Appeals decisions covering government contract claims and disputes. A niche but valuable dataset for federal contracting and claims work.
Contract Claims Federal Public
cbca.gov →
International Criminal Law
ICC Case Transcripts
Hearing transcripts from the International Criminal Court, plus access to 6,000+ legal findings extracted from judgments, decisions, and orders since 2004. Covers genocide, war crimes, and crimes against humanity.
6,000+ findings Since 2004 Public
icc-cpi.int →
Public Domain
IP — Patents
USPTO Patents
Full text of U.S. patents, published as a condition of the patent grant itself. Bulk downloads available by week going back to 1976 — a massive corpus of technical and legal language.
Millions of patents Since 1976 Bulk Download
bulkdata.uspto.gov →
Permissively Licensed
Primary Source — Filings
SEC EDGAR
The raw source behind most contract datasets. Free public access to millions of contracts and filings by public companies. The original well that everyone else draws from.
Millions of filings Free / Public SEC.gov
sec.gov/edgar →
Contracts — Annotated
CUAD & ACORD (Atticus Project)
Two datasets from one non-profit. CUAD has 500+ annotated commercial contracts across 41 clause types. ACORD has 126,000+ expert-rated query-clause pairs for complex clauses like indemnification and limitation of liability.
500+ contracts 41 clause types 126K query pairs
atticusprojectai.org →
Contracts — SEC Filings
LEDGAR
80,000 contract provisions pulled from SEC filings, covering clause types like confidentiality, governing law, indemnification, and more. Ready for NLP and clause classification tasks.
80K provisions SEC filings Hugging Face
View on Hugging Face →
NDAs — Annotated
ContractNLI (Stanford)
607 annotated NDAs from Stanford NLP. Clean, well-structured, and free to use under Creative Commons. Great for NDA review and clause extraction experiments.
607 NDAs CC License Stanford NLP
stanfordnlp.github.io →
Contracts — Large Scale
Stanford MCC (Material Contracts Corpus)
The largest open contract dataset — 1M+ real agreements filed with the SEC between 2000–2023, fully searchable by contract type and party.
1M+ agreements 2000–2023 Stanford Law
mcc.law.stanford.edu →
Multi-Dataset Bundle
LexGLUE
A bundle of multiple legal NLP datasets in one place, including LEDGAR and UNFAIR-ToS (terms of service annotations). Good one-stop shop for benchmarking and experimentation.
Multiple datasets Benchmark Hugging Face
View on Hugging Face →
Community-Sourced

These datasets were shared by other attorneys and fall outside the KL3M framework above. Verify licensing and copyright status independently before use.

EU Legislation — Bulk Download
EUR-Lex Data Dump
Bulk download of all EU legal acts (CELEX sector 3) currently in force, available per language. Requires a free EU login account. Great for cross-border regulatory research, multilingual legal NLP, and EU compliance work.
EU legislation Multilingual Free (EU login)
datadump.publications.europa.eu →
eDiscovery — Email
EDRM Enron Email Dataset v2
The gold standard email dataset for eDiscovery research. Contains Enron corporate emails with relevance assessments for legal responsiveness. Used in the TREC 2010 Legal Track for benchmarking predictive coding and document classification.
159 files TREC Legal Track eDiscovery
TREC Legal Track →

Legal tools built with AI-assisted coding — by attorneys, legal engineers, and legal ops professionals. Proof that legal professionals can build their own tools.

My Projects
Litigation
Court Filing Analyzer
A Python program that analyzes court filings to automatically extract key information including parties, court details, procedural history, and litigation impact.
Python AI Extraction Claude Code
View on GitHub →
Litigation
Court Decision Extractor
Extracts structured background information and reasoning from court decisions using AI and outputs the data to a professional Excel spreadsheet.
Python Excel Output Claude Code
View on GitHub →
Compliance / Training
Witness Interview Simulator
A stateful AI-powered simulation engine for training lawyers and compliance teams in high-stakes regulatory investigations. Practice interviews before the real thing.
TypeScript AI Simulation Claude Code
View on GitHub →
Legal Ops / KM
Legal Tool Vetting Assistant
A React app for law firm knowledge managers to evaluate, classify, and approve new legal technology tools — with AI-powered vendor document analysis.
React / JavaScript AI Analysis Claude Code
View on GitHub →
Billing / Legal Ops
Legal Timesheet Reviser
A web-based tool that automatically reviews and corrects legal timesheet entries according to firm style guidelines. No more billing write-downs from sloppy descriptions.
HTML/CSS/JS AI Review Claude Code
View on GitHub →
eDiscovery
ESI Protocol Generator
An AI skill that generates defensible, matter-specific ESI discovery protocols. Tailored to case type, jurisdiction, and data sources involved.
AI Skill eDiscovery Claude Code
View on GitHub →
Networking
Conference Catch-Me Game
A conference networking tool that replaces formal meeting scheduling. Attendees find you IRL and "catch" you by tapping a button — built with Firebase Realtime Database and a trading card UI.
HTML/CSS/JS Firebase Claude Code
Content Automation
AI Legal Weekly — Automated Newsletter
Automated LinkedIn newsletter pipeline: searches for legal AI news, generates a weekly issue, and publishes via LinkedIn API — runs on a schedule with zero manual intervention.
Python LinkedIn API Claude Code
Just for Fun
Attorney Joke Bot
Weekly AI-generated attorney jokes posted to LinkedIn via GitHub Actions. Because legal tech doesn't have to be serious all the time.
Python GitHub Actions Claude Code
View on GitHub →
Community Resources

Platforms where legal professionals are sharing AI-built tools, skills, and projects. If you're building in this space, these are your people.

Lawyer-Coder Network
LegalQuants
An invitation-only directory of 65+ lawyers who code and build legal technology tools. Members showcase projects ranging from contract redlining to regulatory tracking to litigation support — all built by practicing attorneys. Founded by Jamie Tso and Raymond Sun.
Directory Lawyer-Coders Open Source
Visit legalquants.com →
AI Skills Hub
Lawvable
A hub for discovering, sharing, and creating AI agent skills for legal work. Pre-built skills include NDA review, vendor due diligence, and compliance policy advising — all built by legal professionals. Works with Claude, ChatGPT, and Gemini. Created by Antoine Louis and Malik Taiar.
AI Agent Skills Claude ChatGPT Gemini
Visit lawvable.com →
Community Platform
vibecode.law
An open community for legal professionals who build with AI. Features a project leaderboard, VibeAcademy learning hub, inspiration challenges, and a showcase of dozens of AI-powered legal tools — from contract analyzers to regulatory intelligence platforms.
Project Showcase Leaderboard Learning Hub
Visit vibecode.law →