# legal-document-analyzer

This skill reviews contracts, detects risks, and checks compliance. Use it when an agent must process PDF, DOCX, or plain-text legal documents.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1200 installs · ★ 46
- Author: qodex-ai
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/qodex-ai/ai-agent-skills/tree/HEAD/skills/legal-document-analyzer/SKILL.md
- Updated: 2026-01-05
- HTML: https://affpapa.org/en/nevibecode/skills/legal-document-analyzer

## What it does

The skill parses PDF, DOCX, and text files, then structures sections, clauses, definitions, parties, and dates. It can classify contracts such as NDAs, employment agreements, service contracts, purchases, and leases. Key terms, renewal rules, payments, performance measures, duties, rights, and liabilities are extracted.

Risk checks cover financial exposure, unclear language, conflicting clauses, operational issues, and compliance topics such as GDPR and data protection. The workflow can also research laws for a contract type and jurisdiction, regulatory duties, case law, and established precedents.

A report can present the extracted terms, obligations, risk assessment, compliance gaps, and recommendations. Document processing names `pypdf`, `python-docx`, `textract`, and OCR libraries. Major issues still call for legal counsel.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install qodex-ai/ai-agent-skills legal-document-analyzer
```

2. **Manually: put the files in place**
- File: `.github/skills/legal-document-analyzer/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/qodex-ai/ai-agent-skills --path skills/legal-document-analyzer
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -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/qodex-ai/ai-agent-skills/tree/HEAD/skills/legal-document-analyzer/SKILL.md

## When to use it
- parse a PDF, DOCX, or text document
- extract parties, dates, and contract terms
- spot financial and legal exposure
- check required clauses and compliance gaps
- produce a contract review report

## Example prompts
- Review `contract.pdf`, identify the parties and dates, and list its obligations and risks.
- Classify `service_agreement.docx` and extract payment, renewal, and liability terms.
- Check this contract for GDPR compliance and write a report on missing requirements.

## Similar
- [grill-with-docs](https://affpapa.org/en/nevibecode/skills/grill-with-docs.md) — skill · 1219756 installs
- [skill-creator](https://affpapa.org/en/nevibecode/skills/skill-creator.md) — skill · 414180 installs
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [handoff](https://affpapa.org/en/nevibecode/skills/handoff.md) — skill · 1038491 installs
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [domain-modeling](https://affpapa.org/en/nevibecode/skills/domain-modeling.md) — skill · 876391 installs

From the same set: [qodex-ai/ai-agent-skills](https://affpapa.org/en/nevibecode/by/qodex-ai/ai-agent-skills.md) — 6 cards

---
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
