Atlas / Skills / brycewang-stanford / Opencontracts Guide

Opencontracts GuideSAFE

skills/brycewang-stanford/opencontracts-guide

🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
—
Hosts
1 documented
License
NOASSERTION
Stars
4,537
01

Overview

🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.

Read from source at commit e1ba289846fdOBSERVED · 2026-10-08
02

Install

Commands as the repository documents them. They are shown, not run.

git clone https://github.com/Open-Source-Legal/OpenContracts.git
03

Host compatibility

What the documentation claims. We have not run a compatibility test.

HostStatusNotes
openclawmentioned
04

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: opencontracts-guide
description: "Legal document annotation, versioning, and analysis platform"
metadata:
  openclaw:
    emoji: "📋"
    category: "domains"
    subcategory: "law"
    keywords: ["legal documents", "contract annotation", "document versioning", "legal AI", "NLP legal", "MCP"]
    source: "https://github.com/Open-Source-Legal/OpenContracts"
---

# OpenContracts Guide

## Overview

OpenContracts is an open-source platform for legal document annotation, versioning, and analysis. It provides collaborative annotation tools for legal text, version tracking across document drafts, NLP-powered clause extraction, and integration with AI agents via MCP. Designed for legal researchers, law firms, and teams managing large document collections that need structured annotation and analysis.

## Installation

```bash
# Docker deployment
git clone https://github.com/Open-Source-Legal/OpenContracts.git
cd OpenContracts
docker-compose up -d

# Access at http://localhost:3000
```

## Core Features

### Document Management

```python
from opencontracts import Client

client = Client("http://localhost:3000")

# Upload documents
doc = client.upload(
    file="contract.pdf",
    metadata={
        "type": "NDA",
        "parties": ["Company A", "Company B"],
        "date": "2025-01-15",
        "jurisdiction": "Delaware",
    },
)

# Version tracking
versions = client.get_versions(doc.id)
for v in versions:
    print(f"v{v.number}: {v.date} — {v.changes_summary}")

# Compare versions
diff = client.compare_versions(doc.id, v1=1, v2=3)
for change in diff.changes:
    print(f"[{change.type}] Section {change.section}: "
          f"{change.description}")
```

### Annotation

```python
# Create annotation project
project = client.create_project(
    name="NDA Clause Analysis",
    documents=[doc.id],
    label_set=[
        "confidentiality_scope",
        "term_duration",
        "exclusions",
        "remedies",
        "governing_law",
        "dispute_resolution",
    ],
)

# Add annotations
client.annotate(
    document_id=doc.id,
    annotations=[
        {
            "start": 1250, "end": 1480,
            "label": "confidentiality_scope",
            "note": "Broad definition including derivatives",
        },
        {
            "start": 2100, "end": 2250,
            "label": "term_duration",
            "note": "5-year term with auto-renewal",
        },
    ],
)
```

### NLP Analysis

```python
# Automated clause extraction
clauses = client.extract_clauses(
    doc.id,
    clause_types=[
        "indemnification",
        "limitation_of_liability",
        "termination",
        "force_majeure",
        "assignment",
    ],
)

for clause in clauses:
    print(f"\n[{clause.type}] (confidence: {clause.confidence:.2f})")
    print(f"  Location: p.{clause.page}, para {clause.paragraph}")
    print(f"  Text: {clause.text[:100]}...")

# Risk assessment
risks = client.assess_risks(doc.id)
for risk in risks:
    print(f"[{risk.severity}] {risk.clause}: {risk.description}")
```

### MCP Integration

```json
{
  "mcpServers": {
    "opencontracts": {
      "command": "npx",
      "args": ["@opencontracts/mcp-server"],
      "env": {
        "OPENCONTRACTS_URL": "http://localhost:3000"
      }
    }
  }
}
```

## Search and Analytics

```python
# Full-text search across documents
results = client.search(
    query="indemnification unlimited liability",
    document_types=["NDA", "MSA"],
    date_range=("2024-01-01", "2025-12-31"),
)

# Analytics
stats = client.analytics(project_id=project.id)
print(f"Documents annotated: {stats.docs_complete}")
print(f"Total annotations: {stats.total_annotations}")
print(f"Inter-annotator agreement: {stats.agreement:.2f}")
print(f"Most common clause: {stats.top_clauses[0]}")
```

## Use Cases

1. **Contract review**: Systematic clause analysis and risk assessment
2. **Legal research**: Annotate case law and legislation
3. **Compliance**: Track regulatory document requirements
4. **Training data**: Build labeled datasets for legal NLP
5. **Due diligence**: Structured review of deal documents

## References

- [OpenContracts GitHub](https://github.com/Open-Source-Legal/OpenContracts)
- [Legal NLP Resources](https://github.com/thunlp/LegalPapers)
05

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (0)

No findings outside the package's declared scope.

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha e1ba289846fdfull audit observations/trust-audit/skill/brycewang-stanford__opencontracts-guide.json · Report an issue / request a re-scan
06

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-08e1ba289846fdSAFEB89first audit
07

Questions

What does the Opencontracts Guide skill do?

🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.

Is Opencontracts Guide safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Opencontracts Guide access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

Which assistants does Opencontracts Guide work with?

Its documentation mentions openclaw. That is what the text claims, not a compatibility test we ran.

How current is this page?

The grade is for one exact copy of the source (e1ba289846fd), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement