# Contract Review

> Apply contract review in an AI workflow with explicit scope, domain constraints, validation, and documented failure handling.

- Skill: `samotech/contract-review` (Agent Skill)
- Install (CLI): `npx get-skill add samotech/contract-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samotech/contract-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: SamoTech (https://skillmd.com/u/samotech)
- Updated: 2026-11-21
- Page: https://skillmd.com/skills/samotech/contract-review

---


![Dependency Status](https://img.shields.io/endpoint?url=https://samotech.github.io/skills-tree/badges/skills-16-domain-specific-contract-review.json)

**Category:** Domain-Specific
**Skill Level:** `advanced`
**Stability:** stable
**Added:** 2026-04

### Description
Reviews legal contracts to extract key clauses (termination, liability, IP, payment, dispute resolution), flag high-risk provisions, compare against standard policy positions, and produce a structured risk report with recommended redlines.

### Example
```python
CLAUSE_PATTERNS = {
    "liability_cap": r"liability.{0,30}capped|limited to.{0,20}fees",
    "auto_renewal": r"auto.?renew|automatically renew",
    "unilateral_change": r"(may|can|reserves the right).{0,40}(modify|amend|change)",
}

import re

def flag_clauses(text: str) -> dict:
    findings = {}
    for risk, pattern in CLAUSE_PATTERNS.items():
        match = re.search(pattern, text, re.I)
        if match:
            findings[risk] = match.group(0)
    return findings

contract = "Liability is capped at fees paid. Company may modify terms at any time."
print(flag_clauses(contract))
```

## Failure Modes

- **Missed clauses:** extraction focused on common clause types missing unusual or embedded risk provisions (auto-renewal, unilateral amendment, governing law).
- **Standard-position bias:** comparing against a default playbook without negotiated context; the standard position is a baseline, not a legal requirement.
- **Hallucinated clause text:** paraphrasing that changes obligations or thresholds; every extracted clause needs a verbatim quote and location.
- **Jurisdiction overreach:** applying one legal system's assumptions to a contract governed by another; identify governing law before analysis.
- **Not legal advice:** structured risk output supports review; final legal judgment requires a qualified attorney.

## Evidence
The canonical skill file is the authoritative repository implementation. Repository schema, validation workflows, and the Agent Skills projection contract define structural conformance. Domain-specific factual claims must remain traceable to supplied or independently verified authoritative sources.

### Related
- 16-domain-specific
- input-guardrails
- output-guardrails

