Agent skill

Opencontracts Guide

by wentorai in wentorai/research-plugins

Legal document annotation, versioning, and analysis platform

MITAuto-check passedLegal & Compliance

Install Opencontracts Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill opencontracts-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins opencontracts-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/domains/law/opencontracts-guide .claude/skills/opencontracts-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
opencontracts-guide
GitHub stars
298
Used in
1 other repo
Token cost
~1.1k tokens
SKILL.md length
117 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Legal document annotation, versioning, and analysis platform

  • Works in 5 steps: Contract review: Systematic clause… → Legal research: Annotate case law and… → Compliance: Track regulatory document… → …
  • Tasks that involve Policy and terms drafting
  • SKILL.md covers Overview, Installation, Core Features and Search and Analytics, plus 2 more sections
  • Calls git and docker-compose; reaches github.com

What it does

Opencontracts Guide is an agent skill from wentorai/research-plugins. Legal document annotation, versioning, and analysis platform

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Legal & Compliance, covering Policy and terms drafting. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Policy and terms drafting

Example prompts

  • “/opencontracts-guide”

Requirements

  • Python 3
  • Docker

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • docker-compose

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Opencontracts Guide loads about 1.1k tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 117 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 117 words, ~1,065 tokens.

Download SKILL.mdSave it as .claude/skills/opencontracts-guide/SKILL.md (or your agent's skills folder).
name
opencontracts-guide
description
Legal document annotation, versioning, and analysis platform

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

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/domains/law/opencontracts-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Opencontracts Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Opencontracts Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Opencontracts Guide this skillwentorai/research-plugins2981 repos~1.1kAutomated safety check: PassMIT
Master Agreement Generatoraffaan-m/ECC275k—~2.9kAutomated safety check: PassMIT
Pii Contract Analyzegregmos/PII-Shield149—~8.9kAutomated safety check: NotesMIT
Privacy Eukimlawtech/korean-privacy-terms586—~968Automated safety check: PassApache-2.0
Agents In The Teamborghei/Claude-Skills881—~4.2kAutomated safety check: PassMIT
Terms Of Service Generatorzubair-trabzada/ai-legal-claude1.8k—~2.9kAutomated safety check: PassNone

Similar skills

  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    275k GitHub stars~2.9k tokensUpdated 3 days ago
    Legal & ComplianceAuto-check passed
  • Pii Contract Analyze

    gregmos/PII-Shield

    Universal legal document processor with PII anonymization. An agent skill from gregmos/PII-Shield.

    149 GitHub stars~8.9k tokensUpdated 3 mo ago
    Legal & ComplianceAuto-check: notes
  • Privacy Eu

    kimlawtech/korean-privacy-terms

    EU 사용자 대상 서비스용 Privacy Notice·Terms of Service·Consent Modal·Cookie Banner 자동 생성.

    586 GitHub stars~968 tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Agents In The Team

    borghei/Claude-Skills

    Run delivery when AI coding and ops agents take tickets. An agent skill from borghei/Claude-Skills.

    881 GitHub stars~4.2k tokensUpdated yesterday
    Legal & ComplianceAuto-check passed
  • Terms Of Service Generator

    zubair-trabzada/ai-legal-claude

    Generates complete, GDPR/CCPA-compliant Terms of Service for a website or SaaS product, with plain English summaries for each section

    1.8k GitHub stars~2.9k tokensUpdated 6 mo ago
    Legal & ComplianceAuto-check passed
  • Tos Clause Scanner

    zebbern/claude-code-guide

    Audit Terms of Service, user agreements, and privacy policies for consumer risks, producing a structured report that flags unfair clauses, data traps, and liability issues.

    4.7k GitHub starsUsed in 1 repo~3.3k tokens
    Legal & ComplianceAuto-check passed

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Questions about Opencontracts Guide

What does Opencontracts Guide do?

Legal document annotation, versioning, and analysis platform. Opencontracts Guide is an agent skill from wentorai/research-plugins.

When should I use Opencontracts Guide?

Opencontracts Guide fits situations like: tasks that involve Policy and terms drafting.

How do I install Opencontracts Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill opencontracts-guide -a claude-code`. Or copy the skill folder (skills/domains/law/opencontracts-guide in wentorai/research-plugins) into .claude/skills/opencontracts-guide in your project. Claude Code loads it when a task matches its description.

How do I install Opencontracts Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill opencontracts-guide -a codex`. Or copy the skill folder (skills/domains/law/opencontracts-guide in wentorai/research-plugins) into .agents/skills/opencontracts-guide in your project. Codex loads it when a task matches its description.

Can I use Opencontracts Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill opencontracts-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/opencontracts-guide, .gemini/skills/opencontracts-guide, .github/skills/opencontracts-guide and .opencode/skills/opencontracts-guide in your project.

What does Opencontracts Guide need to run?

Going by SKILL.md and its folder, Opencontracts Guide needs the command-line tools its instructions call (git and docker-compose). Our summary lists: Python 3; Docker.

Does Opencontracts Guide access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Opencontracts Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Opencontracts Guide use?

Opencontracts Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Opencontracts Guide use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Opencontracts Guide?

Skills that share tags, products or a category with Opencontracts Guide: Master Agreement Generator (affaan-m/ECC, 275k stars), Pii Contract Analyze (gregmos/PII-Shield, 149 stars), Privacy Eu (kimlawtech/korean-privacy-terms, 586 stars) and Agents In The Team (borghei/Claude-Skills, 881 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Opencontracts Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.