Use case
Build a Contract Review Agent
Read legal contracts, flag non-standard clauses, summarize obligations, and surface risk items for attorney review.
Legal review bottlenecks close deals and delay vendor onboarding. Most contracts follow predictable structures, which means an agent can handle the first-pass read: finding the liability cap, spotting auto-renewal language, flagging missing indemnification limits, and summarizing the core obligations. The agent does not replace attorney judgment, but it removes the hour spent extracting the right clauses so the attorney can spend that time on the two genuinely unusual provisions. This stack handles PDF ingestion, clause detection, and structured output for attorney handoff.
The stack
Each pick is a real entry on the index. Click any one for the full detail page.
- 1A Agents Clause Detection + Risk Flagging
Claude Code
by Anthropic
Why this: Claude Code reads the full contract text and identifies specific clause types, compares them against a reference playbook, and flags deviations. It handles multi-page contracts with cross-references and defined terms better than keyword extraction.
Full entry - 2M MCP Contract + Risk Store
Supabase MCP Server
by Supabase
Why this: Supabase stores the raw contract, extracted clause records, and risk flags with severity ratings. Attorneys can query the database to find all contracts with a particular risk type across a portfolio rather than reading reports one by one.
Full entry - 3O OSS Playbook Knowledge Base
Anything LLM
by Community
Why this: AnythingLLM ingests the legal team's standard positions and fallback positions as a knowledge base. The review agent retrieves the relevant standard clause text before comparison, so risk flags are grounded in the actual playbook rather than general legal knowledge.
Full entry - 4S Skills Document Processing
Claude API Skill
by Anthropic
Why this: The Claude API skill handles long-context contracts that exceed typical prompt limits by managing the chunking and context assembly before the main extraction pass. It also handles scanned PDFs via vision when digital text extraction fails.
Full entry - 5S Skills Clause Research
Deep Research Skill
by Community
Why this: For unfamiliar clause types or jurisdiction-specific provisions, the research skill pulls relevant legal context before the agent makes a risk determination. This reduces false positives on clauses that are standard in a given jurisdiction but unusual in others.
Full entry
Get this running with Enterprise DNA.
Enterprise DNA stores the legal playbook as an OPM knowledge asset tied to the contract review project, versioned in the repository so attorneys can update standard positions without touching the agent code. The agent reads contract files from the Supabase Storage bucket and writes risk reports back to the same project, giving the team a complete audit trail from upload through attorney sign-off. Infisical manages the API credentials so the review pipeline runs in CI without hardcoded secrets.
Get the Stack Blueprint
A printable architecture card with every tool, role, and rationale on one page.
Enter your email. We send one useful update per week. Unsubscribe any time.
In the print dialog, choose "Save as PDF" as the destination.
Alternative stacks
Different angles on the same outcome.
Build a Document Intelligence Pipeline
If the goal is extracting specific fields from contracts at volume rather than risk analysis, the document intelligence stack is more appropriate.
See the alternative AlternativeBuild a RAG Pipeline
The playbook knowledge base in this stack is a specialized RAG system. The RAG pipeline guide covers the infrastructure for building it.
See the alternativeOther use cases
More curated stacks from the index.
Build a customer support agent
A working customer-support agent that triages tickets, answers from your docs, and escalates with full context.
See the stack Use caseBuild a research agent
An agent that watches sources, synthesises findings, and ships you a briefing on the days something matters.
See the stack Use caseBuild a sales outreach agent
An outreach agent that drafts personal-feeling email, qualifies replies on the phone, and updates the CRM without anyone copy-pasting notes.
See the stack