Analyze Cycle/Lead Time
Purpose
Turn raw item timestamps into a truthful picture of how long work takes, where it waits and which in-progress items are drifting, so the team can make percentile-based commitments and act on aging work before it becomes late.
When to use
- The team or a stakeholder asks "how long does a typical item take?" or wants a service level expectation (SLE).
- Delivery feels slow and the team wants to know which state or handoff causes the delay.
- A regular flow review needs an aging-WIP check.
When not to use
- Forecasting how many items or which date for a batch of work. Use
monte-carlo-forecast.
- Analyzing points delivered per iteration. Use
velocity-analysis.
- Mapping the end-to-end process including non-team steps. Use
value-stream-map.
Inputs
Required:
- For finished items: start date and finish date (or state transition history). At least ~15 items; state the definitions of "start" and "finish" used.
Optional, improves quality:
- Time-in-state history per item (e.g. analysis, development, review, test, waiting for deployment).
- Currently in-progress items with start date and current state.
- Item type, class of service, size, blocked periods.
- Created date, to compute lead time (created → done) in addition to cycle time (started → done).
If start/finish definitions are unclear, ask one question to settle them; without them numbers are not comparable. With fewer than ~15 items mark every percentile [LOW CONFIDENCE].
Process
- Fix the definitions: cycle time = start of active work to done; lead time = request created/committed to done. Choose day-counting (calendar days, inclusive: same-day finish = 1) and state it.
- Clean the data: remove items with missing dates, flag negative or zero-duration anomalies, separate cancelled items, and note reopened items. Report how many were excluded and why.
- Compute the distribution: count, median (P50), P70, P85, P95, min, max. Show the calculation method (nearest-rank on sorted values). Do not use the mean as the headline; cycle time is right-skewed.
- Read the shape: long tail (a few items take much longer), bimodal (two kinds of work mixed; split by type), or tight. If types differ, compute percentiles per type or class of service.
- Find bottlenecks from time-in-state: total and median time per state, split into active states and wait states (queues, "ready for review", "waiting for deploy"). Compute flow efficiency = active time / total time when both are available; label it
[ESTIMATE] if wait states are not modeled on the board.
- Check aging WIP: for each in-progress item compute age so far and compare with P50/P85 of finished items. Flag items above P85 as "at risk" and above P95 as "stuck".
- Look for trends: compare the last 4-6 weeks with the earlier period; a rising P85 often signals growing WIP or batch size.
- Propose an SLE: "85% of items finish within N days", based on P85, with the sample period.
- Recommend 2-4 actions tied to evidence: swarm on the oldest items, limit WIP in the bottleneck state (
wip-policy), split large items, remove a handoff or queue.
- Hand off: suggest
wip-policy to act on bottlenecks and monte-carlo-forecast for delivery forecasts; list open data questions.
Output format
# Cycle/Lead Time Analysis – <team>, <period>
Definitions: start = <...>, finish = <...>, calendar days inclusive
Sample: <n> finished items (<excluded n> excluded: <reasons>)
## Distribution
| Metric | Cycle time | Lead time |
|---|---|---|
| P50 / P70 / P85 / P95 | | |
| Min / Max | | |
Shape: <tight / long tail / bimodal> – <evidence>
## Time in State
| State | Type (active/wait) | Median days | Share of total |
|---|---|---|---|
Flow efficiency: <x%> [ESTIMATE if applicable]
Bottleneck: <state> – <evidence>
## Aging WIP
| Item | State | Age (days) | vs P85 | Flag |
|---|---|---|---|---|
## Service Level Expectation
<85% of <type> items finish within N days (sample period)>
## Actions
1. <action> – <evidence> – <owner role>
## Data Caveats and Open Questions
- ...
Quality checklist
Common pitfalls
- Mixing work types (defects, features, support) in one distribution. Split them when the shape is bimodal.
- Looking only at finished items. Aging WIP is the leading indicator; finished-item percentiles lag.
- Treating the board's states as the real process. If waiting is hidden inside "In progress", flow efficiency is overstated; say so.
Example
Input: 40 finished items, cycle times sorted: 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, ... 14, 18, 27; 9 items in progress.
Excerpt of output:
- P50 = 4 days, P85 = 11 days, P95 = 18 days; long tail driven by 3 items blocked on an external API
[stated].
- Bottleneck: "Ready for review" median 2.5 days, 38% of total time – wait state.
- Aging WIP: ITEM-212 in Test for 14 days (> P85) → at risk; swarm today.
- SLE: 85% of stories finish within 11 days (sample: last 12 weeks).
1---2name: cycle-time-analysis3description: "Analyzes cycle time and lead time from work item start/finish dates: computes percentiles, reads the distribution, finds bottleneck states from time-in-state data, flags aging work in progress against the historical percentiles and proposes a service level expectation. Use when someone shares item start/end dates or board state history and asks how long work takes, where it waits or which items are at risk of getting stuck."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/cycle-time-analysis7 version: "1.0.0"8 language: en9 category: 03-delivery10 role: agile-delivery11 area: flow12 title: "Analyze cycle/lead time"13 related: "wip-policy, monte-carlo-forecast, velocity-analysis, value-stream-map, engineering-metrics-review"14 prompt: "Here are 40 finished items with start and done dates and 9 items in progress with their start dates. How long does our work take and what is stuck?"15---1617# Analyze Cycle/Lead Time1819## Purpose20Turn raw item timestamps into a truthful picture of how long work takes, where it waits and which in-progress items are drifting, so the team can make percentile-based commitments and act on aging work before it becomes late.2122## When to use23- The team or a stakeholder asks "how long does a typical item take?" or wants a service level expectation (SLE).24- Delivery feels slow and the team wants to know which state or handoff causes the delay.25- A regular flow review needs an aging-WIP check.2627## When not to use28- Forecasting how many items or which date for a batch of work. Use `monte-carlo-forecast`.29- Analyzing points delivered per iteration. Use `velocity-analysis`.30- Mapping the end-to-end process including non-team steps. Use `value-stream-map`.3132## Inputs33Required:34- For finished items: start date and finish date (or state transition history). At least ~15 items; state the definitions of "start" and "finish" used.3536Optional, improves quality:37- Time-in-state history per item (e.g. analysis, development, review, test, waiting for deployment).38- Currently in-progress items with start date and current state.39- Item type, class of service, size, blocked periods.40- Created date, to compute lead time (created → done) in addition to cycle time (started → done).4142If start/finish definitions are unclear, ask one question to settle them; without them numbers are not comparable. With fewer than ~15 items mark every percentile `[LOW CONFIDENCE]`.4344## Process451. Fix the definitions: cycle time = start of active work to done; lead time = request created/committed to done. Choose day-counting (calendar days, inclusive: same-day finish = 1) and state it.462. Clean the data: remove items with missing dates, flag negative or zero-duration anomalies, separate cancelled items, and note reopened items. Report how many were excluded and why.473. Compute the distribution: count, median (P50), P70, P85, P95, min, max. Show the calculation method (nearest-rank on sorted values). Do not use the mean as the headline; cycle time is right-skewed.484. Read the shape: long tail (a few items take much longer), bimodal (two kinds of work mixed; split by type), or tight. If types differ, compute percentiles per type or class of service.495. Find bottlenecks from time-in-state: total and median time per state, split into active states and wait states (queues, "ready for review", "waiting for deploy"). Compute flow efficiency = active time / total time when both are available; label it `[ESTIMATE]` if wait states are not modeled on the board.506. Check aging WIP: for each in-progress item compute age so far and compare with P50/P85 of finished items. Flag items above P85 as "at risk" and above P95 as "stuck".517. Look for trends: compare the last 4-6 weeks with the earlier period; a rising P85 often signals growing WIP or batch size.528. Propose an SLE: "85% of <type> items finish within N days", based on P85, with the sample period.539. Recommend 2-4 actions tied to evidence: swarm on the oldest items, limit WIP in the bottleneck state (`wip-policy`), split large items, remove a handoff or queue.5410. Hand off: suggest `wip-policy` to act on bottlenecks and `monte-carlo-forecast` for delivery forecasts; list open data questions.5556## Output format57```markdown58# Cycle/Lead Time Analysis – <team>, <period>59Definitions: start = <...>, finish = <...>, calendar days inclusive60Sample: <n> finished items (<excluded n> excluded: <reasons>)6162## Distribution63| Metric | Cycle time | Lead time |64|---|---|---|65| P50 / P70 / P85 / P95 | | |66| Min / Max | | |67Shape: <tight / long tail / bimodal> – <evidence>6869## Time in State70| State | Type (active/wait) | Median days | Share of total |71|---|---|---|---|72Flow efficiency: <x%> [ESTIMATE if applicable]73Bottleneck: <state> – <evidence>7475## Aging WIP76| Item | State | Age (days) | vs P85 | Flag |77|---|---|---|---|---|7879## Service Level Expectation80<85% of <type> items finish within N days (sample period)>8182## Actions831. <action> – <evidence> – <owner role>8485## Data Caveats and Open Questions86- ...87```8889## Quality checklist90- [ ] Start/finish definitions and day-counting rule are stated.91- [ ] Percentiles are headline metrics; the mean is not used as the typical value.92- [ ] Excluded or anomalous items are counted and explained.93- [ ] Every in-progress item is compared with the historical percentiles.94- [ ] Bottleneck claims are backed by time-in-state data or labeled `[INFERENCE]`.95- [ ] Individual performance is not ranked; the analysis is about the system of work.96- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.9798## Common pitfalls99- Mixing work types (defects, features, support) in one distribution. Split them when the shape is bimodal.100- Looking only at finished items. Aging WIP is the leading indicator; finished-item percentiles lag.101- Treating the board's states as the real process. If waiting is hidden inside "In progress", flow efficiency is overstated; say so.102103## Example104Input: 40 finished items, cycle times sorted: 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, ... 14, 18, 27; 9 items in progress.105106Excerpt of output:107- P50 = 4 days, P85 = 11 days, P95 = 18 days; long tail driven by 3 items blocked on an external API `[stated]`.108- Bottleneck: "Ready for review" median 2.5 days, 38% of total time – wait state.109- Aging WIP: ITEM-212 in Test for 14 days (> P85) → at risk; swarm today.110- SLE: 85% of stories finish within 11 days (sample: last 12 weeks).