Contract redline summary
@dealdesk/contract-redline-summary
Compare two versions of a contract (or one redline with insert and delete markup) clause by clause. Lists every change sorted by risk topic (liability, indemnity, termination, renewal, IP, data, payment) with the numbers that moved, then explains each in plain English with a suggested response. Not legal advice.
- Activity
- New: be the first to try it
- Installs
- 0 installs
- Likes
- 0 likes
- Clones
- 0 clones
- 1{
- 2 "name": "contract-redline-summary",
- 3 "owner": "dealdesk",
- 4 "version": "1.0.0",
- 5 "type": "skill",
- 6 "description": "Compare two versions of a contract (or one redline with insert and delete markup) clause by clause. Lists every change sorted by risk topic (liability, indemnity, termination, renewal, IP, data, payment) with the numbers that moved, then explains each in plain English with a suggested response. Not legal advice.",
- 7 "category": "revops",
- 8 "license": "MIT",
- 9 "compat": [
- 10 "claude-code"
- 11 ],
- 12 "permissions": {
- 13 "shell": [
- 14 "node scripts/clause-diff.mjs"
- 15 ],
- 16 "files": {
- 17 "read": [
- 18 "./data/**"
- 19 ],
- 20 "write": [
- 21 "./data/**",
- 22 "./out/**"
- 23 ]
- 24 }
- 25 },
- 26 "tests": {
- 27 "cases": [
- 28 {
- 29 "name": "two versions: finds changed, added, and high-risk clauses",
- 30 "inputs": {
- 31 "data/original.txt": "1. Definitions\n\"Services\" means the hosted software and support described in an Order Form.\n\n2. Fees and Payment\nCustomer will pay all fees within 30 days of the invoice date. Late amounts accrue interest at 1% per month.\n\n3. Term and Renewal\nEach Order Form renews automatically for successive 12 month terms unless either party gives notice of non-renewal at least 60 days before the end of the current term.\n\n4. Termination\nEither party may terminate for material breach not cured within 30 days of written notice.\n\n5. Limitation of Liability\nEach party's aggregate liability is capped at the fees paid in the 12 months before the claim. Neither party is liable for indirect or consequential damages.\n\n6. Confidentiality\nEach party will protect the other's confidential information with reasonable care.\n\n7. Governing Law\nThis agreement is governed by the laws of the State of Delaware.\n",
- 32 "data/revised.txt": "1. Definitions\n\"Services\" means the hosted software and support described in an Order Form.\n\n2. Fees and Payment\nCustomer will pay all undisputed fees within 60 days of the invoice date.\n\n3. Term and Renewal\nEach Order Form renews automatically for successive 12 month terms unless either party gives notice of non-renewal at least 30 days before the end of the current term. Renewal prices will not increase by more than 3%.\n\n4. Termination\nEither party may terminate for material breach not cured within 30 days of written notice. Customer may terminate for convenience on 90 days written notice.\n\n5. Limitation of Liability\nEach party's aggregate liability is capped at two times the fees paid in the 12 months before the claim. Neither party is liable for indirect or consequential damages, except for breaches of Section 6 or data protection obligations, which are uncapped.\n\n6. Confidentiality\nEach party will protect the other's confidential information with reasonable care.\n\n7. Governing Law\nThis agreement is governed by the laws of the State of New York.\n\n8. Insurance\nProvider will maintain cyber liability insurance of at least $5,000,000.\n"
- 33 },
- 34 "checks": [
- 35 {
- 36 "type": "command_exits_zero",
- 37 "command": "node scripts/clause-diff.mjs data/original.txt data/revised.txt --out out"
- 38 },
- 39 {
- 40 "type": "file_contains",
- 41 "path": "out/redline.md",
- 42 "text": "### 7 Governing Law (changed)"
- 43 },
- 44 {
- 45 "type": "output_matches_schema",
- 46 "path": "out/redline.json",
- 47 "schema": {
- 48 "type": "object",
- 49 "required": [
- 50 "summary",
- 51 "changes"
- 52 ],
- 53 "properties": {
- 54 "summary": {
- 55 "type": "object",
- 56 "properties": {
- 57 "changed": {
- 58 "const": 5
- 59 },
- 60 "added": {
- 61 "const": 1
- 62 },
- 63 "removed": {
- 64 "const": 0
- 65 },
- 66 "high": {
- 67 "const": 4
- 68 }
- 69 }
- 70 },
- 71 "changes": {
- 72 "type": "array",
- 73 "minItems": 6,
- 74 "maxItems": 6
- 75 }
- 76 }
- 77 }
- 78 }
- 79 ]
- 80 },
- 81 {
- 82 "name": "single redline with insert and delete markup",
- 83 "inputs": {
- 84 "data/redline.md": "1. Fees and Payment\nCustomer will pay all {++undisputed ++}fees within {--30--}{++45++} days of the invoice date.\n\n2. Publicity\n{--Provider may list Customer as a customer on its website.--}\n"
- 85 },
- 86 "checks": [
- 87 {
- 88 "type": "command_exits_zero",
- 89 "command": "node scripts/clause-diff.mjs --markup data/redline.md --out out"
- 90 },
- 91 {
- 92 "type": "output_matches_schema",
- 93 "path": "out/redline.json",
- 94 "schema": {
- 95 "type": "object",
- 96 "properties": {
- 97 "summary": {
- 98 "type": "object",
- 99 "properties": {
- 100 "changed": {
- 101 "const": 2
- 102 },
- 103 "medium": {
- 104 "const": 1
- 105 }
- 106 }
- 107 },
- 108 "changes": {
- 109 "type": "array",
- 110 "minItems": 2,
- 111 "maxItems": 2,
- 112 "items": {
- 113 "type": "object",
- 114 "required": [
- 115 "clause",
- 116 "type",
- 117 "risk",
- 118 "numbers"
- 119 ]
- 120 }
- 121 }
- 122 }
- 123 }
- 124 }
- 125 ]
- 126 }
- 127 ]
- 128 }
- 129}
