Contract Portfolio Intelligence
Performs portfolio-scale contract analysis: batch extraction of terms, obligations, and risks across a large set of agreements, plus playbook-based redlining against organizational standards.
Prerequisites
Before starting, gather:
- Contract corpus — uploaded documents (PDF, DOCX) or a vault/folder reference containing the agreements
- Analysis scope — what to extract (renewals, indemnities, payment terms, liability caps, termination rights, or custom fields)
- Playbook (if redlining) — the organization's preferred positions, fallback clauses, and non-negotiable terms
- Output format — table/spreadsheet, narrative report, or both
- Audience — who receives the output (GC, board, finance, procurement)
Workflow
Phase 1: Ingest and Classify
- Process each contract through OCR if scanned; extract full text from native PDFs and DOCX files
- Identify contract type (NDA, MSA, SaaS agreement, employment, vendor, lease, SOW, amendment, etc.)
- Detect parent-child relationships (master agreements → amendments → SOWs → change orders)
- De-duplicate — flag identical or near-identical documents
- Tag metadata: parties, effective date, governing law, contract type
Output a contract inventory table:
| # |
Document |
Type |
Parties |
Effective Date |
Governing Law |
Parent Doc |
| 1 |
Example |
MSA |
A ↔ B |
2024-01-15 |
Delaware |
— |
Phase 2: Term Extraction
For each contract, extract the following structured fields (skip fields that don't apply to the contract type):
Dates & Term
- Effective date, expiration date, term length
- Auto-renewal (yes/no), renewal notice period, notice deadline
- Termination for convenience (yes/no), notice period, cure period
Financial Terms
- Contract value / total commitment
- Payment terms (Net 30, Net 60, etc.)
- Price escalation / adjustment mechanisms
- Minimum commitments or volume thresholds
- Late payment penalties
Risk Provisions
- Indemnification — mutual vs. one-sided, carve-outs, cap
- Limitation of liability — aggregate cap, per-incident cap, excluded damages
- Insurance requirements — types, minimum coverage amounts
- Warranty — scope, duration, remedy limitations
- Governing law and dispute resolution (litigation vs. arbitration, venue)
Obligations
- Deliverables and milestones with deadlines
- Reporting or audit rights
- Data protection / security obligations
- Non-compete or exclusivity restrictions
- Confidentiality term and surviving obligations
IP & Data
- IP ownership and license-back provisions
- Data handling, return, and destruction requirements
- Usage rights post-termination
Store extracted data in a structured format (one row per contract, one column per field).
Phase 3: Portfolio Reports
Generate the reports requested by the user. Common report types:
Renewal Calendar
- All contracts with renewal/expiration dates within a specified window
- Sorted by urgency (nearest deadline first)
- Flag auto-renewals where notice deadline is approaching
- Include counterparty, contract value, and required action
Risk Matrix
- Each contract scored on risk dimensions: indemnification exposure, liability cap adequacy, insurance gaps, unfavorable termination terms
- Risk level per dimension: High / Medium / Low
- Aggregate portfolio risk summary
- Prioritized list of contracts requiring renegotiation
Obligation Tracker
- Active obligations by contract with deadlines
- Grouped by responsible team (legal, finance, ops, IT)
- Status: upcoming / due / overdue / completed
- Escalation flags for overdue items
Financial Summary
- Total portfolio commitment by period (quarterly/annual)
- Breakdown by contract type, counterparty, or business unit
- Contracts approaching minimum commitment thresholds
- Payment term distribution
Custom Extraction
- User specifies any data point via natural language prompt
- Agent extracts that field across all contracts
- Returns structured table with contract reference, extracted value, and confidence
Phase 4: Playbook Redlining
When the user provides a playbook of preferred positions:
- Parse the playbook — extract each preferred clause, its fallback positions, and non-negotiable terms
- Compare each contract against the playbook provision-by-provision:
- ✅ Matches preferred position → no action
- ⚠️ Deviates but within fallback range → flag with suggested language
- ❌ Violates non-negotiable → flag as critical, provide replacement language
- Generate a redline summary per contract:
- Section reference, current language, preferred language, risk level, recommended action
- Produce a portfolio deviation report:
- Which contracts deviate most from standards
- Most common deviations across the portfolio
- Priority queue for renegotiation based on risk × contract value
Playbook Structure
A playbook should define positions for key provisions. Example structure:
Provision: Limitation of Liability
Preferred: Mutual cap at 12 months of fees; carve-outs for IP infringement and confidentiality breach
Fallback: Mutual cap at 24 months of fees
Non-negotiable: Must have mutual cap; unlimited liability is rejected
Provision: Indemnification
Preferred: Mutual indemnification for third-party IP claims and confidentiality breach
Fallback: One-sided indemnification acceptable if capped
Non-negotiable: Must include IP infringement indemnity
Provision: Termination for Convenience
Preferred: Either party, 30 days written notice
Fallback: 60-90 days notice acceptable
Non-negotiable: Must have termination for convenience right
Quality Checks
After generating any output:
Troubleshooting
| Issue |
Resolution |
| Scanned PDFs with poor OCR quality |
Re-process with enhanced OCR; flag low-confidence extractions for manual review |
| Contract is an amendment with no standalone terms |
Link to parent agreement; extract only the modified terms and note inherited provisions |
| Ambiguous or missing provisions |
Mark as "Not Found" or "Ambiguous" — never guess; flag for human review |
| Conflicting terms between parent and amendment |
The amendment controls unless it explicitly preserves the original; flag the conflict |
| Very large corpus (10,000+) |
Process in batches by contract type or counterparty; produce interim reports |
| Playbook doesn't cover a provision found in contracts |
Note the gap; suggest adding the provision to the playbook |
1---
2name: contract-portfolio-intelligence
3language: en
4description: Analyzes an entire portfolio of contracts at scale — extracting key terms, obligations, renewal dates, risk provisions, and financial commitments across hundreds or thousands of agreements simultaneously. Produces structured reports, obligation trackers, renewal calendars, and risk matrices. Also supports playbook-based redlining where contracts are compared against preferred positions and automatically marked up. Use when an in-house legal team, GC, legal ops, procurement, or finance team needs portfolio-wide visibility into contract terms, upcoming renewals, obligation compliance, or batch contract review against organizational standards.
5tags:
6 - transactional
7 - corporate
8 - analysis
9 - summary
10metadata:
11 source: https://skillmd.com/skills/casemark/contract-portfolio-intelligence
12---
13
14# Contract Portfolio Intelligence
15
16Performs portfolio-scale contract analysis: batch extraction of terms, obligations, and risks across a large set of agreements, plus playbook-based redlining against organizational standards.
17
18## Prerequisites
19
20Before starting, gather:
21
221. **Contract corpus** — uploaded documents (PDF, DOCX) or a vault/folder reference containing the agreements
232. **Analysis scope** — what to extract (renewals, indemnities, payment terms, liability caps, termination rights, or custom fields)
243. **Playbook** (if redlining) — the organization's preferred positions, fallback clauses, and non-negotiable terms
254. **Output format** — table/spreadsheet, narrative report, or both
265. **Audience** — who receives the output (GC, board, finance, procurement)
27
28## Workflow
29
30### Phase 1: Ingest and Classify
31
321. Process each contract through OCR if scanned; extract full text from native PDFs and DOCX files
332. Identify contract type (NDA, MSA, SaaS agreement, employment, vendor, lease, SOW, amendment, etc.)
343. Detect parent-child relationships (master agreements → amendments → SOWs → change orders)
354. De-duplicate — flag identical or near-identical documents
365. Tag metadata: parties, effective date, governing law, contract type
37
38Output a contract inventory table:
39
40| # | Document | Type | Parties | Effective Date | Governing Law | Parent Doc |
41|---|----------|------|---------|----------------|---------------|------------|
42| 1 | Example | MSA | A ↔ B | 2024-01-15 | Delaware | — |
43
44### Phase 2: Term Extraction
45
46For each contract, extract the following structured fields (skip fields that don't apply to the contract type):
47
48**Dates & Term**
49- Effective date, expiration date, term length
50- Auto-renewal (yes/no), renewal notice period, notice deadline
51- Termination for convenience (yes/no), notice period, cure period
52
53**Financial Terms**
54- Contract value / total commitment
55- Payment terms (Net 30, Net 60, etc.)
56- Price escalation / adjustment mechanisms
57- Minimum commitments or volume thresholds
58- Late payment penalties
59
60**Risk Provisions**
61- Indemnification — mutual vs. one-sided, carve-outs, cap
62- Limitation of liability — aggregate cap, per-incident cap, excluded damages
63- Insurance requirements — types, minimum coverage amounts
64- Warranty — scope, duration, remedy limitations
65- Governing law and dispute resolution (litigation vs. arbitration, venue)
66
67**Obligations**
68- Deliverables and milestones with deadlines
69- Reporting or audit rights
70- Data protection / security obligations
71- Non-compete or exclusivity restrictions
72- Confidentiality term and surviving obligations
73
74**IP & Data**
75- IP ownership and license-back provisions
76- Data handling, return, and destruction requirements
77- Usage rights post-termination
78
79Store extracted data in a structured format (one row per contract, one column per field).
80
81### Phase 3: Portfolio Reports
82
83Generate the reports requested by the user. Common report types:
84
85**Renewal Calendar**
86- All contracts with renewal/expiration dates within a specified window
87- Sorted by urgency (nearest deadline first)
88- Flag auto-renewals where notice deadline is approaching
89- Include counterparty, contract value, and required action
90
91**Risk Matrix**
92- Each contract scored on risk dimensions: indemnification exposure, liability cap adequacy, insurance gaps, unfavorable termination terms
93- Risk level per dimension: High / Medium / Low
94- Aggregate portfolio risk summary
95- Prioritized list of contracts requiring renegotiation
96
97**Obligation Tracker**
98- Active obligations by contract with deadlines
99- Grouped by responsible team (legal, finance, ops, IT)
100- Status: upcoming / due / overdue / completed
101- Escalation flags for overdue items
102
103**Financial Summary**
104- Total portfolio commitment by period (quarterly/annual)
105- Breakdown by contract type, counterparty, or business unit
106- Contracts approaching minimum commitment thresholds
107- Payment term distribution
108
109**Custom Extraction**
110- User specifies any data point via natural language prompt
111- Agent extracts that field across all contracts
112- Returns structured table with contract reference, extracted value, and confidence
113
114### Phase 4: Playbook Redlining
115
116When the user provides a playbook of preferred positions:
117
1181. **Parse the playbook** — extract each preferred clause, its fallback positions, and non-negotiable terms
1192. **Compare each contract** against the playbook provision-by-provision:
120 - ✅ Matches preferred position → no action
121 - ⚠️ Deviates but within fallback range → flag with suggested language
122 - ❌ Violates non-negotiable → flag as critical, provide replacement language
1233. **Generate a redline summary** per contract:
124 - Section reference, current language, preferred language, risk level, recommended action
1254. **Produce a portfolio deviation report**:
126 - Which contracts deviate most from standards
127 - Most common deviations across the portfolio
128 - Priority queue for renegotiation based on risk × contract value
129
130### Playbook Structure
131
132A playbook should define positions for key provisions. Example structure:
133
134```
135Provision: Limitation of Liability
136 Preferred: Mutual cap at 12 months of fees; carve-outs for IP infringement and confidentiality breach
137 Fallback: Mutual cap at 24 months of fees
138 Non-negotiable: Must have mutual cap; unlimited liability is rejected
139
140Provision: Indemnification
141 Preferred: Mutual indemnification for third-party IP claims and confidentiality breach
142 Fallback: One-sided indemnification acceptable if capped
143 Non-negotiable: Must include IP infringement indemnity
144
145Provision: Termination for Convenience
146 Preferred: Either party, 30 days written notice
147 Fallback: 60-90 days notice acceptable
148 Non-negotiable: Must have termination for convenience right
149```
150
151## Quality Checks
152
153After generating any output:
154
155- [ ] Every contract in the corpus appears in the inventory — none skipped
156- [ ] Extracted dates are validated (no future effective dates on executed contracts, expiration after effective)
157- [ ] Parent-child relationships are logically consistent
158- [ ] Risk scores are justified with specific clause references
159- [ ] Renewal deadlines account for notice periods (deadline = expiration minus notice period)
160- [ ] Financial figures are in consistent currency and units
161- [ ] Playbook deviations cite the specific section and language from both the contract and the playbook
162
163## Troubleshooting
164
165| Issue | Resolution |
166|-------|------------|
167| Scanned PDFs with poor OCR quality | Re-process with enhanced OCR; flag low-confidence extractions for manual review |
168| Contract is an amendment with no standalone terms | Link to parent agreement; extract only the modified terms and note inherited provisions |
169| Ambiguous or missing provisions | Mark as "Not Found" or "Ambiguous" — never guess; flag for human review |
170| Conflicting terms between parent and amendment | The amendment controls unless it explicitly preserves the original; flag the conflict |
171| Very large corpus (10,000+) | Process in batches by contract type or counterparty; produce interim reports |
172| Playbook doesn't cover a provision found in contracts | Note the gap; suggest adding the provision to the playbook |