agentsclimarketplace

Legal review

Skill davendra/uk-legal-skills/skills/legal-review

Open-source Claude Code skills for England & Wales legal work — 38 /legal commands, 12 agents, and UK legislation + case law MCP servers.

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

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.
  • 1 stars1 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

10.0 KB, ~2.4k tokens by cl100k_base, as published. Nobody here has run it

Full Contract Review — Flagship Orchestrator

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.

You are the full contract review engine for /legal review <file>. You launch 5 parallel subagents, aggregate their results, and produce a unified CONTRACT-REVIEW.md report with a Contract Safety Score, clause-by-clause analysis, and prioritized action items.

When This Skill Is Invoked

The user runs /legal review <file>. This is the flagship command. It produces the most comprehensive deliverable: a scored, prioritized, actionable contract analysis with specific recommendations for every risky clause.


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.

Phase 1: Contract Ingestion (Sequential — Pre-Analysis)

Before launching subagents, perform these steps sequentially.

1.1 Read the Contract

Accept the contract from one of these sources:

  • File path — Use the Read tool to read the file
  • Pasted text — Accept text pasted directly into the chat
  • URL — Use WebFetch to retrieve the document

Store the full contract text for subagent consumption.

If the contract is unreadable:

  1. Report the error to the user
  2. Ask for an alternative format
  3. Do NOT proceed to Phase 2 without contract text

1.2 Classify the Contract Type

Identify the contract type to calibrate analysis:

Contract TypeDetection SignalsKey Risk Areas
Service Agreement"services," "deliverables," "scope of work," "retainer"Scope creep, payment terms, termination, IP ownership
Employment Contract"employee," "salary," "benefits," "notice period," "probation period," "unfair dismissal"Non-compete, IP assignment, severance, termination
NDA / Confidentiality"confidential information," "non-disclosure," "receiving party"Definition breadth, duration, exclusions, remedies
SaaS / Software License"subscription," "SLA," "uptime," "license grant"Auto-renewal, data ownership, liability caps, SLA penalties
Freelancer / Contractor"independent contractor," "IR35," "off-payroll," "self-employed," "CIS," "work product"Misclassification risk, IP ownership, payment terms, kill fees
Partnership Agreement"partner," "profit sharing," "capital contribution"Dissolution terms, decision authority, liability allocation
Lease / Rental"landlord," "tenant," "premises," "rent"Termination penalties, maintenance liability, renewal terms
Sales / Purchase"buyer," "seller," "purchase price," "warranty"Warranty limitations, return policies, indemnification
Investment / SAFE"investor," "valuation cap," "equity," "convertible"Dilution, liquidation preferences, board rights, pro-rata

1.3 Extract Contract Metadata

Extract and store:

  • Parties involved — Names and roles of all parties
  • Effective date — When the contract starts
  • Term / Duration — How long it lasts
  • Governing law — Which jurisdiction
  • Total value — Payment amounts if specified
  • Contract length — Number of pages/sections/clauses

Phase 2: Launch 5 Parallel Subagents

Launch ALL 5 subagents simultaneously using the Agent tool. Each agent receives:

  • The full contract text
  • The contract type classification
  • The contract metadata

Subagent Assignments

Agent FileRoleWeight
legal-clauses.mdClause Analysis — Identifies and categorizes every clause20%
legal-risks.mdRisk Assessment — Scores each clause for risk level25%
legal-compliance.mdCompliance Check — Flags regulatory and legal issues20%
legal-terms.mdTerms & Obligations — Maps duties, deadlines, and triggers15%
legal-recommendations.mdRecommendations — Generates specific fixes for every issue20%

Agent launch instructions:

Launch each agent with this prompt structure:

"You are the [Agent Role] subagent for the AI Legal Assistant.
Analyze the following contract and return your findings in the specified format.

CONTRACT TYPE: [detected type]
CONTRACT METADATA: [extracted metadata]

FULL CONTRACT TEXT:
[paste full contract text]

Return your analysis in the exact output format specified in your agent instructions."

Phase 3: Aggregate Results

Once all 5 agents return, compile the unified report.

3.1 Calculate Contract Safety Score

Use weighted scoring from all agents:

Score RangeGradeLabelMeaning
90-100A+SafeLow risk, standard favorable terms
80-89AGoodMinor issues, generally favorable
70-79BFairSome concerning clauses need attention
60-69CCautionMultiple risky clauses, negotiate before signing
40-59DRiskySignificant risks, strong negotiation needed
0-39FDangerousDo not sign without major revisions

3.2 Build the Report

Generate CONTRACT-REVIEW-[name]-[date].md with this structure:

# Contract Review Report

⚠️ LEGAL DISCLAIMER: This analysis is AI-generated and does not constitute legal advice.
Always consult a qualified solicitor before signing.

## Contract Safety Score: [SCORE]/100 — Grade: [LETTER] ([LABEL])

## Executive Summary
[3-4 sentence overview of the contract, key findings, and recommendation]

## Contract Details
| Field | Value |
|-------|-------|
| Contract Type | [type] |
| Parties | [party 1] ↔ [party 2] |
| Effective Date | [date] |
| Term | [duration] |
| Total Value | [amount or N/A] |
| Governing Law | [jurisdiction] |

## Risk Dashboard

| Risk Level | Count | Clauses |
|------------|-------|---------|
| 🔴 High Risk | [n] | [clause names] |
| 🟡 Medium Risk | [n] | [clause names] |
| 🟢 Low Risk | [n] | [clause names] |

## Clause-by-Clause Analysis

### 🔴 HIGH RISK CLAUSES

#### [Clause Name] — Section [X.X]
- **What it says:** [plain English summary]
- **Why it's risky:** [specific explanation]
- **What you could lose:** [quantified impact if possible]
- **Recommended change:** [specific alternative language]

[Repeat for each high-risk clause]

### 🟡 MEDIUM RISK CLAUSES

[Same format as above]

### 🟢 LOW RISK / STANDARD CLAUSES

[Brief summary of standard clauses that are acceptable]

## Missing Protections
[List of clauses that SHOULD be in this contract but are NOT]

## Obligations & Deadlines
| Obligation | Party | Deadline | Consequence of Missing |
|------------|-------|----------|----------------------|
| [obligation] | [who] | [when] | [what happens] |

## Compliance Flags
[Any regulatory, legal, or jurisdictional concerns]

## Negotiation Priorities
1. [Most important change — with specific language to propose]
2. [Second most important]
3. [Third most important]
[Ranked list of what to negotiate first]

## Recommended Next Steps
1. [ ] [First action to take]
2. [ ] [Second action]
3. [ ] [Third action]
4. [ ] Consult a qualified solicitor before signing

Phase 4: Present to User

After generating the report:

  1. Display the Contract Safety Score prominently
  2. Summarize the top 3 risks in plain English
  3. Show the full report
  4. Ask: "Would you like me to generate counter-proposals for the risky clauses? Run /legal negotiate to get specific language to send back."
  5. Mention: "Run /legal report-pdf to generate a professional PDF version of this analysis."

What ships with it

Read from the repository

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

Keep looking

Skills are one crate of 328,083. 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.