# Precedent analyzer
> Source: https://legalcode.md/skills/legalcode-precedent-analyzer | [HTML version](https://legalcode.md/skills/legalcode-precedent-analyzer)

Analyzes completed deal corpora — contract archives, CLM exports, closing binders, or raw document folders — to extract standard positions, negotiation outcomes, client preferences, clause evolution trends, and market deviations.

Analyzes completed deal corpora — contract archives, CLM exports, closing binders, or raw document folders — to extract standard positions, negotiation outcomes, client preferences, clause evolution trends, and market deviations. Use when a legal team wants to mine institutional knowledge from historical deals, generate or refresh a negotiation playbook backed by real data, understand win/loss rates on specific clause positions, identify client preference profiles from recurring counterparties, benchmark the firm's standard positions against market norms, or track how clause language has shifted over time. Triggers on phrases such as "analyze our prior deals," "what do we usually agree on for limitation of liability," "build a playbook from our contracts," "show me our win rate on indemnification caps," "how has our limitation clause evolved," "what do clients typically push back on," "mine our contract history," or "benchmark our positions against market." Produces a statistical term frequency matrix, position classification playbook (BASELINE/FALLBACK/ESCALATE/RED-LINE), negotiation outcome report, clause evolution timeline, client preference profiles, and a market gap analysis. Distinct from legalcode-precedent-search (which retrieves a single precedent for a current matter) — this skill operates on the entire corpus to extract population-level intelligence. Jurisdiction-agnostic with [JURISDICTION-SPECIFIC] markers. Related: legalcode-contract-playbook-builder, legalcode-precedent-search, legalcode-contract-review, legalcode-contract-metadata-extractor.

This skill mines a corpus of completed deals to surface institutional knowledge that is typically locked in individual attorneys' memories, scattered across document management systems, or buried in closing binders. It transforms raw deal history into actionable analytics: which positions the firm routinely wins, which it concedes, where clients push back, how language has evolved, and where the firm's positions diverge from market. **Covers:** - Corpus ingestion and inventory (files, folders, CLM exports, metadata spreadsheets) - Clause-level extraction: identifying and classifying major clause types across all documents - Statistical term frequency analysis: prevalence rates, deviation frequencies, position distributions - Position classification matrix (BASELINE / FALLBACK / ESCALATE / RED-LINE) - Negotiation outcome analysis: win/concession/compromise rates by clause type and counterparty - Client preference profiling: clustering preferences by counterparty type, industry, deal size - Clause evolution tracking: time-series analysis of how positions and language have shifted - Market gap analysis: where firm positions deviate from published benchmarks - Playbook generation: standard positions, fallback language, red lines, and rationale **Does not:** - Retrieve a single specific precedent for immediate reuse (see `legalcode-precedent-search`) - Draft new contracts from scratch (see `legalcode-contract-playbook-builder` and type-specific drafting skills) - Provide legal advice or replace qualified counsel ...

## Jurisdictions

Global



---
*Legalcode -- legalcode.md*
