clause-extraction

Extract predefined contract clauses from PDF and DOCX files with page and character span citations.

Updated May 2, 2026
One-click install
npx skills add https://github.com/marius-bughiu/ooligo --skill clause-extraction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clause-extraction
Source: https://github.com/marius-bughiu/ooligo/tree/main/apps/web/public/artifacts/clause-extraction-claude-skill
Command: npx skills add https://github.com/marius-bughiu/ooligo --skill clause-extraction

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manually extracting key contract clauses from PDF and DOCX files is time-consuming, error-prone, and lacks auditable citations for downstream legal operations like CLM backfill, deal diligence, and clause library building.

Core Features & Use Cases

  • Citation-grounded clause extraction: Pulls predefined contract clauses (governing law, liability cap, term, indemnification, etc.) from PDF and DOCX files with page and character span citations for full verifiability.
  • Legal ops use cases: Supports CLM metadata backfill for legacy contract repositories, pre-deal diligence to surface high-risk terms like change-of-control and liability clauses, and building centralized clause libraries that reflect actual agreed terms across a portfolio.
  • Built-in guardrails: Enforces byte-identical excerpt checks to prevent hallucinations, rejects scanned PDFs without OCR layers to avoid false "not present" results, restricts execution to approved Tier-A AI endpoints to prevent privilege leaks, and validates output against a pinned JSON schema to avoid downstream pipeline breakage.

Quick Start

Use the clause-extraction skill to extract all required MSA clauses from the uploaded contract 'acme_vendor_agreement.pdf' and generate a validated JSON record with page-level citations for CLM metadata backfill.

Frequently Asked Questions about clause-extraction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract contract clauses from PDF files with page-level citations for CLM backfill?

To extract contract clauses from PDF files with page-level citations, you parse predefined terms like governing law and liability caps while generating character span references. This provides verifiable grounding for CLM metadata backfill and ensures legal diligence accuracy without manual review.

Does clause extraction work with scanned PDFs that lack an OCR layer?

Clause extraction does not work with scanned PDFs lacking an OCR layer. The process rejects these files to prevent false "not present" results, ensuring byte-identical excerpt grounding and avoiding hallucinated contract metadata during legal diligence.

What is the best way to surface high-risk terms like change-of-control clauses during pre-deal diligence?

The best way to surface high-risk terms like change-of-control clauses during pre-deal diligence is to automate extraction from PDF and DOCX files with validated JSON schemas. This enforces byte-identical excerpt checks to prevent hallucinations and provides auditable character span citations.

Can I use automated contract extraction to build a centralized clause library across enterprise portfolios?

You can use automated contract extraction to build a centralized clause library across enterprise portfolios by pulling predefined clauses from DOCX and PDF files. It validates output against a pinned JSON schema, ensuring downstream pipeline stability and reflecting actual agreed terms.

How does byte-identical excerpt grounding prevent hallucinations in legal contract extraction?

Byte-identical excerpt grounding prevents hallucinations in legal contract extraction by enforcing exact character span matching against the source PDF or DOCX text. This ensures extracted clauses are verifiable, auditable, and safe for downstream legal operations without privilege leaks.

What file formats are supported for extracting legal metadata and indemnification clauses?

PDF and DOCX are the supported file formats for extracting legal metadata and indemnification clauses. The process outputs validated JSON records with page-level citations, specifically rejecting scanned PDFs without OCR layers to maintain extraction accuracy.