/expropriation-law:settlement-analysis-expertfrom expropriation-law
Computes settle-vs-hearing decisions for expropriation files: BATNA from probability-weighted outcomes, ZOPA against owner counteroffers, holdout risk scoring (0-30), fee sensitivity analysis, and diminishing concession strategies.
Ships in expropriation-law. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Settlement vs. Hearing Analysis
BATNA Calculation
ZOPA Analysis
Risk Assessment
Strategic Planning
Location: ${CLAUDE_PLUGIN_ROOT}/skills/settlement-analysis-expert/settlement_analyzer.py
Purpose: Analyze settlement scenarios vs. hearing risk with probability-weighted outcomes
Architecture: Modular design following Issue #21 requirements
validators.py
calculations.py
analysis.py
output_formatters.py
# Basic usage (markdown report to stdout)
python settlement_analyzer.py samples/sample_1_transmission_easement.json
# Generate report to file
python settlement_analyzer.py samples/sample_1_transmission_easement.json --output report.md
# JSON output for programmatic use
python settlement_analyzer.py samples/sample_1_transmission_easement.json --json > results.json
Required Fields:
case_id: Case identifiersettlement_offer: Current settlement offer amounthearing_probabilities: {low_award, mid_award, high_award} (must sum to 1.0)hearing_costs: {low/mid/high_award_amount, legal_fees, expert_fees, time_cost}Optional Fields:
counteroffer: Owner's counterofferbuyer_max_settlement: Maximum buyer willing to pay (defaults to BATNA)settlement_costs: {legal_fees_to_settle, settlement_risk}owner_profile: {motivation, sophistication, alternatives}case_factors: {valuation_gap, property_value, legal_complexity, precedent_clarity, jurisdiction_history}discount_rate: Annual discount rate for NPV (default 5%)Full Schema: See settlement_input_schema.json (JSON Schema Draft 2020-12)
{
"case_id": "HYDRO-2025-001",
"property_description": "Transmission line easement across 50-acre farm",
"settlement_offer": 180000,
"counteroffer": 220000,
"hearing_probabilities": {
"low_award": 0.2,
"mid_award": 0.5,
"high_award": 0.3
},
"hearing_costs": {
"low_award_amount": 150000,
"mid_award_amount": 185000,
"high_award_amount": 230000,
"legal_fees": 50000,
"expert_fees": 30000,
"time_cost": 10000
},
"settlement_costs": {
"legal_fees_to_settle": 5000,
"settlement_risk": 0.1
},
"owner_profile": {
"motivation": {
"financial_need": "low",
"emotional_attachment": "high",
"business_impact": "moderate"
},
"sophistication": {
"real_estate_experience": "medium",
"legal_representation": true,
"previous_negotiations": 1
},
"alternatives": {
"relocation_options": "some",
"financial_flexibility": "medium",
"timeline_pressure": "low"
}
},
"case_factors": {
"valuation_gap": 40000,
"property_value": 200000,
"legal_complexity": "medium",
"precedent_clarity": "mixed",
"jurisdiction_history": "neutral"
}
}
The calculator generates a comprehensive markdown report with:
Executive Summary
Financial Summary
Hearing Risk Analysis
Settlement Scenarios
ZOPA Analysis (if counteroffer provided)
Owner Holdout Risk Assessment (if owner profile provided)
Litigation Risk Assessment (if case factors provided)
negotiation_utils.py:
calculate_batna(): Calculate hearing expected valuecalculate_zopa(): Identify zone of possible agreementprobability_weighted_ev(): Probability-weighted scenario comparisonhearing_cost_benefit(): Cost-benefit analysis settlement vs. hearingoptimal_settlement_range(): Calculate optimal negotiation rangecalculate_concession_strategy(): Generate diminishing concession patternrisk_utils.py:
assess_holdout_risk(): Owner holdout risk scoring (0-30)litigation_risk_assessment(): Litigation probability and durationsensitivity_analysis(): Impact of variable changesfinancial_utils.py:
npv(): Net present value calculationssafe_divide(): Division with zero handlingreport_utils.py:
generate_executive_summary(): Decision-focused summariesformat_markdown_table(): Scenario comparison tableseastern_timestamp(): Report timestampsgenerate_document_header(): Standard headersformat_number(): Currency/percentage formattingSETTLE (High Confidence):
SETTLE (Medium Confidence):
NEUTRAL (Continue Negotiations):
PROCEED TO HEARING:
Hearing Uncertainty Premium:
Holdout Risk Scoring (0-30 scale):
Litigation Probability Factors:
1. Initial Settlement Evaluation
# Evaluate initial settlement offer vs. hearing
python settlement_analyzer.py case_data.json --output initial_analysis.md
2. Counteroffer Analysis
# Update JSON with counteroffer, recalculate ZOPA
python settlement_analyzer.py case_data_with_counter.json --output counter_analysis.md
3. Negotiation Strategy Development
# Generate concession strategy based on ZOPA
python settlement_analyzer.py case_data.json --json | jq '.concession_strategy'
4. Board Approval Package
# Comprehensive report for executive decision
python settlement_analyzer.py case_data.json --output board_memo.md
Combines with:
Ontario Expropriations Act:
Negotiation Theory:
Real Estate Valuation:
README.md (opens in a new tab)modules/__init__.py (opens in a new tab)modules/analysis.py (opens in a new tab)modules/calculations.py (opens in a new tab)modules/output_formatters.py (opens in a new tab)modules/validators.py (opens in a new tab)samples/sample_1_transmission_easement.json (opens in a new tab)scripts/shared_utils/README_FINANCIAL_UTILS.md (opens in a new tab)scripts/shared_utils/__init__.py (opens in a new tab)scripts/shared_utils/financial_utils.py (opens in a new tab)scripts/shared_utils/land_assembly_utils.py (opens in a new tab)scripts/shared_utils/negotiation_utils.py (opens in a new tab)scripts/shared_utils/report_utils.py (opens in a new tab)scripts/shared_utils/risk_utils.py (opens in a new tab)scripts/shared_utils/schemas/comparable_sales_input_schema.json (opens in a new tab)scripts/shared_utils/stakeholder_utils.py (opens in a new tab)scripts/shared_utils/timeline_utils.py (opens in a new tab)settlement_analyzer.py (opens in a new tab)settlement_input_schema.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
9 skills in this plugin
/expropriation-compensation-entitlement-analysisUse when analyzing legal entitlement to expropriation compensation under the Ontario Expropriations Act — determining valuation date under s.13(2), applying the Antrim four-part test for injurious affection, distinguishing compensable disturbance from non-compensable goodwill under s.18(3), or assessing highest-and-best-use claims. Entitlement analysis (what is compensable), not valuation (how much)./expropriation-procedural-defect-analysisUse when diagnosing whether a procedural error renders an expropriation void or voidable, evaluating ultra vires or bad-faith challenges, designing cure strategies (supplementary notice, court validation, fresh approval), or applying the s.23 one-year limitation period. Covers case law (Snider service, Fraser form defects, Crombie deadline enforcement) for procedural challenges./expropriation-statutory-deadline-trackingUse when calculating Form 1/2/7 service windows, tracking the 3-month registration deadline under OEA s.9, managing approval-expiry risk, or escalating timeline-critical acquisitions through green/yellow/orange/red/critical protocols. Operational deadline tracking — not legal interpretation./expropriation-timeline-expertUse when calculating critical-path duration with PERT/CPM for multi-task expropriation projects, modeling float against OEA s.9 90-day registration and s.11 30-day notice constraints, identifying zero-float bottlenecks, or generating Gantt schedules with three-point estimates. Quantitative schedule analysis — pairs with the operational deadline-tracking skill./forms-1-12-completeness-verificationUse when pre-flighting Ontario expropriation Forms 1-12 under O.Reg. 363/90 before service or filing — verifying statutory authority citations on Form 2, compensation breakdown completeness on Form 6, 30-day notice math on Form 7, dual-signing-officer compliance, or affidavit-of-service adequacy. Catch defects before they trigger procedural challenges./injurious-affection-assessmentUse when quantifying injurious-affection damages under OEA s.18(2)(a)/(b) — modeling construction-period noise (dBA), dust (PM2.5/PM10), or vibration (PPV mm/s); valuing permanent proximity impacts via paired sales or hedonic regression; documenting business losses with comparative sales analysis; or calculating cost-to-cure for traffic, signage, or parking impairment.Other plugins' skills for the same job