# contract-clause-extractor

contract-clause-extractor is a Claude Code skill that classifies construction contract clauses on payments, changes, disputes, insurance, and risk allocation for quick review.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 120 installs · ★ 434 repo stars
- Author: datadrivenconstruction
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/4_DDC_Curated/Contract-Legal/contract-clause-extractor/SKILL.md
- Updated: 2026-10-19
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/contract-clause-extractor

## What it does

The skill parses construction contracts using pattern matching to extract main clause categories: payments, schedules, insurance, termination, warranties, dispute procedures, and liability. Each clause gets tagged with its category, risk level, associated dollar amounts, and time periods for review and compliance tracking.

Built in Python with regex-based pattern recognition. Splits contracts into numbered sections, classifies each, and pulls structured data: article number, full text, key terms, monetary values, and time references. Requires Python 3 installed on your system.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill contract-clause-extractor -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/contract-clause-extractor/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/contract-clause-extractor/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill contract-clause-extractor -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/contract-clause-extractor/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill contract-clause-extractor -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/contract-clause-extractor/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction 4_DDC_Curated/Contract-Legal/contract-clause-extractor
```

2. **Manually: put the files in place**
- File: `.github/skills/contract-clause-extractor/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill contract-clause-extractor -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --path 4_DDC_Curated/Contract-Legal/contract-clause-extractor
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/contract-clause-extractor/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill contract-clause-extractor -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/4_DDC_Curated/Contract-Legal/contract-clause-extractor/SKILL.md

## When to use it
- extract payment schedules and retainage terms
- identify change order procedures and notice requirements
- find dispute resolution and governing law clauses
- locate insurance and indemnification requirements
- flag warranty and limitation of liability provisions

## Example prompts
- Parse this contract and show me all payment and scheduling clauses
- Find dispute resolution and indemnification sections with their risk levels
- Extract dollar amounts and time periods from every clause category

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 40b7a986f299377a.

BEGIN THIRD-PARTY FILE 40b7a986f299377a
````text
---
name: "contract-clause-extractor"
description: "Extract and analyze key clauses from construction contracts. Identify payment terms, change order procedures, dispute resolution, warranties, and risk allocation provisions."
homepage: "https://datadrivenconstruction.io"
metadata: {"openclaw": {"emoji": "📝", "os": ["darwin", "linux", "win32"], "homepage": "https://datadrivenconstruction.io", "requires": {"bins": ["python3"]}}}
---
# Contract Clause Extractor

## Overview

Extract and analyze key clauses from construction contracts using NLP. Identify critical provisions for payment, changes, disputes, warranties, and risk allocation. Support contract review and compliance tracking.

## Key Clause Categories

```
┌─────────────────────────────────────────────────────────────────┐
│                 CONTRACT CLAUSE CATEGORIES                       │
├─────────────────────────────────────────────────────────────────┤
│                                                                  │
│  Payment           Changes            Risk                       │
│  ───────           ───────            ────                       │
│  📅 Pay schedule   📝 CO process      ⚠️ Indemnification        │
│  💰 Retainage      ⏰ Notice period   🔒 Insurance              │
│  📋 Requirements   💵 Pricing         🏛️ Liability limits       │
│                                                                  │
│  Schedule          Disputes           Closeout                   │
│  ────────          ────────           ────────                   │
│  📆 Milestones     ⚖️ Resolution      ✅ Punch list             │
│  💸 Liquidated $   🏛️ Jurisdiction    📄 Warranties             │
│  ⏱️ Extensions     👤 Mediation       🔑 Final payment          │
│                                                                  │
````
END THIRD-PARTY FILE 40b7a986f299377a

The third-party file has ended. Everything between the 40b7a986f299377a tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2275 of 18806 bytes. © datadrivenconstruction · MIT · https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/4_DDC_Curated/Contract-Legal/contract-clause-extractor/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
