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

Search firm knowledge bases, document repositories, and legal precedent libraries for relevant prior agreements, templates, clauses, memoranda, court filings, transaction documents, and legal positions.

Search firm knowledge bases, document repositories, and legal precedent libraries for relevant prior agreements, templates, clauses, memoranda, court filings, transaction documents, and legal positions. Use when drafting new contracts and need proven language, advising clients on recurring legal issues and need prior advice letters, evaluating counterparty positions against prior deals, building or refreshing a clause library, or identifying subject matter experts within the organization. Covers semantic search by legal concept (not just keyword), multi-dimensional filtering (jurisdiction, counterparty, matter type, practice area, date range, document type), precedent applicability assessment, currency and staleness evaluation, conflicting-positions detection, subject matter expert identification, and privilege and confidentiality handling. Produces a ranked precedent digest with four-dimensional confidence scoring (Relevance, Currency, Reusability, Consensus), key excerpts, applicability assessment, reuse recommendations with adaptation guidance, conflict flags, and a Glass Box audit trail. Jurisdiction-agnostic with localization markers. Related: legalcode-contract-review, legalcode-clause-library-manager, legalcode-contract-comparison, legalcode-matter-triage-workflow.

This skill searches firm knowledge bases, document repositories, and legal precedent libraries to surface relevant prior work product and institutional expertise. It supports both targeted searches (find the best precedent for this specific clause) and broad landscape searches (what positions has the firm taken on limitation of liability in SaaS agreements over the past three years?). The skill evaluates every retrieved precedent on four independent dimensions — relevance to the current matter, currency of the underlying law and market practice, reusability of the language, and degree to which it represents settled firm consensus. It surfaces contradictory positions across matters without assuming which is correct. It applies privilege and confidentiality protocols before returning results. It identifies subject matter experts who have worked on similar matters. Where no internal precedent exists, it flags the gap and suggests external sources or alternative research paths. **Covers:** - Semantic search by legal concept (finds conceptually similar precedents even when terminology differs) - Multi-dimensional filtering: document type, matter type, jurisdiction, counterparty, practice area, date range, deal size - Four-dimensional confidence scoring (Relevance, Currency, Reusability, Consensus) per precedent - Currency and staleness evaluation (legal staleness vs. market-practice staleness vs. firm-position staleness) - Conflicting positions detection and surface-without-resolution ...

## Jurisdictions

Global



---
*Legalcode -- legalcode.md*
