The critical path method (CPM) finds the longest chain of linked activities in a schedule. It sets the earliest the project can finish, and any delay on that chain moves the finish date. This free skill calculates the critical path, float and what-if delays from your activity list, so project managers and superintendents know which tasks to protect.
After the architect answers RFI-014 on April 1, 2027, the Cedar Hollow MOB project manager wants to know which activities between the RTU submittal and commissioning drive the finish date. She pastes a list of 15 activities from the schedule. Sample job, made-up data.
Start Fri Apr 2. 5-day week, holidays May 31, Jul 5, Sep 6, Nov 25, Dec 24. Durations in working days. 10 prep RTU submittal 9 (Cascade Peak). 20 A/E review 10 after 10. 25 revise and resubmit 12 after 20. 26 mfr release 4 after 25. 30 build RTUs 80 after 26. 35 curbs 40 after 26. 40 reframe roof openings 4, no pred. 50 set curbs 6 after 35 and 40. 60 roofing and dry-in 15 after 50. 70 crane sets RTUs 2 after 30 and 60. 100 L2 duct and VAV rough in 80, no pred. 110 L2 above ceiling insp and close in 10 after 100. 80 connect RTUs 20 after 70. 90 startup and TAB 15 after 80 and 110. 130 cx and training 10 after 90.
RTU commissioning finishes November 18, 2027, 162 working days after the data date. That leaves margin ahead of substantial completion in February 2028, but only if the chain holds. The critical path runs through the RTU submittal, the review, the resubmittal, the manufacturer's 16-week build and the work after the units arrive. The crane sets the RTUs on Sep 15, which matches the September 15 unit set date. The roof chain has 19 working days of float. The Level 2 rough-in has 47.
| ID | Activity | Days | After | Early start | Early finish | Total float | Critical |
|---|---|---|---|---|---|---|---|
| 10 | Prepare RTU submittal | 9 | None | Apr 2 | Apr 14 | 0 | Yes |
| 20 | Architect and engineer review | 10 | 10 | Apr 15 | Apr 28 | 0 | Yes |
| 25 | Revise and resubmit (seismic certification) | 12 | 20 | Apr 29 | May 14 | 0 | Yes |
| 26 | Manufacturer release and production slot | 4 | 25 | May 17 | May 20 | 0 | Yes |
| 30 | Manufacture and ship RTUs (16 weeks) | 80 | 26 | May 21 | Sep 14 | 0 | Yes |
| 35 | Curb manufacture and delivery (8 weeks) | 40 | 26 | May 21 | Jul 19 | 19 | No |
| 40 | Reframe roof openings for 24 in curbs | 4 | None | Apr 2 | Apr 7 | 90 | No |
| 50 | Set roof curbs and flash | 6 | 35, 40 | Jul 20 | Jul 27 | 19 | No |
| 60 | Roofing membrane and dry-in | 15 | 50 | Jul 28 | Aug 17 | 19 | No |
| 70 | Crane sets RTUs | 2 | 30, 60 | Sep 15 | Sep 16 | 0 | Yes |
| 100 | Level 2 duct, VAV and controls rough-in | 80 | None | Apr 2 | Jul 26 | 47 | No |
| 110 | Level 2 above-ceiling inspection and close-in | 10 | 100 | Jul 27 | Aug 9 | 47 | No |
| 80 | Connect duct, gas, power and controls at RTUs | 20 | 70 | Sep 17 | Oct 14 | 0 | Yes |
| 90 | Start-up and test and balance | 15 | 80, 110 | Oct 15 | Nov 4 | 0 | Yes |
| 130 | Commissioning and owner training | 10 | 90 | Nov 5 | Nov 18 | 0 | Yes |
Curbs (35), curb and flashing install (50) and roofing (60) each carry 19 working days of float. They become critical if they slip by 20 days. Reframing the roof openings (40) has 90 days of float and is not a driver, but the roofing chain cannot start until it is done.
| Scenario | Effect on finish | Why |
|---|---|---|
| Submittal prep takes 3 more days (12 instead of 9) | +3 working days, finish Nov 23 | On the critical path, so every day counts. |
| Architect and engineer review takes 15 days instead of 10 | +5 working days, finish Nov 26 | Also critical. |
| Roofing membrane takes 34 days instead of 15 (19 more) | No change | Uses all 19 days of float. |
| Roofing membrane takes 35 days instead of 15 (20 more) | +1 working day, finish Nov 19 | One day past the float. |
| RTU lead time is 14 weeks instead of 16 | -10 working days, finish Nov 4 | Roofing is not critical yet, so the full 10 days come back. |
| Level 2 rough-in takes 120 days instead of 80 | No change | Uses 40 of 47 days of float. |
Check durations and predecessors against your schedule, because CPM is only as good as the logic. Use this for planning. A delay claim needs a qualified scheduler.
Find the critical path in this activity list. Start Monday June 7, 5-day week. Show float for each activity: [paste list].
What happens to the finish if the RTU build takes 14 weeks instead of 16? Which chain becomes critical next?
List every activity with less than 10 days of float and tell me what to protect.
Use the blank worksheet to list activities and links before you calculate the critical path.
| Field | What goes in it |
|---|---|
| Activity ID | A short unique number or code. |
| Activity name | A verb and an object, such as set RTUs. |
| Duration | Working days, from your crew and quantity assumptions. |
| Predecessors | IDs of activities that must finish first. |
| Relationship | Finish to start, start to start, finish to finish, with any lag. |
| Calendar | Work week, holidays and weather days for this activity. |
| Early start and finish | Earliest dates, from the forward pass. |
| Late start and finish | Latest dates that do not move the finish, from the backward pass. |
| Total float | Late start minus early start, in working days. |
| Free float | Days the activity can slip without moving its successor. |
| Critical | Yes when total float is zero. |
| Constraints | Fixed dates, such as an owner move-in or a lead time. |
Blank forms, free to use and edit. Or skip the form and let the skill fill it in.
The primary skill is Critical Path Analysis. Calculates early and late dates, total float and the critical path from durations and predecessors, and tests what-if delays.
---
name: "critical-path-analyzer"
description: "Analyze construction schedule critical path. Identify critical activities, calculate float, simulate schedule impacts, and optimize project duration."
---
# Critical Path Analyzer
## Overview
Analyze construction schedules using Critical Path Method (CPM). Identify critical activities, calculate total and free float, simulate what-if scenarios, and find opportunities to compress schedule.
## CPM Concepts
```
┌─────────────────────────────────────────────────────────────────┐
│ CRITICAL PATH METHOD │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Activity A (5d) ──→ Activity C (10d) ──→ Activity E (3d) │
│ ↓ ↑ │
│ Activity B (8d) ──────────→ Activity D (6d) ───┘ │
│ │
│ Critical Path: A → C → E (18 days) │
│ Float on B→D: 4 days │
│ │
└─────────────────────────────────────────────────────────────────┘
```
## Technical Implementation
```python
from dataclasses import dataclass, field
from typing import List, Dict, Optional, Set, Tuple
from datetime import datetime, timedelta
from collections import defaultdict
import heapq
@dataclass
class Activity:
id: str
name: str
duration: int # days
predecessors: List[str] = field(default_factory=list)
successors: List[str] = field(default_factory=list)
# Calculated values
early_start: int = 0
early_finish: int = 0
late_start: int = 0
late_finish: int = 0
total_float: int = 0
free_float: int = 0
is_critical: bool = False
# Optional attributes
resources: List[str] = field(default_factory=list)
cost: float = 0.0
actual_start: Optional[datetime] = None
actual_finish: Optional[datetime] = None
percent_complete: float = 0.0
...Adapted from datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction under the MIT license, maintained by Northwest AI.
The critical path is the longest chain of linked activities from start to finish. It sets the shortest time the project can take. Activities on it have zero float, so a delay on any one of them delays the finish. Other activities have float, which is time they can slip without moving the finish.
List every activity with its duration and predecessors. Do a forward pass to find the earliest start and finish for each activity, then a backward pass from the project finish to find the latest dates. Float is late start minus early start. The activities with zero float form the critical path.
Float is the amount of time an activity can slip without delaying something else. Total float is the delay allowed before the project finish moves. Free float is the delay allowed before the next activity is affected. Check the contract, because some contracts say who owns float and how it can be used.
Yes. When an activity slips, takes less time than planned or changes logic, a different chain can become the longest. Near-critical chains with small float can become critical after a few days of delay. Update the analysis each time you update the schedule, and watch the chains with the least float.
We set these skills up for your team, train your people on them, and build what they can't.
Our construction AI specialists set up these skills for your team, build your custom AI agents and speed up your bids. Free for 2 weeks. Don't like what we bring? Pay nothing.
Get started →