thinkhard.SI

Prompt repository Project management

Find the critical path and slack in a project schedule

You have a task list with durations and dependencies and need to know which tasks set the end date and how much slack the others have.

Registry no.
PRJ-026
Collection
Project management
Laid out for
Any chat model
Score
10 out of 10
Blanks to fill
6
Added

Project managementAny chat

The prompt

Score 10 of 10, Excellent

Use it when You have a task list with durations and dependencies and need to know which tasks set the end date and how much slack the others have.

  • {{audience}}
  • {{start_date}}
  • {{working_days}}
  • {{tasks}}
  • {{fixed_dates}}
  • {{near_critical_days}}
Full prompt and why it works
Prompt
Find the critical path in the project schedule below, for {{audience}}, so they know which tasks decide the finish date and where a delay would not matter. The project starts on {{start_date}}, and we work {{working_days}}.

Tasks, with duration and what each one depends on:
"""
{{tasks}}
"""

Fixed dates or constraints (deadlines, a person or resource only free in certain weeks, holidays): {{fixed_dates}}

Produce:
1. A table with the columns Task, Duration, Depends on, Earliest start, Earliest finish, Latest start, Latest finish, Slack. Count everything in working days, with day 1 as the start date.
2. The critical path: the chain of tasks with zero slack, in order, and the project's earliest finish as a working day number and a calendar date.
3. Near-critical tasks: any with {{near_critical_days}} working days of slack or less, because a small slip there makes them critical.
4. Ways to bring the date forward: up to 3, such as running two tasks in parallel or adding people to a critical task, each with the days saved and what it would cost or risk.

Show the forward and backward pass for the tasks on the critical path, so the arithmetic can be checked. A good result is one a project manager could enter into a scheduling tool and get the same dates.

For example, the form of one row: "Configure system | 5 | Order hardware, Sign contract | 11 | 15 | 13 | 17 | 2". This example shows the form only.

Treat dependencies as finish-to-start unless the list says otherwise. Do not invent durations or dependencies, and present the ways to bring the date forward as options to discuss, not decisions, because they spend money or people the project manager has to agree to. If a task has no duration or depends on a task that is not on the list, list it under "Check before relying on this", leave it out of the calculation, and say so. If tasks depend on each other in a loop, stop and name them, because no schedule can be calculated until the loop is fixed.

Variables

{{audience}}
Who will use the result, for example "me and the sponsor" or "the project team".
{{start_date}}
The date the project starts, for example March 2.
{{working_days}}
Your working week and any days off, for example "Monday to Friday, closed the last week of December".
{{tasks}}
Each task with its duration in working days and the tasks it depends on, one per line, for example "Train staff | 3 days | after Install software".
{{fixed_dates}}
Deadlines and limits on when work can happen. Write "none" if there are none.
{{near_critical_days}}
How little slack counts as risky, for example 2.

Why it works

  • What good looks like. The forward and backward pass is shown, and the dates should match what a scheduling tool would give, so the arithmetic can be checked rather than trusted.
  • If unsure. Missing durations, unknown tasks and circular dependencies are reported instead of guessed around, because one wrong dependency moves the whole end date.
  • What to avoid. Ways to bring the date forward come as options with their costs, not decisions, since they spend money or people someone has to approve.

How to use it

  1. Press Fill in variables and type your details into each blank. What you type stays in this browser.
  2. Copy the filled prompt into the AI tool you already use, such as ChatGPT, Claude or Gemini, or open it in the Grader or the Prompt Tester here.
  3. Before you rely on it, try it on three or four real examples. The Prompt Tester runs them all at once and shows which ones go wrong.
Use it from code

Get this prompt as JSON from the free REST API, with your own text in the blanks, or let an AI assistant fetch it through the MCP server. No key.

curl -s https://thinkhard.si/api/v1/prompts/critical-path-from-task-list

With the MCP server added to Claude, ChatGPT, Cursor or VS Code, call get_prompt with {"prompt": "critical-path-from-task-list"}, or just ask for it by name.