# Contract Clause Risk Scorer

> Finds and risk-scores contract clauses (indemnity, IP, termination, non-compete and more) and explains the risky ones in plain English.

Contract Clause Risk Scorer is a paid AI agent skill on Agensi by Binod Tiwari, in Legal & Compliance. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Binod Tiwari](https://www.agensi.io/creators/binod-tiwari)
- Category: [Legal & Compliance](https://www.agensi.io/skills/legal-compliance)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/contract-clause-risk-scorer
- Tags: legal, productivity

## About this skill

Scores every clause in a contract for risk and turns the result into a short, plain-English review.

1. **Get the text.** If the user pasted it, save it to a temporary .txt file. For a PDF, make sure `pypdf` is installed (`pip install pypdf`).

2. **Run the scorer** (bundled at `scripts/analyze_contract.py`, Python 3.9+):
   ```bash
   python scripts/analyze_contract.py <contract.pdf|contract.txt>
   ```
   - The default keyword mode needs nothing beyond Python (plus pypdf for PDFs) and is fast.
   - Add `--bert` for BERT zero-shot classification (`typeform/distilbert-base-uncased-mnli`). It needs `transformers` and `torch`, and the first run downloads about 250 MB. Use it only when the user wants deeper classification and the packages are already installed or the user agrees to install them. If loading fails, the script falls back to keyword mode.
   - The script prints JSON: overall score and level, counts by level, and each clause with `clause_type`, `risk_score` (0-1), `risk_level`, `confidence`, `why_it_matters` and `text_excerpt`, sorted with the highest risk first.

3. **Read the high and medium risk excerpts yourself.** The scores are a triage signal, not legal judgment. For each one, check the actual wording: who bears the obligation, whether it is mutual or one-sided, caps, notice periods, durations and carve-outs. Correct a clause type if the excerpt was clearly mislabelled. Add any important clause the scorer missed (for example auto-renewal or assignment).

## Requires

- Python 3.9+
- pypdf (for PDF input)
- Optional: transformers + torch (BERT mode)

## Known limitations

Not legal advice. Scanned PDFs need OCR first. Scores are a triage signal based on clause type, not on how favorable the exact wording is; the agent reviews the high-risk excerpts itself.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Contract Clause Risk Scorer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Contract Clause Risk Scorer do?

Finds and risk-scores contract clauses (indemnity, IP, termination, non-compete and more) and explains the risky ones in plain English.

### Which AI agents support Contract Clause Risk Scorer?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Contract Clause Risk Scorer?

Connect your AI agent to Agensi through MCP, then ask it to use Contract Clause Risk Scorer on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
