contract-portfolio-intelligence

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.

11 stars

Best use case

contract-portfolio-intelligence is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using contract-portfolio-intelligence should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/contract-portfolio-intelligence/SKILL.md --create-dirs "https://raw.githubusercontent.com/CaseMark/skills/main/skills/legal/contract-portfolio-intelligence/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/contract-portfolio-intelligence/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How contract-portfolio-intelligence Compares

Feature / Agentcontract-portfolio-intelligenceStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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:

1. **Contract corpus** — uploaded documents (PDF, DOCX) or a vault/folder reference containing the agreements
2. **Analysis scope** — what to extract (renewals, indemnities, payment terms, liability caps, termination rights, or custom fields)
3. **Playbook** (if redlining) — the organization's preferred positions, fallback clauses, and non-negotiable terms
4. **Output format** — table/spreadsheet, narrative report, or both
5. **Audience** — who receives the output (GC, board, finance, procurement)

## Workflow

### Phase 1: Ingest and Classify

1. Process each contract through OCR if scanned; extract full text from native PDFs and DOCX files
2. Identify contract type (NDA, MSA, SaaS agreement, employment, vendor, lease, SOW, amendment, etc.)
3. Detect parent-child relationships (master agreements → amendments → SOWs → change orders)
4. De-duplicate — flag identical or near-identical documents
5. 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:

1. **Parse the playbook** — extract each preferred clause, its fallback positions, and non-negotiable terms
2. **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
3. **Generate a redline summary** per contract:
   - Section reference, current language, preferred language, risk level, recommended action
4. **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:

- [ ] Every contract in the corpus appears in the inventory — none skipped
- [ ] Extracted dates are validated (no future effective dates on executed contracts, expiration after effective)
- [ ] Parent-child relationships are logically consistent
- [ ] Risk scores are justified with specific clause references
- [ ] Renewal deadlines account for notice periods (deadline = expiration minus notice period)
- [ ] Financial figures are in consistent currency and units
- [ ] Playbook deviations cite the specific section and language from both the contract and the playbook

## 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 |

Related Skills

subcontractor-agreement

11
from CaseMark/skills

Drafts enforceable U.S. subcontractor agreements governing general contractor/subcontractor relationships for construction and service projects. Covers scope of work, payment and retainage, insurance and bonding, indemnification, schedule compliance, termination, and dispute resolution with state-specific compliance. Use when drafting subcontracts, subcontractor agreements, construction service agreements, or contractor engagement documents.

subcontracting-plan

11
from CaseMark/skills

Drafts a FAR 52.219-9-compliant Small Business Subcontracting Plan for federal prime contractors. Sets percentage goals for SB, SDB, WOSB, HUBZone, VOSB, and SDVOSB with market-based justifications, outreach strategies, and eSRS reporting. Use when preparing subcontracting plans for federal proposals, responding to FAR 52.219-9, or updating existing subcontracting commitments.

managed-care-contract

11
from CaseMark/skills

Drafts managed care contracts between MCOs and healthcare providers covering payment methodology (FFS/capitation), credentialing, utilization management, HIPAA compliance, quality assurance (HEDIS/CAHPS), termination, indemnification, and dispute resolution. Ensures compliance with Anti-Kickback Statute, Stark Law, CMS MA/Medicaid guidelines, state insurance laws, and NCQA/URAC standards. Use when establishing provider networks, onboarding providers, updating managed care agreements, or negotiating MCO-provider contracts.

ip-portfolio-summary

11
from CaseMark/skills

Summarizes and analyzes a U.S. corporate IP portfolio covering patents, trademarks, copyrights, and trade secrets. Use when conducting an IP audit, due diligence review, M&A assessment, licensing strategy, executive briefing, or portfolio optimization.

independent-contractor-agreement

11
from CaseMark/skills

Drafts a U.S. independent contractor agreement with misclassification guardrails, IP assignment, confidentiality, and 1099-NEC tax terms. Use when engaging freelancers, consultants, or service providers, or converting an employee to a contractor relationship.

gsa-schedule-contract

11
from CaseMark/skills

Drafts FAR/GSAR-compliant GSA Schedule (MAS/FSS) contracts with clause matrices, SIN scope, pricing/PRC/EPA mechanics, IFF reporting, TAA, Section 508, cybersecurity, and subcontractor flow-downs. Use when drafting or reviewing GSA Schedule contracts, MAS solicitations, SIN crosswalks, price lists, or FAR/GSAR clause sets. Triggers: GSA Schedule, MAS, SIN, FAR 52.212, GSAR 552.238, IFF, PRC, EPA, TAA, Section 508, FedRAMP.

fundraiser-contract-compliance

11
from CaseMark/skills

Audits professional solicitor, fundraising counsel, and commercial co-venturer contracts for state charitable solicitation compliance. Classifies relationships, verifies vendor registration, extracts compensation and custody-of-funds terms, checks state-mandated clauses, and produces disclosure narratives, gap logs, and evidence packages. Use when reviewing fundraiser agreements, onboarding fundraising vendors, preparing state charity filings (CHAR007, CT-2CF, Schedule G), or auditing charitable solicitation compliance.

far-subcontract

11
from CaseMark/skills

Drafts FAR-compliant subcontract agreements between prime contractors and subcontractors under U.S. federal government prime contracts. Handles mandatory flow-down of FAR/DFARS/agency clauses, contract-type pricing, security/clearance, IP/data rights, and termination. Use when drafting government subcontracts, FAR flow-down clauses, or prime-sub agreements.

epc-contract

11
from CaseMark/skills

Drafts turnkey Engineering, Procurement, and Construction (EPC) contracts for industrial facility projects. Covers scope of work, commercial terms, performance guarantees, risk allocation, warranties, and dispute resolution. Use when drafting EPC agreements, turnkey construction contracts, or energy infrastructure project contracts (power plants, petrochemical facilities, water treatment plants).

employment-contract-summary

11
from CaseMark/skills

Produces structured U.S. employment contract summaries with section-level citations, capturing key terms, obligations, risks, and notable omissions. Use when summarizing an employment contract, executive employment agreement, offer letter, or consulting agreement. Triggers on "employment contract summary," "employment agreement," "compensation," "severance," "non-compete," "non-solicit," "confidentiality," or "restrictive covenant."

contract-summarization

11
from CaseMark/skills

Generates structured summaries of U.S. contracts capturing parties, business terms, legal provisions, termination, and dispute resolution. Flags one-sided, ambiguous, or missing standard provisions. Use when summarizing agreements for due diligence, contract review, compliance monitoring, or transaction management — including multi-document sets with exhibits, schedules, and amendments.

contract-playbook-review

11
from CaseMark/skills

Reviews contracts clause-by-clause against a defined negotiation playbook, grading each clause as acceptable, needs review, or unacceptable and generating specific redline suggestions with winning language. Supports playbook creation from existing contracts, precedent language, or policy documents. Use when reviewing incoming contracts against firm standards, running playbook-based contract reviews, creating or maintaining negotiation playbooks, standardizing contract language across teams, or conducting high-volume contract review with consistent quality. Trigger keywords: playbook, contract review, clause grading, redline, winning language, contract compliance, clause-by-clause, contract standards, playbook review.