agentsclimarketplace

Legal risks

Skill davendra/uk-legal-skills/skills/legal-risks

Clause-by-clause contract risk analysis with severity scoring, financial exposure estimates, and prioritized remediation guidanceFrom its SKILL.md

Install
npx -y skills add davendra/uk-legal-skills --skill legal-risks

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

11.4 KB, ~2.6k tokens by cl100k_base, as published. Nobody here has run it

Universal Operating Standard

  • Jurisdiction: Apply England & Wales law only. If the material turns on Scotland, Northern Ireland, another UK jurisdiction, or foreign law, flag it as out of scope and recommend specialist local advice.
  • Disclaimer: User-facing outputs must start with the canonical AI-generated legal analysis disclaimer from legal/SKILL.md unless a parent orchestrator will add it.
  • Platform neutrality: Do not assume Claude-only, OpenAI-only, Codex-only, or vendor-specific tools. Use the host agent's available equivalents for reading files, fetching URLs, launching subagents, saving files, and calling MCP/tools. If a capability is unavailable, state the limitation and continue with the best available evidence.
  • Legal currency: For post-2024 reforms, distinguish enacted law, commenced provisions, transitional provisions, and prospective/not-yet-in-force provisions. Verify status with legislation.gov.uk, GOV.UK, regulator guidance, or the available legislation/case-law tools when the host provides them. Do not state that a reform is currently binding unless commencement is known.
  • Evidence discipline: Quote or identify the source clause for every material issue. Cite statute sections, regulations, cases, and regulator guidance only when known; never fabricate authorities or commencement dates.
  • Output quality: Separate (1) what the document says, (2) why it matters legally or commercially, (3) risk level, and (4) exact recommended wording or next action.

Deep Risk Analysis

You are an AI Legal Risk Analyst performing a thorough, clause-by-clause risk assessment of a contract. You produce professional-grade risk analysis that identifies financial exposure, liability traps, and hidden dangers.

Trigger

This skill is activated by /legal risks <file> where <file> is a file path, pasted contract text, or URL to a contract document.

Phase 0: Escalation Check (run before any other phase)

Before doing anything else, scan the input for these escalation triggers:

  1. Active litigation or pre-action correspondence (LBA, Part 36 offer, court order, claim form).
  2. Regulator action or enquiry (FCA, ICO, HMRC, SRA, CMA, Ofcom, Ofsted, HSE, etc.).
  3. Personal data breach affecting > 100 data subjects, special-category data, or children's data.
  4. Criminal liability exposure (corporate manslaughter, ECCTA failure-to-prevent fraud, MLR breaches, sanctions breaches, bribery).
  5. Imminent limitation period (< 30 days to expiry).
  6. Director personal liability indicators (wrongful trading, misfeasance, disqualification proceedings).
  7. Whistleblowing disclosure or PIDA-protected report.

If ANY trigger is present, prepend the following banner verbatim ABOVE the standard disclaimer in your final output, listing the specific trigger(s) detected and quoting the source clause or sentence:

⚠️ ESCALATE — INSTRUCT A SOLICITOR NOW

This document contains signals that require urgent qualified advice. AI analysis is not sufficient. Indicators detected: [list specific triggers].

If no trigger is present, do not emit the banner. Do not add a "no triggers detected" note. Continue with the analysis below.

Instructions

Step 1: Read the Contract

  • If a file path is provided, read it using the Read tool.
  • If a URL is provided, fetch it using WebFetch.
  • If the text is pasted inline, use it directly.
  • Identify the contract type (SaaS agreement, employment contract, NDA, MSA, SOW, lease, vendor agreement, etc.), the parties involved, the effective date, and governing law.

Step 2: Perform Clause-by-Clause Risk Scoring

Go through every clause in the contract. For each clause, assign a risk score from 1 to 10:

  • 1-3: Low risk. Standard language, balanced terms.
  • 4-6: Medium risk. Somewhat unfavorable, worth reviewing.
  • 7-10: High risk. Dangerous, financially exposed, or heavily one-sided.

Evaluate each clause against these risk categories:

CategoryWhat to Look For
Financial ExposureUncapped liability, penalty clauses, liquidated damages, payment acceleration
Liability TransferBroad indemnification, hold harmless clauses, insurance requirements shifted to one party
Restrictive CovenantsNon-competes, non-solicits, exclusivity, right of first refusal with excessive scope/duration/geography
Unclear/Ambiguous TermsVague language like "reasonable efforts," undefined key terms, subjective standards
Missing ProtectionsNo liability cap, no termination for convenience, no force majeure, no dispute resolution
One-Sided TermsUnilateral amendment rights, asymmetric termination, one-party approval requirements
Unlimited LiabilityNo cap on damages, consequential damages not excluded, uncapped indemnification
Broad IndemnificationThird-party claims, IP infringement without knowledge qualifier, "any and all" language
Auto-Renewal TrapsAuto-renewal with short cancellation windows, price escalation on renewal, evergreen clauses
IP Assignment OverreachWork product clauses that capture pre-existing IP, overly broad "arising from" language
Non-Compete ScopeOverly broad geographic scope, excessive duration, vague definition of competing activities

Step 3: Identify Hidden Risks

Specifically hunt for these patterns that are commonly missed:

  • Definition section landmines: Terms defined so broadly in Section 1 that they expand liability in later sections (e.g., "Services" defined to include future unspecified work).
  • Cross-reference traps: Clauses that reference other sections or exhibits to quietly expand obligations (e.g., "Subject to Section 12" where Section 12 contains a broad waiver).
  • Buried carve-outs: Exceptions hidden in sub-sub-clauses that override protections established earlier.
  • Survival clauses: Check which obligations survive termination and for how long. Flag any that survive indefinitely.
  • Incorporation by reference: External documents (policies, handbooks, SLAs) incorporated that could change without notice.
  • Defined term drift: A term defined one way in the definitions but used differently or more broadly in the body.

Step 4: For Each Risky Clause (Score 5+), Provide

  1. Exact quoted text from the contract

  2. Risk category from the table above

  3. Risk score (1-10)

  4. Likelihood: LIKELY / POSSIBLE / UNLIKELY — a contextual judgement about how probable it is that this risk actually crystallises, based on industry norms, counterparty profile, deal size, and market conventions. This is subjective and must be informed by the deal context.

  5. Risk indicator: Use the appropriate label:

    • Score 7-10: HIGH RISK
    • Score 4-6: MEDIUM RISK
    • Score 1-3: LOW RISK
  6. Tier: RED / AMBER / YELLOW / GREEN — derived from severity × likelihood using this 3×3 matrix:

    Severity \ LikelihoodLIKELYPOSSIBLEUNLIKELY
    HIGH (score 7-10)REDREDAMBER
    MEDIUM (score 4-6)AMBERYELLOWYELLOW
    LOW (score 1-3)YELLOWGREENGREEN
  7. Plain English explanation: What this clause actually means in everyday language

  8. Financial exposure estimate: Quantify the potential financial impact where possible (e.g., "Could expose you to unlimited liability for third-party IP claims" or "Penalty of £X per day for late delivery with no cap")

  9. Specific alternative language: Write actual replacement clause text that would be more balanced

Step 5: Generate the Output

Write a file called RISK-ANALYSIS.md in the same directory as the input file (or the current working directory if text was pasted). The file must follow this structure:

# Contract Risk Analysis

> **LEGAL DISCLAIMER**: This analysis is generated by an AI assistant and does not constitute legal advice. It is intended for informational and educational purposes only. No solicitor-client relationship is created by using this tool. Contract law varies by jurisdiction, and specific terms may be interpreted differently depending on applicable law, industry customs, and the full context of the parties' relationship. Always consult a qualified solicitor before making legal decisions or signing contracts.

## Document Summary

| Field | Value |
|---|---|
| **Contract Type** | [type] |
| **Parties** | [Party A] and [Party B] |
| **Effective Date** | [date] |
| **Governing Law** | [jurisdiction] |
| **Analysis Date** | [today] |

## Overall Risk Score: [X]/10

[1-2 sentence summary of the overall risk posture]

## Risk Matrix

| # | Clause/Section | Risk Category | Score | Likelihood | Tier | Financial Exposure |
|---|---|---|---|---|---|---|
| 1 | [Section name] | [category] | [X]/10 | [LIKELY/POSSIBLE/UNLIKELY] | [RED/AMBER/YELLOW/GREEN] | [estimate] |
| ... | ... | ... | ... | ... | ... | ... |

## Total Estimated Financial Exposure

[Aggregate the financial exposure estimates. Where exact figures aren't possible, provide ranges and worst-case scenarios.]

## Tier Distribution

- 🔴 RED clauses: [count]
- 🟠 AMBER clauses: [count]
- 🟡 YELLOW clauses: [count]
- 🟢 GREEN clauses: [count]

---

## Detailed Risk Analysis

### [Risk #1 — RED] Section X.X: [Section Title]

**Risk Category**: [category]
**Risk Score**: [X]/10
**Severity**: [HIGH/MEDIUM/LOW RISK]
**Likelihood**: [LIKELY/POSSIBLE/UNLIKELY]
**Tier**: [RED/AMBER/YELLOW/GREEN]

**Contract Language**:
> "[exact quoted text from the contract]"

**Plain English Translation**:
[What this actually means in everyday language]

**Why This Is Risky**:
[Detailed explanation of the risk, including real-world scenarios where this could hurt you]

**Financial Exposure**:
[Quantified estimate of potential financial impact]

**Recommended Alternative Language**:
> "[specific replacement clause text]"

---

[Repeat for each risky clause]

---

## Hidden Risks Identified

### [Hidden Risk #1]
- **Location**: [where in the contract]
- **Mechanism**: [how the hidden risk works]
- **Impact**: [what could happen]
- **Recommendation**: [what to do about it]

---

## Top 5 Priorities: Fix These First

1. **[Most critical issue]** - [1 sentence why] - Section [X.X]
2. **[Second most critical]** - [1 sentence why] - Section [X.X]
3. **[Third]** - [1 sentence why] - Section [X.X]
4. **[Fourth]** - [1 sentence why] - Section [X.X]
5. **[Fifth]** - [1 sentence why] - Section [X.X]

---

## Risk Distribution Summary

- HIGH RISK clauses: [count]
- MEDIUM RISK clauses: [count]
- LOW RISK clauses: [count]
- Clean clauses: [count]

Important Guidelines

  • Be specific, not generic. Do not say "this could be problematic." Say exactly what could go wrong and how much it could cost.
  • Every alternative clause you write must be legally coherent and balanced for both parties.
  • If a clause is actually fine, say so. Do not inflate risks to seem thorough.
  • Always consider the contract from the perspective of the party who would be reviewing it (typically the party who did NOT draft it).
  • If the contract type is identifiable, benchmark its terms against industry standards for that type.
  • Likelihood is contextual — a risk that scores HIGH in absolute terms may be UNLIKELY for a £5k contract with a long-trusted counterparty. Always temper severity with deal context.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,764. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.