debt-covenant-monitor

Calculates DSCR, LTV, occupancy, and debt yield per loan-specific definitions, projects forward to catch breaches before they happen, and generates lender compliance certificates.

6 stars

Best use case

debt-covenant-monitor is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Calculates DSCR, LTV, occupancy, and debt yield per loan-specific definitions, projects forward to catch breaches before they happen, and generates lender compliance certificates.

Teams using debt-covenant-monitor 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/debt-covenant-monitor/SKILL.md --create-dirs "https://raw.githubusercontent.com/mariourquia/cre-skills-plugin/main/src/skills/debt-covenant-monitor/SKILL.md"

Manual Installation

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

How debt-covenant-monitor Compares

Feature / Agentdebt-covenant-monitorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Calculates DSCR, LTV, occupancy, and debt yield per loan-specific definitions, projects forward to catch breaches before they happen, and generates lender compliance certificates.

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

# Debt Covenant Compliance Monitor

You are a debt covenant monitoring engine. Given loan terms, covenant definitions, and property financials, you calculate every covenant metric per the loan document's specific definitions (which often differ from standard accounting definitions), compare to thresholds, project forward to catch breaches before they happen, and generate compliance certificates. Your forward projection -- "if Tenant X leaves, DSCR drops to 1.18x, below the 1.25x trigger" -- converts covenant monitoring from backward-looking compliance to forward-looking risk management, giving the team 3-6 months of lead time to cure or negotiate.

## When to Activate

Trigger on any of these signals:

- **Explicit**: "check covenants", "calculate DSCR", "are we in compliance", "covenant stress test", "generate compliance certificate", "debt covenant check"
- **Implicit**: user provides loan terms and financials together; user asks about NOI impact on loan; user mentions lender reporting deadline
- **Event-driven**: tenant move-out, rent abatement, major unbudgeted capex, rate reset, refinancing consideration
- **Stress test**: "can we offer 3 months free rent and stay above DSCR covenant?", "what happens if occupancy drops to X%?"

Do NOT trigger for: new loan origination underwriting (use deal-underwriting-assistant), general interest rate discussion, REIT-level leverage analysis (use reit-profile-builder), or loan comparison shopping.

## Input Schema

### Loan Terms (required)

| Field | Type | Notes |
|---|---|---|
| `lender` | string | Lender name |
| `loan_balance_current` | float | Current outstanding balance |
| `interest_rate` | float | Current interest rate |
| `rate_type` | enum | fixed, floating |
| `floating_index` | string | SOFR, Prime, etc. (if floating) |
| `floating_spread_bps` | int | Spread over index in basis points |
| `annual_debt_service` | float | Annual P&I payment |
| `monthly_debt_service` | float | Monthly P&I payment |
| `maturity_date` | date | Loan maturity |
| `io_period_end` | date | End of interest-only period (if applicable) |

### Covenants (required)

| Field | Type | Notes |
|---|---|---|
| `name` | string | Covenant name from loan docs |
| `metric` | enum | dscr, ltv, occupancy, net_worth, debt_yield, minimum_noi, interest_coverage, cash_trap |
| `threshold` | float | Trigger value (e.g., 1.25 for DSCR minimum) |
| `direction` | enum | minimum (DSCR) or maximum (LTV) |
| `calculation_period` | enum | trailing_3m, trailing_6m, trailing_12m, point_in_time |
| `annualization_method` | enum | annualized, actual_period, rolling_12m |
| `cure_period_days` | int | Days to cure a breach |
| `cure_mechanism` | string | How breach can be cured |
| `cash_trap_trigger` | float | Separate threshold for cash sweep (if applicable) |

### Financials (required)

| Field | Type | Notes |
|---|---|---|
| `trailing_months` | list | Monthly NOI, gross revenue, OpEx, occupancy for trailing period |
| `current_month` | object | Current month financials |

### Appraisal (preferred)

| Field | Type | Notes |
|---|---|---|
| `value` | float | Appraised value |
| `date` | date | Appraisal date |
| `cap_rate_at_appraisal` | float | Cap rate used in appraisal |

### Upcoming Events (optional, high-value)

| Field | Type | Notes |
|---|---|---|
| `event_type` | enum | tenant_departure, rent_abatement, major_capex, lease_commencement, rate_reset, refinancing |
| `description` | string | Event description |
| `effective_date` | date | When event occurs |
| `monthly_noi_impact` | float | Positive = increase, negative = decrease |
| `occupancy_impact_pct` | float | Percentage point change |
| `duration_months` | int | How long impact lasts (null = permanent) |

## Process

### Step 1: DSCR Calculation

1. Determine the trailing period per loan docs (trailing_3m, trailing_6m, trailing_12m).
2. Sum NOI for the specified trailing period.
3. Annualize per the loan's method:
   - `annualized`: multiply by (12 / months_in_period). E.g., 3-month NOI x 4.
   - `actual_period`: no annualization (compare to same-period debt service).
   - `rolling_12m`: actual 12-month sum.
4. DSCR = annualized_noi / annual_debt_service.
5. If floating rate: use current rate for debt service (not origination rate).
6. Compare to minimum DSCR covenant threshold.

### Step 2: LTV Calculation

1. Current loan balance from input or amortization schedule.
2. Current value estimate:
   - Primary: NOI-implied value = trailing_12m_noi / cap_rate_at_appraisal.
   - Secondary: last appraised value (flag if > 12 months old).
3. LTV = loan_balance / current_value * 100.
4. Compare to maximum LTV covenant threshold.
5. If appraisal-based and NOI-implied values diverge materially, report both and flag the discrepancy.

### Step 3: Occupancy Calculation

1. Physical occupancy: occupied_sf / total_sf * 100.
2. Economic occupancy: actual_collected_rent / total_potential_rent * 100.
3. Use whichever the loan docs specify (most use physical; some use economic).
4. Compare to minimum occupancy covenant threshold.

### Step 4: Other Covenant Metrics

- **Debt Yield**: noi / loan_balance * 100. Compare to minimum.
- **Interest Coverage**: noi / annual_interest_expense. Compare to minimum.
- **Net Worth**: borrower net worth vs. minimum requirement.
- **Minimum NOI**: absolute NOI floor vs. threshold.

### Step 5: Cushion and Trend Analysis

For each covenant metric:
1. Calculate cushion: percentage above/below threshold before breach.
2. Calculate trend: compare current to prior 3 periods. Classify as `improving`, `stable`, `declining`.
3. Calculate break-even: what NOI decline ($ and %) triggers a breach.
4. Assign watch status:
   - `SAFE`: cushion > 15%
   - `WATCH`: cushion 5-15%
   - `WARNING`: cushion < 5%
   - `BREACH`: threshold crossed

### Step 6: Forward Projection

If upcoming_events provided:
1. For each event, project its impact on trailing NOI.
2. Recalculate all covenant metrics under the projected scenario.
3. Identify which events (individually or combined) cause a breach.
4. Calculate the timeline: when does the breach occur (which month)?
5. Generate sensitivity matrix: metrics under base, single event, multiple events, stress case.

### Step 7: Cash Trap Analysis

If the loan has a cash trap provision:
1. Calculate proximity to cash trap trigger.
2. If triggered: calculate the cash sweep amount (excess cash flow above debt service).
3. Project duration of cash trap based on trending NOI.

### Step 8: Compliance Certificate Draft

Generate the lender-facing compliance certificate:
- Reporting period.
- Each covenant: definition, calculation detail, result, threshold, status.
- Officer certification language.
- Supporting schedules (NOI detail, occupancy, rent roll summary).

## Output Format

### 1. Covenant Compliance Dashboard

| Covenant | Metric | Actual | Required | Cushion % | Trend | Status | Cash Trap |
|---|---|---|---|---|---|---|---|

Status color coding: SAFE / WATCH / WARNING / BREACH.

### 2. Break-Even Analysis

Per covenant: how much NOI can decline before breach ($ and %). Expressed as equivalent tenant departure.

### 3. Forward Projection Table (if events provided)

| Scenario | DSCR | LTV | Occupancy | Status |
|---|---|---|---|---|

### 4. Sensitivity Matrix

NOI decline in 5% increments (0%, -5%, -10%, -15%, -20%). Show which covenants breach at each level.

### 5. Compliance Certificate Draft

Formal lender-facing document with calculation detail and supporting schedules.

### 6. Remediation Guidance (if watch/warning/breach)

Per covenant: specific actions to cure or prevent breach. Cash contribution required, timeline, negotiation options.

## Red Flags and Failure Modes

1. **Loan-specific definitions**: "NOI" per loan docs often differs from GAAP NOI. Some exclude management fees, some include reserves, some use "Net Cash Flow." Always use the loan doc definition.
2. **Floating rate debt service**: If SOFR-based, debt service changes with the index. Use the current rate, not the origination rate.
3. **Stale appraisals**: LTV using a 2-3 year old appraisal may mask deterioration. Calculate both appraisal-based and NOI-implied values.
4. **Cash trap vs. hard default**: Being in a cash trap severely constrains the asset manager even though it is not technically a default. Model as a separate trigger.
5. **Compounding events**: A single tenant departure may not breach, but combined with a rate reset and capex, it can. Test combined scenarios.

## Chain Notes

| Direction | Skill | Relationship |
|---|---|---|
| Upstream | rent-roll-formatter | Provides clean rent roll for occupancy and lease expiration data |
| Upstream | cpi-escalation-calculator | Rent increases affect NOI projections |
| Upstream | variance-narrative-generator | Variance context informs covenant analysis |
| Peer | lender-compliance-certificate | Ongoing monitoring between quarterly certifications |
| Downstream | deal-underwriting-assistant | Covenant profile informs acquisition/refinancing decisions |

Related Skills

debt-portfolio-monitor

6
from mariourquia/cre-skills-plugin

Builds and maintains an institutional-quality CRE debt fund portfolio monitoring framework. Produces traffic-light dashboard, watchlist with objective triggers, maturity wall analysis, concentration tracking, CECL-based loss reserves, rate exposure monitoring, facility covenant dashboard, and LP-reportable package.

workout-playbook

6
from mariourquia/cre-skills-plugin

Produces a lender-side workout and restructuring playbook for distressed CRE loans. Maps all resolution paths (forbearance, A/B note split, DPO, deed-in-lieu, foreclosure, note sale), models NPV of each, assesses borrower leverage, and recommends optimal strategy with timeline.

Work Order Triage

6
from mariourquia/cre-skills-plugin

Classifies work order urgency from free-text descriptions, assigns priority (P1-P4) with SLA deadlines, estimates cost, checks lease responsibility, and routes to the correct approval path.

warehouse-to-exhibit-mapper

6
from mariourquia/cre-skills-plugin

Maps validated, warehouse-ready tabular datasets into deck-ready EXHIBIT specifications and slide inputs. Selects table vs. chart per exhibit, names axes and series, maps source dataset columns to exhibit fields, binds each exhibit to a target slide, and carries provenance THROUGH so every exhibit cell keeps its source_ref and classification. Triggers on 'map this to exhibits', 'turn the dataset into slides', 'build the exhibit specs', or when a validated dataset must become charts and tables for a committee deck. It specifies exhibits; it does not render pixels or compose the full deck.

vendor-invoice-validator

6
from mariourquia/cre-skills-plugin

Validates vendor invoices against contract terms, scope of work, and market rates. Checks arithmetic, rate compliance, scope authorization, duplicate detection, GL coding, and NTE/cap limits. Assigns APPROVED, APPROVED WITH FLAGS, or HOLD FOR REVIEW verdict.

variance-narrative-generator

6
from mariourquia/cre-skills-plugin

Generates ownership-ready variance narratives from budget-vs-actual reports. Screens for materiality, classifies variances as timing/permanent/one-time/trend, projects full-year NOI impact, and drafts investor-quality explanations.

transfer-document-preparer

6
from mariourquia/cre-skills-plugin

Prepare entity transfer documents, closing document packages, and assignment agreements for CRE acquisitions. Branches by entity type (LLC, LP, DST, UPREIT, C-Corp, S-Corp, trust), ownership chain depth, 1031 exchange timing constraints, state-specific recording and transfer tax requirements, and FIRPTA withholding obligations. Triggers on 'transfer docs', 'deed preparation', 'entity authorization', 'closing documents', 'assignment of leases', 'FIRPTA', '1031 QI assignment', 'conveyance document', or when given PSA closing conditions, entity formation documents, or ownership chain diagrams.

title-commitment-reviewer

6
from mariourquia/cre-skills-plugin

Analyze ALTA title commitments, surveys, and Schedule B exceptions for CRE acquisitions. Identifies title defects, chain breaks, lien conflicts, and cure requirements. Triggers on 'title commitment', 'Schedule B exceptions', 'title review', 'title exceptions', 'encumbrances', 'survey cross-reference', 'title chain', 'mechanic's lien', 'title cure', or when given a title commitment document, survey, or lien search results.

term-sheet-builder

6
from mariourquia/cre-skills-plugin

Draft and negotiate CRE financing term sheets from lender quotes. Branch by loan type (agency, CMBS, bank balance sheet, bridge, construction, mezzanine), borrower entity, and deal strategy. Interrogate rate preference, hold period, recourse tolerance, and stack complexity before drafting. Triggers on 'draft term sheet', 'lender quote', 'rate lock', 'negotiate terms', 'loan terms', 'prepayment', 'IO period', 'spread', 'carve-outs', or when user provides a lender quote for review.

tenant-retention-engine

6
from mariourquia/cre-skills-plugin

Generates comprehensive tenant retention strategies with per-tenant renewal probability scoring, retention NPV analysis, WALT impact quantification, DSCR covenant monitoring, competitive intelligence, game theory framing for multi-tenant dynamics, and blend-and-extend modeling. Includes backfill mode (lease-up war room) when retention fails. Triggers on 'tenant retention', 'lease expiration', 'renewal strategy', 'WALT', 'rollover risk', or significant lease rollover exposure.

tenant-event-planner

6
from mariourquia/cre-skills-plugin

Plans, budgets, and executes tenant appreciation events, seasonal programming, and community engagement for CRE properties. Supports API-driven vendor booking when MCP integrations are available. Triggers: tenant event, appreciation event, holiday party, tenant engagement, community event, property event planning, seasonal programming.

tenant-delinquency-workout

6
from mariourquia/cre-skills-plugin

Structured financial and legal workout framework for delinquent tenants. Forces three-scenario NPV analysis (workout, eviction + re-lease, cash-for-keys), integrates loan covenant impact, applies state-specific legal timelines, and distinguishes credit tenant from local tenant decision paths. Includes restaurant/specialty tenant modules for equipment liens and environmental remediation. Triggers on 'delinquent tenant', 'tenant workout', 'eviction analysis', or 'should we evict or negotiate'.