Critical Path Method Guide + Free AI Skill

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.

Project managerSuperintendentClaude · ChatGPT · CopilotMIT license

Worked example

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.

What the project manager pasted in
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.
What the skill produced
Critical Path Analysis: Cedar Hollow MOB, RTU Chain to Commissioning
Project
Cedar Hollow MOB (sample data)
Data date
Friday, April 2, 2027 (day 1)
Calendar
Monday to Friday, holidays May 31, Jul 5, Sep 6, Nov 25, Dec 24
Chain duration
162 working days
RTU commissioning complete
November 18, 2027
Critical activities
9 of 15

Result

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.

Activities, float and critical path

IDActivityDaysAfterEarly startEarly finishTotal floatCritical
10Prepare RTU submittal9NoneApr 2Apr 140Yes
20Architect and engineer review1010Apr 15Apr 280Yes
25Revise and resubmit (seismic certification)1220Apr 29May 140Yes
26Manufacturer release and production slot425May 17May 200Yes
30Manufacture and ship RTUs (16 weeks)8026May 21Sep 140Yes
35Curb manufacture and delivery (8 weeks)4026May 21Jul 1919No
40Reframe roof openings for 24 in curbs4NoneApr 2Apr 790No
50Set roof curbs and flash635, 40Jul 20Jul 2719No
60Roofing membrane and dry-in1550Jul 28Aug 1719No
70Crane sets RTUs230, 60Sep 15Sep 160Yes
100Level 2 duct, VAV and controls rough-in80NoneApr 2Jul 2647No
110Level 2 above-ceiling inspection and close-in10100Jul 27Aug 947No
80Connect duct, gas, power and controls at RTUs2070Sep 17Oct 140Yes
90Start-up and test and balance1580, 110Oct 15Nov 40Yes
130Commissioning and owner training1090Nov 5Nov 180Yes

Critical path

  • 10, 20, 25, 26, 30, 70, 80, 90, 130: 9 + 10 + 12 + 4 + 80 + 2 + 20 + 15 + 10 = 162 working days
  • Activities 10 to 30 are the submittal and the 16-week factory build. That is 115 of the 162 days.
  • Any delay on these activities moves the finish date day for day.

Near-critical chain

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.

What-if tests

ScenarioEffect on finishWhy
Submittal prep takes 3 more days (12 instead of 9)+3 working days, finish Nov 23On the critical path, so every day counts.
Architect and engineer review takes 15 days instead of 10+5 working days, finish Nov 26Also critical.
Roofing membrane takes 34 days instead of 15 (19 more)No changeUses all 19 days of float.
Roofing membrane takes 35 days instead of 15 (20 more)+1 working day, finish Nov 19One day past the float.
RTU lead time is 14 weeks instead of 16-10 working days, finish Nov 4Roofing is not critical yet, so the full 10 days come back.
Level 2 rough-in takes 120 days instead of 80No changeUses 40 of 47 days of float.

Assumptions

  • Durations are working days and come from the activity list you gave. The 16-week build is the top of the 12 to 16 week range in the submittal.
  • The calendar is Monday to Friday with the holidays shown. Weather days are not included.
  • All relationships are finish to start with no lags.

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.

What the skill does

  • Calculates early start, early finish, late start, late finish and total float for every activity.
  • Names the critical path and the near-critical chains that could become critical.
  • Converts working days to calendar dates using the days off and holidays you give it.
  • Tests what-if delays, so you see what a late submittal or a long lead time does to the finish.
  • Shows which activities have float to spare, so you can move crews and resources there.

Use it in Claude, ChatGPT or Copilot

  1. Download the .zip on this page.
  2. In Claude, go to Customize, then Skills, click the plus button and choose Upload a skill. Code execution must be on (Settings, then Capabilities).
  3. Compare the result with your scheduling software, then check the logic with your scheduler before you act on it.
Full Claude setup and prompts

Prompts to try

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.

Give it

  • Activities with durations in working days
  • Predecessors and the relationship type
  • The data date or start date
  • The work calendar and holidays
  • Fixed dates and lead times
  • Delays you want to test

You get

  • A table with early dates and total float
  • The critical path and its total duration
  • A list of near-critical chains
  • What-if results for each delay you test
  • A short list of assumptions

It won't

  • It does not replace scheduling software. Use it to check and explain a schedule.
  • It does not fix bad logic. Missing predecessors give false float, so check the links.
  • It does not account for resource limits or weather unless you give it those days.
  • It does not prove delay or set a time extension. A delay claim needs a qualified scheduler and the contract's rules.

Check before you send

  • Every activity has a predecessor and a successor, except the start and finish.
  • Durations are working days and match your crews and quantities.
  • The calendar and holidays match the schedule.
  • Lead times and fixed dates are included.
  • The critical path matches what your superintendent expects.
  • What-if results were checked against your software.

Free cpm activity worksheet template

Use the blank worksheet to list activities and links before you calculate the critical path.

FieldWhat goes in it
Activity IDA short unique number or code.
Activity nameA verb and an object, such as set RTUs.
DurationWorking days, from your crew and quantity assumptions.
PredecessorsIDs of activities that must finish first.
RelationshipFinish to start, start to start, finish to finish, with any lag.
CalendarWork week, holidays and weather days for this activity.
Early start and finishEarliest dates, from the forward pass.
Late start and finishLatest dates that do not move the finish, from the backward pass.
Total floatLate start minus early start, in working days.
Free floatDays the activity can slip without moving its successor.
CriticalYes when total float is zero.
ConstraintsFixed dates, such as an owner move-in or a lead time.
Word templateExcel template

Blank forms, free to use and edit. Or skip the form and let the skill fill it in.

The skill file

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.

Preview SKILL.md (422 lines)
---
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.

Frequently asked questions

What is the critical path in construction?

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.

How do you calculate the critical path?

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.

What is float in a construction schedule?

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.

Can the critical path change?

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.

Related skills

Want these running for your whole team?

We set these skills up for your team, train your people on them, and build what they can't.

See how it works
Book a discovery call