Logo: Legal Redliner

Legal Redliner

Communautéit
ITSpecialist111
legal-redliner

Jurisdiction-aware legal document redlining agent: ingests customer-facing legal documents (NDAs, MSAs, DPAs, T&Cs, SOWs), segments them into clauses, rewrites each clause to align with internal policy positions and regional legal requirements, produces a fully redlined document plus a structured audit pack with change-by-change rationale and citations. Supports UK, EU, US, and custom jurisdictions. Use when user says "redline this contract", "review against our playbook", "localize this agreement", "adapt for EU", "adapt for UK", "jurisdiction review", "policy-aligned redline", "clause review", "contract redline", "playbook review", "mark up this agreement", "regional adaptation", "legal playbook", "NDA review", "MSA review", "DPA review", "T&Cs review", "standard positions review", "contract markup with audit trail", or needs jurisdiction-specific, policy-aligned contract redlining with full auditability.

Add to TypingMind

Iwwersiicht

EditeurITSpecialist111
RepositoryCopilot-Cowork-Skills
Skill-Nummlegal-redliner
Stären
48
Forks
8
Matgeliwwert Dateien
7
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    ITSpecialist111 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Legal Redliner an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/ITSpecialist111/Copilot-Cowork-Skills/tree/main/legal-redliner
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ITSpecialist111/Copilot-Cowork-Skills.git /tmp/Copilot-Cowork-Skills
mkdir -p .claude/skills
cp -r /tmp/Copilot-Cowork-Skills/legal-redliner .claude/skills/legal-redliner
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Legal Redliner an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Legal Redliner automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Legal Redliner net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Legal Redliner

Redline customer-facing legal documents clause-by-clause — aligning each clause to your internal policy positions and jurisdiction-specific legal requirements — with a complete audit trail showing what changed, why, and what evidence supports each change.

When to Use

  • User has a legal document (NDA, MSA, DPA, SOW, T&Cs) that needs redlining against company playbook positions
  • User needs to adapt a contract for a specific jurisdiction (UK, EU, US states, etc.)
  • User wants a structured audit pack showing every change with rationale and citations
  • User needs to compare contract language against internal standard positions
  • User wants clause-by-clause analysis with risk flags for non-standard terms

When NOT to Use

  • Litigation or dispute management → use legal-review
  • Vendor evaluation or spend analysis → use vendor-intel
  • General contract term extraction without redlining → use vendor-intel
  • Sending the redlined document to someone → use email after redlining

Quick Start

User: "Redline this MSA against our standard positions for a UK customer."

Steps:

  1. Ingest and segment the document into clauses
  2. Identify the document type, jurisdiction, and applicable policies
  3. For each clause: retrieve relevant policy positions, check jurisdiction requirements, rewrite if needed
  4. Assemble the redlined document with tracked changes
  5. Generate the audit pack (change log, citations, risk flags, human review checklist)

How It Works

Architecture Overview

This skill operates as a clause-by-clause redlining pipeline — rather than loading all policies and legislation at once (which would overwhelm context), it performs targeted retrieval per clause.

INGEST → CLASSIFY → SEGMENT → [PER-CLAUSE LOOP] → ASSEMBLE → DELIVER
                                    |
                                    ├── Retrieve internal policy snippets
                                    ├── Retrieve jurisdiction-specific requirements
                                    ├── Rewrite with minimal changes
                                    ├── Validate against constraints
                                    └── Record evidence + rationale

Why Clause-by-Clause

  • Precision: Each clause gets only the relevant policy and legal context
  • Auditability: Every change maps to specific evidence
  • Control: Deterministic loop ensures nothing is skipped
  • Transparency: The audit pack traces each decision back to sources

Redlining Workflow

Step 1: Document Ingestion

  1. Locate the document — check input/ for uploaded files first

  2. Extract text — use the pdf skill for PDFs or docx skill for Word files to extract full text

  3. Identify document metadata:

    FieldValue
    Document TypeNDA / MSA / DPA / SOW / T&Cs / Other
    Counterparty[Name]
    Target JurisdictionUK / EU / Germany / US-CA / US-NY / etc.
    Governing Law[As stated in doc]
    Date[Document date]
    Our RoleCustomer / Supplier / Both

Step 2: Classification & Context Setup

Based on the document type and jurisdiction, establish:

Policy positions to retrieve (examples by document type):

Document TypeKey Policy Areas
NDADefinition of confidential information, exclusions, term, return/destruction, permitted disclosures, injunctive relief
MSALiability caps, indemnification, IP ownership, warranty, termination, change control, dispute resolution
DPAProcessing purposes, sub-processors, international transfers, breach notification, data subject rights, DPIA obligations
SOWScope definition, acceptance criteria, change orders, milestones, payment terms, resource commitments
T&CsLiability limitations, consumer rights, refund/cancellation, data collection notices, cookie consent

Jurisdiction-specific requirements (examples):

JurisdictionKey Considerations
UKUK GDPR, Consumer Rights Act 2015, Unfair Contract Terms Act 1977, PECR
EUEU GDPR, EU consumer directives, local member state implementations
GermanyBGB (German Civil Code) provisions, stricter GDPR interpretation, specific AGB rules
US — CaliforniaCCPA/CPRA, California-specific consumer protections
US — New YorkNY General Obligations Law, specific warranty rules
US — DelawareChoice of law preferences, corporate governance considerations

Step 3: Document Segmentation

Use the segmentation script to split the contract into individually addressable clauses:

bash
python scripts/segment_contract.py <contract_text_file> --output working/segmented.json

The script automatically:

  • Detects clause headings (numbered sections, articles, schedules)
  • Extracts preamble/recitals as CL-000
  • Classifies each clause by content type (definitions, obligations, liability, termination, data processing, IP)
  • Extracts defined terms and cross-references
  • Returns a confidence score for segmentation quality

Review the JSON output and verify the segmentation. If confidence is "low", manual segmentation may be needed.

The script produces a structured table:

Clause IDSectionClause HeadingClause TextClassification
CL-0011Definitions[full text]Standard / Non-standard / Missing
CL-0022.1Scope of Services[full text]Standard / Non-standard / Missing
...

Classification key:

  • Standard: Matches or closely aligns with our standard positions
  • Non-standard: Deviates from our standard positions — needs redlining
  • Missing: A clause our playbook requires that's not in the document
  • Acceptable: Non-standard but within acceptable deviation range

Step 4: Per-Clause Redlining

For each clause marked as Non-standard or Missing, apply this process:

4a. Retrieve Relevant Context
  • Internal policy: Find the company's standard position for this clause type
  • Jurisdiction requirements: Find any legal requirements that affect this clause in the target region

Sources (in priority order):

  1. User-provided policy documents (uploaded to input/)
  2. Organization's SharePoint playbook (if user directs to a location — use enterprise search to find it)
  3. Official legislation — see Legislation Sourcing Rule below
  4. General best practice for the clause type and jurisdiction

Legislation Sourcing Rule (MANDATORY): All jurisdiction-specific legal citations MUST be retrieved from official government or legislative sources at redlining time — never from pre-training knowledge alone. Use the deep-research agent or web search/fetch tools to retrieve the current text of any statute, regulation, or directive being cited.

  • If the user has provided explicit legislation documents (uploaded to input/ or linked in their request), use those as the authoritative source. No web lookup is needed for provisions covered by the user's documents.
  • For all other legislation, fetch from official sources before citing. See references/jurisdiction-sources.md for the full jurisdiction source table with official URLs. Key sources:
    • Germany: gesetze-im-internet.de (BGB, UrhG, BDSG, HGB, etc.)
    • EU: eur-lex.europa.eu (GDPR, directives, SCCs decisions)
    • UK: legislation.gov.uk (UK GDPR, DPA 2018, UCTA 1977, CRA 2015)
    • US: govinfo.gov, state legislature sites (CCPA, UCC, state statutes)
  • If an official source cannot be reached or the provision cannot be verified, flag the clause as NEEDS_RESEARCH with the note "Legislation not verified from official source" rather than citing from memory.
  • Record the source URL and retrieval date in the audit pack's Legal Ref column for every legislative citation.
4b. Rewrite the Clause

Non-negotiable rewriting rules:

  1. Minimal changes — prefer targeted edits over full rewrites
  2. Preserve defined terms exactly (capitalisation, wording)
  3. Preserve structure — don't renumber or reorganise unless required
  4. External law prevails — if internal policy conflicts with mandatory law, law wins (note the conflict)
  5. Conservative approach — when in doubt, flag for human review rather than rewrite
  6. No invented law — all legal citations must be verified against official government sources at redlining time (see Legislation Sourcing Rule in Step 4a). If the provision cannot be verified, flag NEEDS_RESEARCH rather than citing from memory
4c. Record the Change

For every change, capture:

FieldContent
Clause IDCL-XXX
Change TypeInsert / Delete / Replace / Add Missing Clause
Original Text[exact original wording]
Revised Text[proposed new wording]
Rationale[why this change was made — in plain language]
Policy Citation[which internal policy position this aligns to]
Legal Citation[which law or regulation requires or supports this]
Risk LevelLow / Medium / High
Needs Human Review?Yes / No
Open Questions[anything unresolved or uncertain]
4d. Validate

Before finalizing each clause:

  • Does the revised text align with the cited policy position?
  • Does it comply with the cited jurisdiction requirement?
  • Are defined terms preserved?
  • Is the commercial position unchanged (unless compliance requires it)?
  • Is the change truly necessary, or is the original acceptable?

Output Deliverables

The legal redliner produces two documents:

1. Redlined Document

A Word document with tracked changes showing:

  • Deleted text (strikethrough, red)
  • Inserted text (underline, red)
  • Comments on each change referencing the audit pack entry

Use the docx skill to create the redlined document with proper tracked changes formatting.

Include the privilege notice from assets/privilege-notice.md at the top of the document and as the header on every page.

When inserting missing clauses (e.g., force majeure, third party rights, severability), use the pre-approved standard wording from assets/standard-clauses-uk.md instead of generating from scratch. This ensures consistency with the legal team's approved language.

2. Audit Pack

A comprehensive audit record. Generate as an Excel workbook using the xlsx skill with these sheets:

Sheet 1: Change Log

Clause IDSectionChange TypeOriginal TextRevised TextRationalePolicy RefLegal RefRiskHuman Review?

Sheet 2: Risk Summary

Risk LevelCountClauses
High[list]
Medium[list]
Low[list]

Sheet 3: Human Review Checklist

#Clause IDItem for ReviewReasonReviewerStatus
Insufficient policy data / Judgment call / Complex clausePending / Reviewed / Approved

Sheet 4: Coverage Summary

Total ClausesStandard (no change)RedlinedMissing (added)Needs Research% Coverage

All counts and percentages must be computed using code tools.


3. Risk Dashboard (Adaptive Card)

Before generating the file deliverables, render an inline risk dashboard using the render-ui skill so the user can review the summary at a glance. The card must include:

KPI Row (ColumnSet with 4 columns):

  • Total Clauses (count)
  • Redlined (count + percentage)
  • Standard (count, green)
  • Coverage (percentage, green if 100%)

Risk Distribution (Chart.Donut):

  • High Risk (attention colour) with count
  • Medium Risk (warning colour) with count
  • Low Risk (good colour) with count
  • Standard (neutral colour) with count

Clause Summary Table (Table):

  • Columns: Clause ID | Clause Name | Key Issue | Risk (as Badge) | Human Review? (as Badge where applicable)
  • Only show non-standard clauses (omit standard clauses from the table)
  • Sort by risk level: High first, then Medium, then Low

Legislation Verified (FactSet):

  • List each statute cited with its source (e.g., "UCTA 1977 s.2 → legislation.gov.uk")

Render the card before generating the Word and Excel files — this gives the user a chance to review the analysis before committing to file generation.


Supported Document Types

TypeAbbreviationTypical Clauses Reviewed
Non-Disclosure AgreementNDAConfidentiality definition, exclusions, term, return, remedies
Master Service AgreementMSAScope, liability, indemnity, IP, warranty, termination, governing law
Data Processing AgreementDPAProcessing purposes, sub-processors, transfers, breach notification, DSAR
Statement of WorkSOWScope, deliverables, acceptance, milestones, change control, payment
Terms and ConditionsT&CsLiability, consumer rights, data, refunds, dispute resolution
Software License AgreementSLALicense scope, restrictions, support, updates, audit rights
Employment AgreementEADuties, compensation, restrictive covenants, IP assignment, termination

Built-In Skills Used

This skill leverages Copilot Cowork's built-in capabilities:

Built-in SkillHow It's Used
WordRead input documents, create redlined output with tracked changes
PDFExtract text from PDF contracts, create final PDF versions
ExcelGenerate the audit pack workbook with change log, risk summary, and coverage
Enterprise SearchFind internal playbook documents and policy positions across SharePoint
Deep ResearchResearch jurisdiction-specific legal requirements when policy sources are insufficient
EmailSend the completed redline and audit pack to reviewers for approval
CommunicationsDraft cover notes using assets/cover-note-template.md explaining the redline for stakeholders
Adaptive CardsDisplay the risk summary and coverage dashboard inline before generating files
SchedulingBook review meetings with legal team to walk through the redline
Calendar ManagementCheck reviewer availability before scheduling review sessions
MeetingsPrepare briefing notes for the redline review meeting

Workflow Integration

End-to-End Process

  1. User uploads contract → Legal Redliner segments and classifies
  2. Redlining → Clause-by-clause analysis with audit trail
  3. Review dashboard → Display risk summary and coverage as an Adaptive Card for quick review
  4. Generate deliverables → Redlined Word document + Excel audit pack
  5. Circulate for review → Email the package to the legal team with a cover note via Communications
  6. Schedule review → Use Scheduling to find time for the legal team to review together
  7. Post-review → Update the redline based on feedback, generate final versions

Multi-Jurisdiction Handling

When a document needs adaptation for multiple regions:

  • Run the redliner once per jurisdiction
  • Generate a comparison view showing regional differences
  • Highlight clauses where jurisdictions require conflicting approaches
  • Recommend the most conservative position that satisfies all jurisdictions, or separate regional versions

Quality Assurance

Pre-Delivery Checks

Before delivering the redline:

  • Every change has a rationale and at least one citation
  • All defined terms preserved exactly
  • No commercial position changed without explicit flagging
  • Risk levels assigned consistently
  • Human review items clearly identified
  • Coverage > 90% (all clauses addressed or explicitly marked)
  • Audit pack totals match the redlined document
  • Document formatted correctly with tracked changes visible

Confidence Indicators

For each clause assessment:

  • High confidence: Both policy source and legal source available, clear alignment
  • Medium confidence: Policy source available but no jurisdiction-specific confirmation, or vice versa
  • Low confidence / Needs Research: Insufficient sources — flagged for human review

Guardrails

  • This skill does NOT provide legal advice: All redlines are drafting suggestions based on policy alignment and identified legal requirements. A qualified lawyer must review before any document is finalized.
  • Never invent law or policy: All legislative citations must be retrieved and verified from official government sources (e.g., gesetze-im-internet.de, eur-lex.europa.eu, legislation.gov.uk) at redlining time — not from pre-training knowledge. The only exception is when the user has explicitly provided the legislation as uploaded documents. If a provision cannot be verified from an official source, flag NEEDS_RESEARCH — never fabricate or cite from memory
  • Minimal intervention principle: Prefer targeted edits over rewrites. The goal is compliance and policy alignment, not stylistic preference.
  • Commercial neutrality: Do not change the commercial position (pricing, scope, payment terms) unless specifically required for legal compliance — flag any commercial impact prominently
  • Confidentiality: Contract documents are commercially sensitive. Never reference details from one counterparty's contract in another review.
  • Privilege: Mark all redlining output as "PRIVILEGED AND CONFIDENTIAL — ATTORNEY WORK PRODUCT" unless user instructs otherwise
  • All calculations computed by code tools: Coverage percentages, clause counts, risk distributions — never estimate

Common Issues

IssueCauseFix
Contract is a scanned PDF with no textImage-only PDFUse pdf skill with OCR extraction first
No internal playbook providedUser hasn't uploaded policy documentsAsk user to provide or point to SharePoint location; use enterprise search to find
Jurisdiction not supportedNiche jurisdiction with no available sourcesFlag all jurisdiction-dependent clauses as NEEDS_RESEARCH, recommend local counsel review
Too many "Needs Research" flagsInsufficient source materialEngage the deep-research skill to investigate specific legal requirements, then re-run affected clauses
Redline changes commercial termsClause mixes legal and commercial languageSeparate the legal compliance change from the commercial term, flag the commercial element for business review
Audit pack doesn't match redlineManual edits after generationAlways regenerate audit pack from the final redlined document

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Legal Redliner?

Jurisdiction-aware legal document redlining agent: ingests customer-facing legal documents (NDAs, MSAs, DPAs, T&Cs, SOWs), segments them into clauses, rewrites each clause to align with internal policy positions and regional legal requirements, produces a fully redlined document plus a structured audit pack with change-by-change rationale and citations. Supports UK, EU, US, and custom jurisdictions. Use when user says "redline this contract", "review against our playbook", "localize this agreement", "adapt for EU", "adapt for UK", "jurisdiction review", "policy-aligned redline", "clause rev...

Firwat Legal Redliner op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Legal Redliner besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Legal Redliner an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ITSpecialist111/Copilot-Cowork-Skills/tree/main/legal-redliner an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Legal Redliner benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Legal Redliner benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Legal Redliner domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Legal Redliner gratis?

Jo. ITSpecialist111 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇