/expropriation-law:expropriation-timeline-expertfrom expropriation-law
Calculates critical-path duration with PERT/CPM for multi-task expropriation projects, modeling float against OEA statutory deadlines and generating Gantt schedules.
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.
Use this skill when you need to:
Critical path: Longest sequence of dependent tasks that determines minimum project duration.
Critical tasks: Tasks with zero total float (any delay directly extends project completion).
Total float: Amount of time a task can be delayed without extending project duration.
Free float: Amount of time a task can be delayed without delaying any successor.
Forward pass: Calculate earliest start/finish times
Backward pass: Calculate latest start/finish times
Float calculation:
Tasks:
Forward pass:
Backward pass:
Float:
Critical path: A → B → D (35 days)
PERT uses three time estimates to account for uncertainty:
Expected time (weighted average):
TE = (O + 4M + P) / 6
Standard deviation:
σ = (P - O) / 6
Variance:
σ² = ((P - O) / 6)²
Project variance (sum of critical path task variances):
Project σ² = Σ(critical path task variances)
Project standard deviation:
Project σ = √(Project σ²)
90% confidence interval (Z = 1.645):
Lower bound = Expected duration - 1.645 × Project σ
Upper bound = Expected duration + 1.645 × Project σ
95% confidence interval (Z = 1.960):
Lower bound = Expected duration - 1.960 × Project σ
Upper bound = Expected duration + 1.960 × Project σ
Task: Prepare expropriation plan
Expected time:
TE = (14 + 4×21 + 35) / 6 = (14 + 84 + 35) / 6 = 133 / 6 = 22.2 days
Standard deviation:
σ = (35 - 14) / 6 = 21 / 6 = 3.5 days
Variance:
σ² = 3.5² = 12.25
Interpretation: Task will take approximately 22 days, with ±3.5 days variability.
3-Month Registration Deadline (OEA s.9(2)):
Form 2 Service (Best Practice):
Form 7 Service (OEA s.11):
Buffer analysis:
Buffer = Statutory deadline - Task late finish
Risk levels:
Example:
JSON input structure:
{
"project_name": "Transit Station Property Acquisition",
"approval_date": "2025-03-15",
"tasks": [
{
"id": "A",
"name": "Obtain approval",
"duration": 30,
"optimistic": 20,
"most_likely": 30,
"pessimistic": 45,
"resources": {
"staff": 2,
"consultants": {"legal": 1},
"budget": 15000
}
}
],
"dependencies": [
["A", "B"]
],
"statutory_deadlines": {
"G": 90
},
"buffer_days": 10
}
Basic calculation:
python project_timeline_calculator.py sample_1_simple_acquisition.json
Specify output location:
python project_timeline_calculator.py input.json -o Reports/timeline_analysis.md
JSON output format:
python project_timeline_calculator.py input.json -f json -o results.json
Verbose output:
python project_timeline_calculator.py input.json -v
Markdown report includes:
For each task, specify:
Calculator computes:
Identify resource bottlenecks:
Mitigation strategies:
Total dependencies: Number of predecessor-successor relationships
Average dependencies per task: Total dependencies ÷ Total tasks
Dependency density: Total dependencies ÷ (Total tasks)²
Bottleneck tasks: Tasks with 3+ dependencies (predecessors or successors)
Finish-to-Start (FS): Successor starts after predecessor finishes
Start-to-Start (SS): Tasks start together
Finish-to-Finish (FF): Tasks finish together
Start-to-Finish (SF): Rare, successor finishes when predecessor starts
Note: Current calculator supports Finish-to-Start only. For other types, model as multiple FS dependencies.
1. Statutory Deadline Risk:
2. Critical Path No-Float Risk:
3. Long Duration Risk:
4. Dependency Bottleneck Risk:
Crashing the schedule (reduce critical path duration):
Fast-tracking:
Buffering:
Project: Transit station property acquisition (see samples/sample_1_simple_acquisition.json)
Key tasks:
Statutory deadline: Task G (registration) must complete by day 90.
Critical path: A → B → C → D → E → F → G
Project duration: 30 + 21 + 7 + 10 + 7 + 15 + 1 = 91 days
Problem: Critical path (91 days) exceeds statutory deadline (90 days) by 1 day!
Buffer: 90 - 91 = -1 day (CRITICAL risk)
Task B (Prepare plan):
Expected time: (14 + 4×21 + 35) / 6 = 22.2 days (vs. 21 deterministic)
Standard deviation: (35 - 14) / 6 = 3.5 days
Project with PERT estimates: ~92 days (expected)
Option 1: Crash critical path
Option 2: Fast-track
Option 3: Parallel work streams
Recommended: Combination of Options 1 and 2 to achieve 85-day completion (5-day buffer).
Complementary skills:
expropriation-statutory-deadline-tracking:
expropriation-compensation-entitlement-analysis:
land-assembly-expert:
Calculator follows PDF → JSON → Python → Report pattern:
No manual intervention required - fully automated from input to report.
Argument hint: <project-milestones-json> [--output <report-path>]
Required tools: Read, Write, Bash
Canonical invocation (how the slash command passes user input):
python plugins/expropriation-law/skills/expropriation-timeline-expert/timeline_generator.py {{arg0}}
Usage examples:
# Generate timeline
/expropriation-timeline project_milestones.json
# Custom output path
/expropriation-timeline samples/transit_corridor_timeline.json --output $CLAUDE_PROJECT_DIR/Reports/timeline.md
Related commands: /briefing-note (include timeline in executive briefing), /board-memo (include timeline in board approval memo), /land-assembly (multi-parcel timeline with phasing)
Related agents: Stevi (compliance and deadline watchdog), Christi (legal procedures), Katy/Shadi (project planning)
Current implementation:
For advanced features:
README.md (opens in a new tab)modules/__init__.py (opens in a new tab)modules/critical_path.py (opens in a new tab)modules/dependencies.py (opens in a new tab)modules/output_formatters.py (opens in a new tab)modules/statutory_deadlines.py (opens in a new tab)modules/validators.py (opens in a new tab)project_timeline_calculator.py (opens in a new tab)project_timeline_input_schema.json (opens in a new tab)samples/sample_1_simple_acquisition.json (opens in a new tab)samples/sample_2_complex_corridor.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)What SKILL.md sets; muted values are Claude Code's defaults
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.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.
Other plugins' skills for the same job