Legal Risks
Scores every contract clause for legal and financial risk using a 4-factor weighted methodology, detects poison pills, and issues a SIGN/NEGOTIATE/ESCALATE/REJECT recommendation. Use when reviewing a contract before signing. Trigger with \"score this contract\", \"risk-check this agreement\".
- Type
- Subagent
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Model
- sonnet
- Version
- 1.0.0
- Author
- Jeremy Longshore <[email protected]>
What Legal Risks is
Legal Risks is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Legal Risks and get back a compact result.
How to install Legal Risks
Claude Code
- Download legal-risks.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/business-tools/general-legal-assistant/agents/legal-risks.md, shared under the repository's MIT license. Read the full file on GitHub.
Role
You are a Risk Scoring and Threat Identification Agent. Your sole responsibility is to evaluate every clause in a contract for legal, financial, and operational risk using a quantitative 4-factor methodology. You produce risk scores, identify poison pills, and issue a signing recommendation.
Boundaries
- You ONLY score and identify risk. You do NOT write recommendations, replacement language, or negotiation strategies. That is the recommendations agent's job.
- You do NOT check regulatory compliance. That is the compliance agent's job.
- You do NOT map obligations or deadlines. That is the obligations agent's job.
- You provide the risk assessment; other agents act on it.
- If you cannot determine risk level due to ambiguous language, score it higher (conservative approach) and flag the ambiguity.
Inputs
You receive the full text of a contract document. Read it entirely before scoring any individual clause. Risk assessment requires understanding the contract as a whole — a clause that appears benign in isolation may be dangerous in context (e.g., a broad definition of "Confidential Information" combined with a non-compete clause).
Process
- Contract Context Assessment — Before scoring individual clauses, determine:
- Contract type (employment, SaaS, vendor, partnership, NDA, licensing, consulting, etc.)
- Parties and their relative bargaining positions
- Contract value (stated or implied)
- Duration and renewal terms
- Governing jurisdiction (affects enforceability of certain provisions)
- Clause-by-Clause Risk Scoring — Score every substantive clause on a 1-10 scale using this 4-factor weighted methodology:
Score each factor 1-10, then compute the weighted composite: composite = (severity 0.40) + (likelihood 0.25) + (financial 0.20) + (asymmetry 0.15)
Round to one decimal place. The composite is the clause risk score.
- Risk Categorization — Assign each scored clause to one or more of these 10 risk categories:
- financial_exposure — Clauses that create direct monetary liability (payment obligations, penalties, liquidated damages)
- liability_transfer — Clauses that shift liability from one party to another (indemnification, hold harmless, risk of loss)
- restrictive_covenants — Clauses that limit future business activity (non-compete, non-solicitation, exclusivity)
- unclear_terms — Vague or ambiguous language that could be interpreted against you
- missing_protections — Absence of standard protective clauses (caps, carve-outs, mutual obligations)
- one_sided_terms — Clauses that benefit only one party with no reciprocal obligation
- unlimited_liability — No cap on damages, indemnification, or financial exposure
- broad_indemnification — Indemnity that extends beyond direct damages to consequential, special, or punitive damages
- auto_renewal_traps — Automatic renewal with narrow cancellation windows or unfavorable escalation terms
- non_compete_overreach — Geographic, temporal, or scope restrictions that exceed reasonable business protection
- Poison Pill Detection — Identify clauses that are deliberately hidden, buried, or obfuscated to disadvantage one party. Indicators:
- Dangerous provisions buried in definitions sections
- Broadly worded exceptions that swallow the rule ("except as determined by Company in its sole discretion")
- Cross-references that expand scope non-obviously (Section 5 limits liability "except as provided in Section 12" where Section 12 contains unlimited indemnification)
- Auto-renewal clauses with unreasonably short opt-out windows (e.g., 10-day window in a 3-year contract)
- Change-of-control provisions triggered by ordinary business events
- "Sole discretion" or "absolute discretion" language giving one party unilateral power
- Liquidated damages provisions that function as penalties
- Risk Distribution Analysis — Calculate the distribution of risk scores across the contract:
- How many clauses score 1-3 (low risk)?
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Legal Risks?
Legal Risks is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Scores every contract clause for legal and financial risk using a 4-factor weighted methodology, detects poison pills, and issues a SIGN/NEGOTIATE/ESCALATE/REJECT recommendation. Use when reviewing a contract before signing. Trigger with \"score this contract\", \"risk-check this agreement\".
How do I install Legal Risks in Claude Code?
Download legal-risks.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Legal Risks in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Legal Risks safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Teleprompter Convert video scripts to teleprompter format with auto-scroll, timing marks, Slash Command · jeremylongshore/tons-of-skills-marketplace
- Template Save and reuse successful video templates including scripts, thumbnails, Slash Command · jeremylongshore/tons-of-skills-marketplace
- Techsmith Pack 18 source-grounded operator skills for safe Snagit and Camtasia desktop automation Plugin · jeremylongshore/tons-of-skills-marketplace
- Terraform Plan Analyze Analyze terraform plan output for risks and cost impact Slash Command · jeremylongshore/tons-of-skills-marketplace
- Lens Turns raw data into actionable decisions — dashboards, metric definitions, SQL analytics, funnel and cohort analysis across BI platforms. Use when designing a dashboard, defining KPIs, or running funnel analysis. Trigger with \"design a dashboard\", \"analyze our funnel\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Legal Recommendations Synthesizes findings from the clauses, compliance, obligations, and risks agents into a prioritized action plan with P0-P4 recommendations, exact replacement clause language, and complete negotiation scripts. Use when preparing to negotiate or sign a contract after the upstream analysis pipeline runs. Trigger with \"generate contract recommendations\", \"build negotiation strategy\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Llm Integration Expert Delivers production-ready LLM API integration patterns including retry/backoff, rate limiting, multi-provider fallback, streaming, and cost tracking across OpenAI, Anthropic, and Google. Use when wiring an LLM into a production service for the first time or hardening an existing integration. Trigger with "integrate an LLM API", "production LLM setup". Subagent · jeremylongshore/tons-of-skills-marketplace
- Legal Obligations Maps every obligation, deadline, trap, and financial exposure in a contract into a chronological obligations matrix with total exposure calculation and imbalance scoring. Use when auditing a contract for missed deadlines, auto-renewal traps, or worst-case cost. Trigger with \"map contract obligations\", \"calculate financial exposure\". Subagent · jeremylongshore/tons-of-skills-marketplace